Files
odoo_source/addons
Mahamadasif Ansari cfc7df15a7 [FIX] point_of_sale: prevent ValueError when tip product is deleted
"ValueError: No record found for unique ID point_of_sale.product_product_tip.
It may have been deleted." is generated when user delete 'Tips' from the product
and try to enable tip payment from the POS setting.

Step to produce:
1. Install point_of_sale
2. Open product and delete 'Tips' product
3. Open POS > Configure > Setting
4. Enable Tips in payment > select any product in tip product
5. click save >>> Traceback generated

This commit solves the above issue by passing 'raise_if_not_found=False'
to ensure it does not throw an error when the tip product is not found.

sentry-4232555961

closes odoo/odoo#124435

X-original-commit: b3675accd7d4ddfe97712060cda1259cf0b131f6
Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
Signed-off-by: ANSARI MAHAMADASIF (maan) <maan@odoo.com>
2023-06-09 13:49:53 +02:00
..
2023-06-09 13:49:50 +02:00
2023-06-08 21:52:44 +02:00
2023-06-06 16:22:45 +02:00
2023-06-08 21:52:44 +02:00
2023-06-07 20:20:12 +02:00
2023-05-10 18:16:21 +02:00
2023-05-10 20:15:02 +02:00
2023-05-10 20:14:59 +02:00
2023-05-11 18:24:53 +02:00
2023-05-10 20:15:12 +02:00
2023-05-11 10:40:53 +02:00
2023-05-11 10:40:55 +02:00
2023-05-12 09:21:49 +02:00
2023-06-08 21:52:44 +02:00
2023-06-08 21:52:44 +02:00
2023-06-08 21:52:44 +02:00