From 21c394b8e1c433fabb89daa4989f66a51faf984a Mon Sep 17 00:00:00 2001 From: "Adrien Guilliams (adgu)" Date: Thu, 4 Jan 2024 11:54:17 +0100 Subject: [PATCH] [FIX] pos_sale: fix test_customer_notes test no demo Prior to this commit, the test test_customer_notes was failing when run without demo data. It was due to the use of base.res_partner_2 which is a demo partner. The fix consists in creating a new partner for the test. closes odoo/odoo#148188 X-original-commit: 6554a40472c30056310ebd4b1143486b38de9198 Signed-off-by: Robin Heinz (rhe) Signed-off-by: Adrien Guilliams (adgu) --- addons/pos_sale/tests/test_pos_sale_flow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/pos_sale/tests/test_pos_sale_flow.py b/addons/pos_sale/tests/test_pos_sale_flow.py index 9136c0dab05..0adeab99eca 100644 --- a/addons/pos_sale/tests/test_pos_sale_flow.py +++ b/addons/pos_sale/tests/test_pos_sale_flow.py @@ -340,7 +340,7 @@ class TestPoSSale(TestPointOfSaleHttpCommon): #create a sale order with 2 customer notes sale_order = self.env['sale.order'].create({ - 'partner_id': self.env.ref('base.res_partner_2').id, + 'partner_id': self.env['res.partner'].create({'name': 'Test Partner'}).id, 'note': 'Customer note 1', 'order_line': [(0, 0, { 'product_id': self.whiteboard_pen.id,