Cannot convert when mixing unit of measure in components
If in a kit we have different units, here units and lengths we have this error message when confirming the sale.
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 "/trytond/wsgi.py", line 83, in auth_required
return wrapped(*args, **kwargs)
File "/trytond/protocols/wrappers.py", line 136, in wrapper
return func(request, pool, *args, **kwargs)
File "/trytond/protocols/dispatcher.py", line 181, in _dispatch
result = rpc.result(meth(*c_args, **c_kwargs))
File "/trytond/model/modelview.py", line 773, in wrapper
return func(cls, records, *args, **kwargs)
File "/trytond/model/workflow.py", line 37, in wrapper
result = func(cls, filtered, *args, **kwargs)
File "/trytond/modules/product_kit/common.py", line 103, in quote
removed.extend(record.set_components())
File "/trytond/modules/product_kit/common.py", line 125, in set_components
components.append(line.get_component(component))
File "/trytond/modules/product_kit/common.py", line 188, in get_component
Component, self.quantity, self.unit, **kwargs)
File "/trytond/modules/product_kit/product.py", line 148, in get_line
unit, quantity, self.product.default_uom, round=False)
File "/trytond/modules/product/uom.py", line 204, in compute_qty
% (from_uom.category.name, to_uom.category.name))
ValueError: cannot convert between Unités and Longueur without a factor or rate
Fault: cannot convert between Unités and Longueur without a factor or rate
Files
Download | Creator | Timestamp | Type |
---|---|---|---|
scenario_product_kit_sale.rst | @2cadz_ | 2021-04-22 06:53:54.134000 UTC | text/x-rst |
scenario_product_kit_sale.rst | @2cadz_ | 2021-04-22 08:13:42.484000 UTC | text/x-rst |