Message 66785

Author
2cadz
Date
2021-04-21.19:26:17
Message id
66785

Content

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
History
Date User Action Args
2021-04-21 19:26:172cadzsetmessageid: <1619025977.4164467.C5BA4YIDWILWCFAU.issue10325@tryton.org>
2021-04-21 19:26:172cadzlinkissue10325 messages
2021-04-21 19:26:172cadzcreate