From 68909e389ec5e897b2f3ec2b4637f5cfd97d9f08 Mon Sep 17 00:00:00 2001 From: Nils Hamerlinck Date: Tue, 22 Aug 2023 07:51:23 +0000 Subject: [PATCH] [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) --- .../static/tests/tours/BarcodeScanning.tour.js | 8 ++++---- addons/point_of_sale/tests/test_frontend.py | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/addons/point_of_sale/static/tests/tours/BarcodeScanning.tour.js b/addons/point_of_sale/static/tests/tours/BarcodeScanning.tour.js index d323b44b35f..9a28db2baa9 100644 --- a/addons/point_of_sale/static/tests/tours/BarcodeScanning.tour.js +++ b/addons/point_of_sale/static/tests/tours/BarcodeScanning.tour.js @@ -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(); diff --git a/addons/point_of_sale/tests/test_frontend.py b/addons/point_of_sale/tests/test_frontend.py index 2901f8e557a..112d18563f5 100644 --- a/addons/point_of_sale/tests/test_frontend.py +++ b/addons/point_of_sale/tests/test_frontend.py @@ -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',