Remove ids from on_change* calls
This commit is contained in:
1 parent
dae84c98f2
commit
5bbc638f09
2 files changed
+4
-7
No files matched your search
+2
-4
@@ -70,8 +70,7 @@ class Employee(ModelSQL, ModelView, Cacheable):
|
||||
res[employee.id] = employee.company.currency.digits
|
||||
return res
|
||||
|
||||
def on_change_with_currency_digits(self, cursor, user, ids, vals,
|
||||
context=None):
|
||||
def on_change_with_currency_digits(self, cursor, user, vals, context=None):
|
||||
company_obj = self.pool.get('company.company')
|
||||
if vals.get('company'):
|
||||
company = company_obj.browse(cursor, user, vals['company'],
|
||||
@@ -140,8 +139,7 @@ class EmployeeCostPrice(ModelSQL, ModelView):
|
||||
res[costprice.id] = costprice.employee.company.currency.digits
|
||||
return res
|
||||
|
||||
def on_change_with_currency_digits(self, cursor, user, ids, vals,
|
||||
context=None):
|
||||
def on_change_with_currency_digits(self, cursor, user, vals, context=None):
|
||||
company_obj = self.pool.get('company.employee')
|
||||
if vals.get('employee'):
|
||||
employee = employee_obj.browse(cursor, user, vals['employee'],
|
||||
|
||||
@@ -130,8 +130,7 @@ class Work(ModelSQL, ModelView):
|
||||
res[work.id] = work.company.currency.digits
|
||||
return res
|
||||
|
||||
def on_change_with_currency_digits(self, cursor, user, ids, vals,
|
||||
context=None):
|
||||
def on_change_with_currency_digits(self, cursor, user, vals, context=None):
|
||||
company_obj = self.pool.get('company.company')
|
||||
if vals.get('company'):
|
||||
company = company_obj.browse(cursor, user, vals['company'],
|
||||
@@ -150,7 +149,7 @@ class Work(ModelSQL, ModelView):
|
||||
return company.currency.digits
|
||||
return 2
|
||||
|
||||
def on_change_product(self, cursor, user, ids, vals, context=None):
|
||||
def on_change_product(self, cursor, user, vals, context=None):
|
||||
product_obj = self.pool.get('product.product')
|
||||
user_obj = self.pool.get('res.user')
|
||||
company_obj = self.pool.get('company.company')
|
||||
|
||||
Reference in new issue
Block a user