135601 139669886973696 [2023-07-10 13:20:22,047] ERROR trytond.protocols.wrappers <JSONRequest 1@127.0.0.1 'http://localhost:8000/yyyyyy/' [POST] wizard.account.invoice.credit.execute>
Traceback (most recent call last):
File "/home/vant/Documentos/GitLab/yyyyyy/.venv/lib/python3.8/site-packages/trytond/protocols/wrappers.py", line 189, in wrapper
return func(request, pool, *args, **kwargs)
File "/home/vant/Documentos/GitLab/yyyyyy/.venv/lib/python3.8/site-packages/trytond/protocols/dispatcher.py", line 204, in _dispatch
result = rpc.result(meth(*c_args, **c_kwargs))
File "/home/vant/Documentos/GitLab/yyyyyy/.venv/lib/python3.8/site-packages/trytond/wizard/wizard.py", line 340, in execute
result = wizard._execute(state_name)
File "/home/vant/Documentos/GitLab/yyyyyy/.venv/lib/python3.8/site-packages/trytond/wizard/wizard.py", line 375, in _execute
do_result = do(action)
File "/home/vant/Documentos/GitLab/yyyyyy/.venv/lib/python3.8/site-packages/trytond/modules/account_invoice/invoice.py", line 3436, in do_credit
credit_invoices = self.model.credit(
File "/home/vant/Documentos/GitLab/yyyyyy/.venv/lib/python3.8/site-packages/trytond/modules/account_invoice/invoice.py", line 1610, in credit
cls.cancel(invoices)
File "/home/vant/Documentos/GitLab/yyyyyy/.venv/lib/python3.8/site-packages/trytond/model/modelview.py", line 720, in wrapper
return func(cls, records, *args, **kwargs)
File "/home/vant/Documentos/GitLab/yyyyyy/.venv/lib/python3.8/site-packages/trytond/model/workflow.py", line 37, in wrapper
result = func(cls, filtered, *args, **kwargs)
File "/home/vant/Documentos/GitLab/yyyyyy/.venv/lib/python3.8/site-packages/trytond/modules/commission/invoice.py", line 101, in cancel
super().cancel(invoices)
File "/home/vant/Documentos/GitLab/yyyyyy/.venv/lib/python3.8/site-packages/trytond/modules/sale/invoice.py", line 22, in wrapper
func(cls, invoices)
File "/home/vant/Documentos/GitLab/yyyyyy/.venv/lib/python3.8/site-packages/trytond/modules/sale/invoice.py", line 85, in cancel
super(Invoice, cls).cancel(invoices)
File "/home/vant/Documentos/GitLab/yyyyyy/.venv/lib/python3.8/site-packages/trytond/modules/purchase/invoice.py", line 23, in wrapper
func(cls, invoices)
File "/home/vant/Documentos/GitLab/yyyyyy/.venv/lib/python3.8/site-packages/trytond/modules/purchase/invoice.py", line 98, in cancel
super(Invoice, cls).cancel(invoices)
File "/home/vant/Documentos/GitLab/yyyyyy/.venv/lib/python3.8/site-packages/trytond/model/modelview.py", line 720, in wrapper
return func(cls, records, *args, **kwargs)
File "/home/vant/Documentos/GitLab/yyyyyy/.venv/lib/python3.8/site-packages/trytond/model/workflow.py", line 37, in wrapper
result = func(cls, filtered, *args, **kwargs)
File "/home/vant/Documentos/GitLab/yyyyyy/.venv/lib/python3.8/site-packages/trytond/modules/account_invoice/invoice.py", line 1879, in cancel
Line.reconcile(to_reconcile)
File "/home/vant/Documentos/GitLab/yyyyyy/.venv/lib/python3.8/site-packages/trytond/modules/account/move.py", line 1561, in reconcile
move = cls._get_writeoff_move(
File "/home/vant/Documentos/GitLab/yyyyyy/.venv/lib/python3.8/site-packages/trytond/modules/account/move.py", line 1648, in _get_writeoff_move
if account.second_currency:
AttributeError: 'NoneType' object has no attribute 'second_currency'