Issue 11624

Title
'account.tax.test' object has no attribute 'company'
Priority
bug
Status
resolved
Nosy list
ced, david_auto, reviewbot, roundup-bot
Assigned to
ced
Keywords
review

Created on 2022-08-03.18:15:04 by david_auto, last changed 3 months ago by roundup-bot.

Messages

New changeset 19f9cabe1730 by Cédric Krier in branch '6.4':
Add company property to test tax
https://hg.tryton.org/modules/account/rev/19f9cabe1730
New changeset 347ab564c78b by Cédric Krier in branch 'default':
Add company property to test tax
https://hg.tryton.org/tryton-env/rev/347ab564c78b
New changeset 0dfc061280bf by Cédric Krier in branch 'default':
Add company property to test tax
https://hg.tryton.org/modules/account/rev/0dfc061280bf
Author: [hidden] (david_auto)
Date: 2022-08-03.18:23:58
Author: [hidden] (david_auto)
Date: 2022-08-03.18:15:04

When indicating the unit price in testing tax error comes out of:

Traceback (most recent call last):
File "/trytond/wsgi.py", line 119, in dispatch_request
return endpoint(request, request.view_args)
File "/trytond/protocols/dispatcher.py", line 46, in rpc
return methods.get(request.rpc_method, _dispatch)(
File "/trytond/wsgi.py", line 86, in auth_required
return wrapped(*args,
kwargs)
File "/trytond/protocols/wrappers.py", line 161, 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/fields/field.py", line 124, in wrapper
return func(self, *args,
kwargs)
File "/trytond/modules/account/tax.py", line 1829, in on_change_with_result
for taxline in self._get_taxes():
File "/trytond/model/fields/field.py", line 123, in wrapper
_set_value(self, field)
File "/trytond/model/fields/field.py", line 99, in _set_value
setattr(record, field, default)
AttributeError: 'account.tax.test' object has no attribute 'company'

History
Date User Action Args
2022-08-13 19:15:44roundup-botsetkeyword: - backport
messages: + msg77701
2022-08-08 22:19:46roundup-botsetmessages: + msg77638
2022-08-08 22:19:41roundup-botsetmessages: + msg77637
nosy: + roundup-bot
status: testing -> resolved
2022-08-04 21:24:46reviewbotsetmessages: + msg77572
nosy: + reviewbot
2022-08-04 21:12:25cedsetassignedto: ced
keyword: + backport, review
nosy: + ced
reviews: 419641003
status: unread -> testing
2022-08-04 20:54:01cedsettitle: test tax error -> 'account.tax.test' object has no attribute 'company'
type: crash
2022-08-03 18:23:58david_autosetmessages: + msg77554
2022-08-03 18:15:04david_autocreate