[IMP] l10n_be_hr_payroll: Remove unnecessary field dependencies
Since https://github.com/odoo/odoo/commit/2304edd46cc12aaef4fddaa22887ff51f51581bc, the total_depreciated_cost field on the fleet.vehicle is stored. This commit removes the field dependencies that are not useful anymore.
This commit is contained in:
@@ -30,9 +30,7 @@ class HrContract(models.Model):
|
||||
inverse="_inverse_recurring_cost_amount_depreciated")
|
||||
|
||||
@api.depends('car_id', 'new_car', 'new_car_model_id', 'car_id.total_depreciated_cost',
|
||||
'car_id.atn', 'new_car_model_id.default_atn', 'new_car_model_id.default_total_depreciated_cost',
|
||||
'car_id.co2_fee', 'car_id.log_contracts', 'car_id.log_contracts.state', # YTI TODO: Store total_depreciated_costs on
|
||||
'car_id.log_contracts.recurring_cost_amount_depreciated') # the fleet vehicle to avoid these dependencies
|
||||
'car_id.atn', 'new_car_model_id.default_atn', 'new_car_model_id.default_total_depreciated_cost')
|
||||
def _compute_car_atn_and_costs(self):
|
||||
for contract in self:
|
||||
if not contract.new_car and contract.car_id:
|
||||
|
||||
Reference in New Issue
Block a user