2014-06-20 11:19 GMT+02:00 Oscar Tark <[email protected]>:
> Hello,
>
> I have been setting up the sales module. I have a problem while trying to
> enter lines. when i try to choose a product for the sale line it gives me
> the following error:
>
> 'NoneType' object has no attribute 'category'
>
> 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 174, in dispatch
>     result = rpc.result(meth(inst, *c_args, **c_kwargs))
>   File "/trytond/modules/sale/sale.py", line 1146, in on_change_product
>     category = self.product.sale_uom.category
> AttributeError: 'NoneType' object has no attribute 'category'

Do you create a new UOM? Review UOM and select a category (category
UOM is required). Or in product, review if is salable marked and check
is available an UOM (required when product is salable)

-- 
Raimon

Reply via email to