diff --git a/sale_financial_risk_pos_compatibility/__manifest__.py b/sale_financial_risk_pos_compatibility/__manifest__.py index 811bfea1fc..891b696792 100644 --- a/sale_financial_risk_pos_compatibility/__manifest__.py +++ b/sale_financial_risk_pos_compatibility/__manifest__.py @@ -7,7 +7,7 @@ "website": "https://github.com/OCA/pos", "author": "Cetmix,Odoo Community Association (OCA)", "maintainers": ["geomer198", "CetmixGitDrone"], - "data": [], + "data": ["data/demo.xml"], "installable": True, "assets": { "point_of_sale.assets": [ diff --git a/sale_financial_risk_pos_compatibility/data/demo.xml b/sale_financial_risk_pos_compatibility/data/demo.xml new file mode 100644 index 0000000000..9e0b7f9462 --- /dev/null +++ b/sale_financial_risk_pos_compatibility/data/demo.xml @@ -0,0 +1,10 @@ + + + + + Test Partner + 1.0 + 1.0 + + + diff --git a/sale_financial_risk_pos_compatibility/static/src/tests/tours/SaleFinancialRiskPosCompatibility.tour.js b/sale_financial_risk_pos_compatibility/static/src/tests/tours/SaleFinancialRiskPosCompatibility.tour.js index 1b85a8d30e..23e038721b 100644 --- a/sale_financial_risk_pos_compatibility/static/src/tests/tours/SaleFinancialRiskPosCompatibility.tour.js +++ b/sale_financial_risk_pos_compatibility/static/src/tests/tours/SaleFinancialRiskPosCompatibility.tour.js @@ -69,7 +69,7 @@ odoo.define( { content: "Test sale_financial_risk_pos_compatibility: Confirm popup click on 'Ok' Button", - trigger: "div.confirm div:contains('Ok')", + trigger: ".popup-confirm .footer div:contains('Ok')", }, { content: diff --git a/sale_financial_risk_pos_compatibility/tests/test_module.py b/sale_financial_risk_pos_compatibility/tests/test_module.py index cd797bd2b7..e99db5d812 100644 --- a/sale_financial_risk_pos_compatibility/tests/test_module.py +++ b/sale_financial_risk_pos_compatibility/tests/test_module.py @@ -6,13 +6,6 @@ @tagged("post_install", "-at_install") class TestUI(TestPointOfSaleHttpCommon): def test_sale_financial_risk_pos_compatibility(self): - self.partner = self.env["res.partner"].create( - { - "name": "Test Partner", - "risk_sale_order_limit": 100.0, - "credit_limit": 100.0, - } - ) self.main_pos_config.open_ui() self.start_tour(