From a1542f8f39bf272abaadfa92b1dd1be4b9193a0b Mon Sep 17 00:00:00 2001 From: Albert Cervera i Areny Date: Wed, 11 Jun 2014 01:59:24 +0200 Subject: [PATCH] Change uom domain to avoid infinite recursion. --- plan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plan.py b/plan.py index 923f44d..70f02e2 100644 --- a/plan.py +++ b/plan.py @@ -29,7 +29,7 @@ class Plan(ModelSQL, ModelView): uom = fields.Many2One('product.uom', 'UOM', required=True, domain=[ If(Bool(Eval('product_uom_category')), ('category', '=', Eval('product_uom_category')), - (), + ('id', '!=', -1), )], states={ 'readonly': Bool(Eval('product')),