Tryton - Issues

 

Message42934

Author roffez
Recipients Artem, ced, pokoli
Date 2018-08-17.15:55:12
Content
Was able to reproduce here. I'm issuing a lot of invoices in EUR and this happens only from time to time, very strange!

What I did (similar to Artem)
- Company's main currency is CHF
- Create customer invoice of EUR 107.00
- Post invoice
- Press "Pay"
- Enter 107.00 EUR, Journal "Cash". Press "OK" => Error occurs.



Traceback (most recent call last):
  File "/trytond/wsgi.py", line 70, in dispatch_request
    return endpoint(request, **request.view_args)
  File "/trytond/protocols/dispatcher.py", line 41, in rpc
    request, database_name, *request.rpc_params)
  File "/trytond/wsgi.py", line 41, in auth_required
    return wrapped(*args, **kwargs)
  File "/trytond/protocols/wrappers.py", line 110, in wrapper
    return func(request, pool, *args, **kwargs)
  File "/trytond/protocols/dispatcher.py", line 165, in _dispatch
    result = rpc.result(meth(*c_args, **c_kwargs))
  File "/trytond/wizard/wizard.py", line 287, in execute
    return wizard._execute(state_name)
  File "/trytond/wizard/wizard.py", line 318, in _execute
    result = self._execute(transition())
  File "/trytond/wizard/wizard.py", line 318, in _execute
    result = self._execute(transition())
  File "/trytond/modules/account_invoice/invoice.py", line 2625, in transition_pay
    and self.ask.type != 'writeoff'):
  File "/trytond/model/model.py", line 387, in __getattr__
    % (self.__name__, name, self._values))
AttributeError: 'account.invoice.pay.ask' Model has no attribute 'type': None
History
Date User Action Args
2018-08-17 15:55:12roffezsetmessageid: <1534514112.78.0.403025861888.issue7192@tryton.org>
2018-08-17 15:55:12roffezsetrecipients: + ced, pokoli, Artem
2018-08-17 15:55:12roffezlinkissue7192 messages
2018-08-17 15:55:12roffezcreate