Skip to content

Commit

Permalink
[FIX] sale_financial_risk_pos_compatibility: Finish tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
geomer198 committed Jul 17, 2023
1 parent 9d9e3c5 commit 6127e03
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion sale_financial_risk_pos_compatibility/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
10 changes: 10 additions & 0 deletions sale_financial_risk_pos_compatibility/data/demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>

<record id="test_partner" model="res.partner">
<field name="name">Test Partner</field>
<field name="risk_sale_order_limit">1.0</field>
<field name="credit_limit">1.0</field>
</record>

</odoo>
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 0 additions & 7 deletions sale_financial_risk_pos_compatibility/tests/test_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 6127e03

Please sign in to comment.