diff options
| author | jbw <jbw@odoo.com> | 2020-02-27 12:26:27 +0000 |
|---|---|---|
| committer | jbw <jbw@odoo.com> | 2020-04-30 11:29:38 +0000 |
| commit | 4566cf2e57db887b4e3b9d9d2b3e1e62e4a9b67a (patch) | |
| tree | 888575fb114a6e5d76bd5b86eb857a9f59156739 /addons/web/static/tests/fields/basic_fields_tests.js | |
| parent | 5f7de6226bc2c1da221bd2062631cd08689941da (diff) | |
[FIX] account_analytic_default_hr_expense : fix _onchange_product_id
_onchange_product_id() used to always (re)set hr_expense analytic_account_id & analytic_tag_ids to default values.
Or set those to false if no default values are found.
Installing account_analytic_default_hr_expense made odoo/addons/hr_expense/tests/test_expenses.py tests fail
- changed function name (no need to be a _onchange_product_id override)
- removed super() & return
- only set default value to var if var is False
closes odoo/odoo#50456
Task: 2205544
X-original-commit: 1c41c90ba715ba4141fd0410af886fac2a2c245c
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
Signed-off-by: jbw-odoo <jbw-odoo@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions
