[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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user