Tryton - Issues



Author roffez
Recipients Artem, ced, pokoli
Date 2018-08-17.15:55:12
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/", line 70, in dispatch_request
    return endpoint(request, **request.view_args)
  File "/trytond/protocols/", line 41, in rpc
    request, database_name, *request.rpc_params)
  File "/trytond/", line 41, in auth_required
    return wrapped(*args, **kwargs)
  File "/trytond/protocols/", line 110, in wrapper
    return func(request, pool, *args, **kwargs)
  File "/trytond/protocols/", line 165, in _dispatch
    result = rpc.result(meth(*c_args, **c_kwargs))
  File "/trytond/wizard/", line 287, in execute
    return wizard._execute(state_name)
  File "/trytond/wizard/", line 318, in _execute
    result = self._execute(transition())
  File "/trytond/wizard/", line 318, in _execute
    result = self._execute(transition())
  File "/trytond/modules/account_invoice/", line 2625, in transition_pay
    and self.ask.type != 'writeoff'):
  File "/trytond/model/", line 387, in __getattr__
    % (self.__name__, name, self._values))
AttributeError: '' Model has no attribute 'type': None
Date User Action Args
2018-08-17 15:55:12roffezsetmessageid: <>
2018-08-17 15:55:12roffezsetrecipients: + ced, pokoli, Artem
2018-08-17 15:55:12roffezlinkissue7192 messages
2018-08-17 15:55:12roffezcreate