[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) <rhe@odoo.com>
Signed-off-by: Adrien Guilliams (adgu) <adgu@odoo.com>
This commit is contained in:
Adrien Guilliams (adgu)
2024-01-10 05:04:30 +00:00
parent 62ead4a0ca
commit 21c394b8e1
+1 -1
View File
@@ -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,