TypeError: unsupported operand type(s) for *: 'Decimal' and 'NoneType'
2.4 server with modules anglo_saxon, product_cost_history
After receiving a supplier shipment, the relate Product by Location shows this traceback:
Traceback (most recent call last):
File "/trytond/protocols/jsonrpc.py", line 123, in _marshaled_dispatch
response['result'] = dispatch_method(method, params)
File "/trytond/protocols/jsonrpc.py", line 156, in _dispatch
res = dispatch(*args)
File "/trytond/protocols/dispatcher.py", line 156, in dispatch
res = getattr(obj, method)(*args_without_context, **kargs)
File "/trytond/model/modelsql.py", line 638, in read
res2 = self._columns[field].get(ids, self, field_list, values=res)
File "/trytond/model/fields/function.py", line 87, in get
res[name] = getattr(model, self.getter)(ids, name)
File "/trytond/modules/stock/location.py", line 195, in get_cost_value
* product.cost_price)
TypeError: unsupported operand type(s) for *: 'Decimal' and 'NoneType'