On 20 Jun 02:19, Oscar Tark wrote: > 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'
How did you create your product? Because a sale_uom is required as soon as the product is salable. So it seems your database entries are not valid which is strange if you entered them using Tryton but not necessary if you did directly with SQL queries. -- Cédric Krier - B2CK SPRL Email/Jabber: [email protected] Tel: +32 472 54 46 59 Website: http://www.b2ck.com/
pgpdwFnDJ6pwy.pgp
Description: PGP signature
