Thanks for your quick reply. Here is the traceback:
Traceback (most recent call last):
File "/trytond/model/model.py", line 282, in __getattr__
return self._values[name]
TypeError: 'NoneType' object is not subscriptable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/trytond/wsgi.py", line 116, in dispatch_request
return endpoint(request, **request.view_args)
File "/trytond/protocols/dispatcher.py", line 48, in rpc
request, database_name, *request.rpc_params)
File "/wrapt/wrappers.py", line 567, in __call__
args, kwargs)
File "/trytond/wsgi.py", line 83, in auth_required
return wrapped(*args, **kwargs)
File "/trytond/protocols/wrappers.py", line 131, 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 780, in on_change
method()
File "/trytond/model/modelview.py", line 88, in wrapper
result = func(self, *args, **kwargs)
File "/trytond/model/fields/field.py", line 118, in wrapper
return func(self, *args, **kwargs)
File "/trytond/modules/sale/sale.py", line 477, in on_change_lines
self.tax_amount = self.get_tax_amount()
File "/trytond/model/fields/field.py", line 118, in wrapper
return func(self, *args, **kwargs)
File "/trytond/modules/sale/sale.py", line 504, in get_tax_amount
(v['amount'] for v in self._get_taxes().values()), Decimal(0))
File "/trytond/model/fields/field.py", line 118, in wrapper
return func(self, *args, **kwargs)
File "/trytond/modules/account/tax.py", line 1173, in _get_taxes
line.quantity, line.tax_date or self.tax_date)
File "/trytond/modules/account/tax.py", line 1017, in compute
taxes = cls.sort_taxes(taxes)
File "/trytond/modules/account/tax.py", line 1002, in sort_taxes
return sorted(taxes, key=key, reverse=reverse)
File "/trytond/modules/account/tax.py", line 1001, in key
return 0 if tax.sequence is None else 1, tax.sequence or 0, tax.id
File "/trytond/model/modelstorage.py", line 1414, in __getattr__
return super(ModelStorage, self).__getattr__(name)
File "/trytond/model/model.py", line 285, in __getattr__
% (self.__name__, name, self._values))
AttributeError: 'account.tax' Model has no attribute 'sequence': None