Use new product.default_uom.category keyword for search on uom
This commit is contained in:
1 parent
50d151cd3c
commit
b4ddf654fd
1 file changed
+2
-1
+2
-1
@@ -733,7 +733,8 @@ class PurchaseLine(OSV):
|
||||
states={
|
||||
'required': "product",
|
||||
'invisible': "type != 'line'",
|
||||
}, domain="[('category', '=', (product, 'product'))]",
|
||||
}, domain="[('category', '=', " \
|
||||
"(product, 'product.default_uom.category'))]",
|
||||
on_change=['product', 'quantity', 'unit', '_parent_purchase.currency',
|
||||
'_parent_purchase.party'])
|
||||
unit_digits = fields.Function('get_unit_digits', type='integer',
|
||||
|
||||
Reference in new issue
Block a user