[IMP] hr_contract: Make a method callable on an empty recordset
closes odoo/odoo#76604 X-original-commit: 7126040738cabe7d16412224f7b3baa1d41df014 Related: odoo/enterprise#20912 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
@@ -210,7 +210,6 @@ class Contract(models.Model):
|
||||
return self[self._get_contract_wage_field()]
|
||||
|
||||
def _get_contract_wage_field(self):
|
||||
self.ensure_one()
|
||||
return 'wage'
|
||||
|
||||
def write(self, vals):
|
||||
|
||||
Reference in New Issue
Block a user