diff options
| author | Lucas Perais (lpe) <lpe@odoo.com> | 2019-06-13 15:57:06 +0000 |
|---|---|---|
| committer | Lucas Perais (lpe) <lpe@odoo.com> | 2019-06-13 15:57:06 +0000 |
| commit | 805e38295558b4dccf2ea17113f73a3b5ba99ac8 (patch) | |
| tree | 2c8924c1ce726cbf2bcf90f4e389de6e81eba982 /addons/mrp/data/mrp_data.xml | |
| parent | cfa1e101e2c98313e6205719bfe34426f39a1b57 (diff) | |
[FIX] hr_expense: a dependent field must be placed *after* its dependencies
Select 2 hr.expense then go to action > submit report
Before this commit, the company currency amount of the first expense line of the report
was equal to zero, always
This is because, when evaluating onchanges, a tree is constructed in the order of the model._fields
which is an orderedDict, filled up when the class is the read
So in python and in the Odoo ORM, the order of field declaration does matter
i.e. a @api.depend fields must come *after* the fields it depends on
After this commit, everything computes as expected
OPW 2008868
closes odoo/odoo#34110
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
Diffstat (limited to 'addons/mrp/data/mrp_data.xml')
0 files changed, 0 insertions, 0 deletions
