Remove ids from on_change* calls

This commit is contained in:
Cédric Krier
2010-03-18 18:14:54 +01:00
parent 5e2a7de385
commit 2b8a71af22
3 changed files with 3 additions and 3 deletions
+1
View File
@@ -1,3 +1,4 @@
* Remove ids from on_change* calls
* Improve search on translatable fields
* export_data return empty value for invisible fields
* Don't allow to use float in Numeric fields
+1 -2
View File
@@ -425,8 +425,7 @@ be updated with the new value.
context={'category': (Eval('default_uom'), 'uom.category')},
on_change_with=['default_uom', 'purchase_uom', 'purchasable'])
def on_change_with_purchase_uom(self, cursor, user, ids, vals,
context=None):
def on_change_with_purchase_uom(self, cursor, user, vals, context=None):
uom_obj = self.pool.get('product.uom')
res = False
+1 -1
View File
@@ -86,7 +86,7 @@ class Request(ModelSQL, ModelView):
self._order.insert(1, ('trigger_date', 'DESC'))
self._order.insert(2, ('create_date', 'DESC'))
def on_change_with_number_references(self, cursor, user, ids, vals,
def on_change_with_number_references(self, cursor, user, vals,
context=None):
if vals.get('references'):
return len(vals['references'])