diff options
| author | Yannick Tivisse <yti@odoo.com> | 2018-03-29 10:15:06 +0200 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2018-03-29 10:24:15 +0200 |
| commit | ef5301b964a42b71c503fd499d492c7a943da0b0 (patch) | |
| tree | 67ae39e6113896c60c7a8f66c637e675b93904f1 /addons/web/static/src/js/fields/basic_fields.js | |
| parent | 35d507bc6a516773751c86e643806179f2752305 (diff) | |
[FIX] l10n_be_hr_payroll: Compute correctly the 'company_car_total_depreciated_cost'
The correct solution would be to store the total_depreciated_cost on the fleet vehicle.
But this solution is not acceptable on a stable release as it implies to update the module.
The only thing we can do here is to add the dependencies on the field 'total_depreciated_costs'
to the field 'company_car_total_depreciated_costs'.
As the field is not stored, then the field 'company_car_total_depreciated_cost'
(which is stored) is not recomputed correctly when modifying the log_contract.
This solve the following issue: Modify a recurring costs amount (depreciated)
on the fleet vehicle contract, then the final yearly cost on the related
hr.contracts are not recomputed correclty, as the field company_car_total_depreciated_cost
on the hr.contract is not recomputed on the total_depreciated_cost modification.
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
