Issue 11006

Crash when select invoice line
Nosy list
resteve, reviewbot, roundup-bot
Assigned to
backport, review

Created on 2021-12-02.14:11:54 by resteve, last changed 2 days ago by roundup-bot.


New changeset f73b68c7cd4e by C├ędric Krier in branch 'default':
Add company to on_change_invoice_line depends
New changeset 0af0af5a339b by Raimon Esteve in branch 'default':
Add company to on_change_invoice_line depends
Author: [hidden] (resteve)
Date: 2021-12-02.14:11:54
  • Create an Invoice Deferred
  • Select an invoice line
Traceback (most recent call last):
  File "/trytond/", line 117, in dispatch_request
    return endpoint(request, **request.view_args)
  File "/trytond/protocols/", line 47, in rpc
    return methods.get(request.rpc_method, _dispatch)(
  File "/trytond/", line 84, in auth_required
    return wrapped(*args, **kwargs)
  File "/trytond/protocols/", line 159, in wrapper
    return func(request, pool, *args, **kwargs)
  File "/trytond/protocols/", line 186, in _dispatch
    result = rpc.result(meth(inst, *c_args, **c_kwargs))
  File "/trytond/model/", line 88, in wrapper
    result = func(self, *args, **kwargs)
  File "/trytond/model/fields/", line 123, in wrapper
    return func(self, *args, **kwargs)
  File "/trytond/modules/account_invoice_defer/", line 175, in on_change_invoice_line
    if invoice.currency !=
  File "/trytond/model/", line 1459, in __getattr__
    return super(ModelStorage, self).__getattr__(name)
  File "/trytond/model/", 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>
Date User Action Args
2022-01-25 23:27:10roundup-botsetmessages: + msg73539
2022-01-25 23:27:05roundup-botsetmessages: + msg73538
nosy: + roundup-bot
status: testing -> resolved
2022-01-25 23:25:55cedsetstatus: chatting -> testing
2022-01-25 23:25:51cedsetkeyword: + backport
2022-01-10 14:46:59reviewbotsetmessages: + msg73184
2021-12-23 13:53:00reviewbotsetmessages: + msg72916
2021-12-02 14:33:41reviewbotsetmessages: + msg71977
nosy: + reviewbot
2021-12-02 14:11:54restevecreate

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