Crash on sale quoting with missing prices on product kit and components
On demo6.6 the following raises with product_kit activated and components and kit with no price when a sale with the kit is quoted:
Traceback (most recent call last):
File "/usr/local/lib/python39/dist-packages/trytond/wsgipy", line 119, in dispatch_request
return endpoint(request, **requestview_args)
File "/usr/local/lib/python39/dist-packages/trytond/protocols/dispatcherpy", line 49, in rpc
return methodsget(requestrpc_method, _dispatch)(
File "/usr/local/lib/python39/dist-packages/trytond/wsgipy", line 86, in auth_required
return wrapped(*args, **kwargs)
File "/usr/local/lib/python39/dist-packages/trytond/protocols/wrapperspy", line 162, in wrapper
return func(request, pool, *args, **kwargs)
File "/usr/local/lib/python39/dist-packages/trytond/protocols/dispatcherpy", line 207, in _dispatch
result = rpcresult(meth(*c_args, **c_kwargs))
File "/usr/local/lib/python39/dist-packages/trytond/model/modelviewpy", line 697, in wrapper
return func(cls, records, *args, **kwargs)
File "/usr/local/lib/python39/dist-packages/trytond/model/workflowpy", line 37, in wrapper
result = func(cls, filtered, *args, **kwargs)
File "/usr/local/lib/python39/dist-packages/trytond/modules/product_kit/commonpy", line 122, in quote
removedextend(recordset_components())
File "/usr/local/lib/python39/dist-packages/trytond/modules/product_kit/commonpy", line 145, in set_components
Componentset_price_ratio(components, linequantity)
File "/usr/local/lib/python39/dist-packages/trytond/modules/product_kit/commonpy", line 301, in set_price_ratio
list_price *= Decimal(str(componentquantity_ratio))
TypeError: unsupported operand type(s) for *=: 'NoneType' and 'decimalDecimal'