Remove deprectaed on_change attribute

This commit is contained in:
Sergi Almacellas Abellana 2014-06-04 16:12:21 +02:00
parent b53bcc697a
commit acc4269543
1 changed files with 2 additions and 1 deletions

View File

@ -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: