-
- Downloads
[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#46449
Task: 2205544
Signed-off-by:
Quentin De Paoli (qdp) <qdp@openerp.com>
Please register or sign in to comment