Skip to content

Error al exportar archivo SICORE para Retenciones de Ganancias Aplicadas #142

@fernandob1974

Description

@fernandob1974

Replicado en el runbot argentina-ee v15. Al intentar descargar el archivo de sicore se presenta el siguiente error si se incluyen Retenciones de Ganancias Aplicadas-->

RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File "/data/build/odoo/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/data/build/odoo/odoo/http.py", line 687, in dispatch
result = self._call_function(**self.params)
File "/data/build/odoo/odoo/http.py", line 359, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/data/build/odoo/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/data/build/odoo/odoo/http.py", line 348, in checked_call
result = self.endpoint(*a, **kw)
File "/data/build/odoo/odoo/http.py", line 916, in call
return self.method(*args, **kw)
File "/data/build/odoo/odoo/http.py", line 535, in response_wrap
response = f(*args, **kw)
File "/data/build/odoo/addons/web/controllers/main.py", line 1347, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/data/build/odoo/addons/web/controllers/main.py", line 1335, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/data/build/odoo/odoo/api.py", line 464, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/data/build/odoo/odoo/api.py", line 451, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/data/build/ingadhoc/odoo-argentina-ee/account_tax_settlement/models/account_move.py", line 28, in download_tax_settlement_file
return self.settled_line_ids.get_tax_settlement_file(self.journal_id)
File "/data/build/ingadhoc/odoo-argentina-ee/account_tax_settlement/models/account_move_line.py", line 135, in get_tax_settlement_file
journal.get_tax_settlement_files_values(self))
File "/data/build/ingadhoc/odoo-argentina-ee/account_tax_settlement/models/account_journal.py", line 393, in get_tax_settlement_files_values
return getattr(
File "/data/build/ingadhoc/odoo-argentina-ee/l10n_ar_account_tax_settlement/models/account_journal.py", line 1144, in sicore_aplicado_files_values
issue_date = payment.payment_date
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/data/build/odoo/odoo/http.py", line 643, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/data/build/odoo/odoo/http.py", line 301, in _handle_exception
raise exception.with_traceback(None) from new_cause
AttributeError: 'account.payment' object has no attribute 'payment_date'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions