Hi everyone.
Actually I am working in trytond 7.6, I am working in a custome module and I have a wizard with mandatory fields. I executed my custome wizard and the wizard was executed with sucess. However, he did not verify the required fields.
Working in tryton demo 7.6 , I executed the payment wizard of Invoice and I confirmed my suspicions. The mandatory field “Payment Method” not was verified throwing the following error:
Details:
Traceback (most recent call last):
File "usrlocallibpython3.11dist-packagestrytondwsgi.py", line 97, in dispatch_request
return endpoint(request, **request.view_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "usrlocallibpython3.11dist-packagestrytondprotocolsdispatcher.py", line 44, in rpc
return methods.get(request.rpc_method, _dispatch)(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "usrlocallibpython3.11dist-packagestrytondwsgi.py", line 77, in wrapper
return func(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "usrlocallibpython3.11dist-packagestrytondprotocolswrappers.py", line 206, in wrapper
result = func(request, pool, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "usrlocallibpython3.11dist-packagestrytondprotocolsdispatcher.py", line 216, in _dispatch
result = rpc.result(meth(*c_args, **c_kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^
File "usrlocallibpython3.11dist-packagestrytondwizardwizard.py", line 347, in execute
result = wizard._execute(state_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "usrlocallibpython3.11dist-packagestrytondwizardwizard.py", line 387, in _execute
result = self._execute(transition())
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "usrlocallibpython3.11dist-packagestrytondwizardwizard.py", line 387, in _execute
result = self._execute(transition())
^^^^^^^^^^^^
File "usrlocallibpython3.11dist-packagestrytondmodulesaccount_invoiceinvoice.py", line 3599, in transition_pay
lines = invoice.pay_invoice(
^^^^^^^^^^^^^^^^^^^^
File "usrlocallibpython3.11dist-packagestrytondmodulesaccount_invoiceinvoice.py", line 1632, in pay_invoice
counterpart_line.account = getattr(
^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'debit_account'
Thank you, I hope it is helpful