Files
Preksha Chouhan 6d6ead7d99 [FIX] hr_expense: prevent traceback while user delete any 'hr expense' product
When user delete product in 'hr_expense' module that is present in the demo data
of 'sale_expense'. While installing 'sale_expense' module the user is getting
error as the product that is referenced from 'hr_expense' has been deleted.

Steps to produce:
- Install hr_expense module.
- Delete all expenses.
- Go to configuration and then Expense Categories.
- Delete any category between 'Meals', 'Mileage', 'Travel & Accommodation' and
   'Communication'.
- Install 'sale_expense' module.

Traceback will be generated.

Applying this changes will resolve this issue.

sentry-4113713209

closes odoo/odoo#121752

Signed-off-by: William André (wan) <wan@odoo.com>
2023-09-04 10:56:01 +00:00
..