Remove ids from on_change* calls
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
|
||||
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user