Issue 11006

Title
Crash when select invoice line
Priority
bug
Status
resolved
Nosy list
resteve, reviewbot, roundup-bot
Assigned to
resteve
Keywords
backport, review

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

Messages

New changeset f73b68c7cd4e by C├ędric Krier in branch 'default':
Add company to on_change_invoice_line depends
https://hg.tryton.org/tryton-env/rev/f73b68c7cd4e
New changeset 0af0af5a339b by Raimon Esteve in branch 'default':
Add company to on_change_invoice_line depends
https://hg.tryton.org/modules/account_invoice_defer/rev/0af0af5a339b
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/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
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)