From acc4269543094b3d4c0b42f3f67cc1614d086186 Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Wed, 4 Jun 2014 16:12:21 +0200 Subject: [PATCH] Remove deprectaed on_change attribute --- product.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/product.py b/product.py index e39bdbd..7769ec1 100644 --- a/product.py +++ b/product.py @@ -17,7 +17,7 @@ class ProductBom: Eval('product', 0), Get(Eval('_parent_product', {}), 'id', 0))), ], - depends=['product'], on_change=['process', 'bom', 'route']) + depends=['product']) @classmethod def __setup__(cls): @@ -33,6 +33,7 @@ class ProductBom: }) cls.route.depends.append('process') + @fields.depends('process', 'bom', 'route') def on_change_process(self): res = {} if self.process: