Message 71976

Author
resteve
Date
2021-12-02.14:11:54
Message id
71976

Content

  • Create an Invoice Deferred
  • Select an invoice line
Traceback (most recent call last):
  File "/trytond/wsgi.py", line 117, in dispatch_request
    return endpoint(request, **request.view_args)
  File "/trytond/protocols/dispatcher.py", line 47, in rpc
    return methods.get(request.rpc_method, _dispatch)(
  File "/trytond/wsgi.py", line 84, in auth_required
    return wrapped(*args, **kwargs)
  File "/trytond/protocols/wrappers.py", line 159, in wrapper
    return func(request, pool, *args, **kwargs)
  File "/trytond/protocols/dispatcher.py", line 186, in _dispatch
    result = rpc.result(meth(inst, *c_args, **c_kwargs))
  File "/trytond/model/modelview.py", line 88, in wrapper
    result = func(self, *args, **kwargs)
  File "/trytond/model/fields/field.py", line 123, in wrapper
    return func(self, *args, **kwargs)
  File "/trytond/modules/account_invoice_defer/account.py", line 175, in on_change_invoice_line
    if invoice.currency != self.company.currency:
  File "/trytond/model/modelstorage.py", line 1459, in __getattr__
    return super(ModelStorage, self).__getattr__(name)
  File "/trytond/model/model.py", line 293, in __getattr__
    raise AttributeError("'%s' Model has no attribute '%s': %s"
AttributeError: 'account.invoice.deferred' Model has no attribute 'company': <trytond.model.model.account.invoice.deferred._record object at 0x7fe4afd7e510>
History
Date User Action Args
2021-12-02 14:11:54restevesetmessageid: <1638450714.9836128.TTEWKAB6JUOZU4H6.issue11006@tryton.org>
2021-12-02 14:11:54restevelinkissue11006 messages
2021-12-02 14:11:54restevecreate

Showing 10 items. Show all history (warning: this could be VERY long)