Remove old-style of super() calls

This commit is contained in:
Nicolas Évrard
2025-04-04 00:45:18 +02:00
parent 5781a49606
commit cbdad75620
350 changed files with 1235 additions and 1235 deletions
+4 -4
View File
@@ -79,7 +79,7 @@ class EmployeeCostPrice(ModelSQL, ModelView):
@classmethod
def __setup__(cls):
super(EmployeeCostPrice, cls).__setup__()
super().__setup__()
t = cls.__table__()
cls._sql_constraints = [
('employee_date_cost_price_uniq',
@@ -108,18 +108,18 @@ class EmployeeCostPrice(ModelSQL, ModelView):
@classmethod
def delete(cls, prices):
Employee = Pool().get('company.employee')
super(EmployeeCostPrice, cls).delete(prices)
super().delete(prices)
Employee._cost_prices_cache.clear()
@classmethod
def create(cls, vlist):
Employee = Pool().get('company.employee')
prices = super(EmployeeCostPrice, cls).create(vlist)
prices = super().create(vlist)
Employee._cost_prices_cache.clear()
return prices
@classmethod
def write(cls, *args):
Employee = Pool().get('company.employee')
super(EmployeeCostPrice, cls).write(*args)
super().write(*args)
Employee._cost_prices_cache.clear()