[IMP] point_of_sale: avoid barcode collision between demo and tests data

closes odoo/odoo#134001

X-original-commit: a4a197b30cbf5562999f92242b59e3056bf6d01f
Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
This commit is contained in:
Nils Hamerlinck
2023-09-04 08:03:41 +00:00
committed by Joseph Caburnay
parent 4c54dde9e0
commit 68909e389e
2 changed files with 7 additions and 7 deletions
@@ -25,15 +25,15 @@ registry
ProductScreen.check.selectedOrderlineHas('Monitor Stand', 2);
// Test "Prices product" EAN-13 `23.....{NNNDD}` barcode pattern
ProductScreen.do.scan_ean13_barcode("2301000000006");
ProductScreen.do.scan_ean13_barcode("2305000000004");
ProductScreen.check.selectedOrderlineHas('Magnetic Board', 1, "0.00");
ProductScreen.do.scan_ean13_barcode("2301000123453");
ProductScreen.do.scan_ean13_barcode("2305000123451");
ProductScreen.check.selectedOrderlineHas('Magnetic Board', 1, "123.45");
// Test "Weighted product" EAN-13 `21.....{NNDDD}` barcode pattern
ProductScreen.do.scan_ean13_barcode("2100002000000");
ProductScreen.do.scan_ean13_barcode("2100005000000");
ProductScreen.check.selectedOrderlineHas('Wall Shelf Unit', 0, "0.00");
ProductScreen.do.scan_ean13_barcode("2100002080000");
ProductScreen.do.scan_ean13_barcode("2100005080002");
ProductScreen.check.selectedOrderlineHas('Wall Shelf Unit', 8);
return getSteps();
+3 -3
View File
@@ -114,7 +114,7 @@ class TestPointOfSaleHttpCommon(AccountTestInvoicingHttpCommon):
'available_in_pos': True,
'list_price': 1.98,
'taxes_id': False,
'barcode': '2100002000003',
'barcode': '2100005000000',
})
cls.small_shelf = env['product.product'].create({
'name': 'Small Shelf',
@@ -127,7 +127,7 @@ class TestPointOfSaleHttpCommon(AccountTestInvoicingHttpCommon):
'available_in_pos': True,
'list_price': 1.98,
'taxes_id': False,
'barcode': '2301000000006',
'barcode': '2305000000004',
})
cls.monitor_stand = env['product.product'].create({
'name': 'Monitor Stand',
@@ -155,7 +155,7 @@ class TestPointOfSaleHttpCommon(AccountTestInvoicingHttpCommon):
'available_in_pos': True,
'list_price': 5.10,
'taxes_id': False,
'barcode': '2300001000008',
'barcode': '2300002000007',
})
configurable_chair = env['product.product'].create({
'name': 'Configurable Chair',