-
- 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#50456 Task: 2205544 X-original-commit: 1c41c90b Signed-off-by:Quentin De Paoli (qdp) <qdp@openerp.com> Signed-off-by:
jbw-odoo <jbw-odoo@users.noreply.github.com>
Please register or sign in to comment