odoo-addon-account-payment-order 17.0.1.7.0__py3-none-any.whl → 17.0.1.7.0.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- odoo/addons/account_payment_order/tests/test_bank.py +16 -1
- odoo/addons/account_payment_order/tests/test_payment_order_inbound.py +7 -1
- odoo/addons/account_payment_order/tests/test_payment_order_outbound.py +8 -2
- {odoo_addon_account_payment_order-17.0.1.7.0.dist-info → odoo_addon_account_payment_order-17.0.1.7.0.1.dist-info}/METADATA +1 -1
- {odoo_addon_account_payment_order-17.0.1.7.0.dist-info → odoo_addon_account_payment_order-17.0.1.7.0.1.dist-info}/RECORD +7 -7
- {odoo_addon_account_payment_order-17.0.1.7.0.dist-info → odoo_addon_account_payment_order-17.0.1.7.0.1.dist-info}/WHEEL +0 -0
- {odoo_addon_account_payment_order-17.0.1.7.0.dist-info → odoo_addon_account_payment_order-17.0.1.7.0.1.dist-info}/top_level.txt +0 -0
|
@@ -15,6 +15,21 @@ class TestBank(TransactionCase):
|
|
|
15
15
|
|
|
16
16
|
def test_bank(self):
|
|
17
17
|
bank = self.env["res.bank"].search([], limit=1)
|
|
18
|
-
|
|
18
|
+
if not bank:
|
|
19
|
+
# This should only happen if we don't have demo data
|
|
20
|
+
bank = (
|
|
21
|
+
self.env["res.bank"]
|
|
22
|
+
.env["res.bank"]
|
|
23
|
+
.create(
|
|
24
|
+
{
|
|
25
|
+
"name": "Fiducial Banque",
|
|
26
|
+
"bic": "FIDCFR21XXX",
|
|
27
|
+
"street": "38 rue Sergent Michel Berthet",
|
|
28
|
+
"zip": "69009",
|
|
29
|
+
"city": "Lyon",
|
|
30
|
+
"country": self.env.ref("base.fr").id,
|
|
31
|
+
}
|
|
32
|
+
)
|
|
33
|
+
)
|
|
19
34
|
with self.assertRaises(ValidationError):
|
|
20
35
|
bank.bic = "TEST"
|
|
@@ -23,6 +23,12 @@ class TestPaymentOrderInboundBase(AccountTestInvoicingCommon):
|
|
|
23
23
|
cls.env = cls.env(context=dict(cls.env.context, **DISABLED_MAIL_CONTEXT))
|
|
24
24
|
cls.company = cls.company_data["company"]
|
|
25
25
|
cls.env.user.company_id = cls.company.id
|
|
26
|
+
cls.product = cls.env["product.product"].create(
|
|
27
|
+
{
|
|
28
|
+
"name": "Test product",
|
|
29
|
+
"type": "service",
|
|
30
|
+
}
|
|
31
|
+
)
|
|
26
32
|
cls.partner = cls.env["res.partner"].create(
|
|
27
33
|
{
|
|
28
34
|
"name": "Test Partner",
|
|
@@ -71,7 +77,7 @@ class TestPaymentOrderInboundBase(AccountTestInvoicingCommon):
|
|
|
71
77
|
) as invoice_form:
|
|
72
78
|
invoice_form.partner_id = self.partner
|
|
73
79
|
with invoice_form.invoice_line_ids.new() as invoice_line_form:
|
|
74
|
-
invoice_line_form.product_id = self.
|
|
80
|
+
invoice_line_form.product_id = self.product
|
|
75
81
|
invoice_line_form.name = "product that cost 100"
|
|
76
82
|
invoice_line_form.quantity = 1
|
|
77
83
|
invoice_line_form.price_unit = 100.0
|
|
@@ -53,6 +53,12 @@ class TestPaymentOrderOutboundBase(AccountTestInvoicingCommon):
|
|
|
53
53
|
).id,
|
|
54
54
|
}
|
|
55
55
|
)
|
|
56
|
+
cls.product = cls.env["product.product"].create(
|
|
57
|
+
{
|
|
58
|
+
"name": "Test product",
|
|
59
|
+
"type": "service",
|
|
60
|
+
}
|
|
61
|
+
)
|
|
56
62
|
cls.invoice = cls._create_supplier_invoice(cls, "F1242")
|
|
57
63
|
cls.invoice_02 = cls._create_supplier_invoice(cls, "F1243")
|
|
58
64
|
cls.bank_journal = cls.company_data["default_journal_bank"]
|
|
@@ -77,7 +83,7 @@ class TestPaymentOrderOutboundBase(AccountTestInvoicingCommon):
|
|
|
77
83
|
0,
|
|
78
84
|
None,
|
|
79
85
|
{
|
|
80
|
-
"product_id": self.
|
|
86
|
+
"product_id": self.product.id,
|
|
81
87
|
"quantity": 1.0,
|
|
82
88
|
"price_unit": 100.0,
|
|
83
89
|
"name": "product that cost 100",
|
|
@@ -104,7 +110,7 @@ class TestPaymentOrderOutboundBase(AccountTestInvoicingCommon):
|
|
|
104
110
|
0,
|
|
105
111
|
None,
|
|
106
112
|
{
|
|
107
|
-
"product_id": self.
|
|
113
|
+
"product_id": self.product.id,
|
|
108
114
|
"quantity": 1.0,
|
|
109
115
|
"price_unit": 90.0,
|
|
110
116
|
"name": "refund of 90.0",
|
|
@@ -69,10 +69,10 @@ odoo/addons/account_payment_order/static/description/icon.png,sha256=6xBPJauaFOF
|
|
|
69
69
|
odoo/addons/account_payment_order/static/description/index.html,sha256=Xp35pVfOd9kfrus0bmCxPsKXEC2EaCaHRpIXkN8OFsM,16031
|
|
70
70
|
odoo/addons/account_payment_order/tests/__init__.py,sha256=lOx5jg7LBTMs0mXira6LpqK_dNDUbPa5nViWWAug7xc,174
|
|
71
71
|
odoo/addons/account_payment_order/tests/test_account_payment.py,sha256=D_gDXDO94gpgANHEJx6cCIHh7em2GOXZqhWqqav4XVw,6787
|
|
72
|
-
odoo/addons/account_payment_order/tests/test_bank.py,sha256=
|
|
72
|
+
odoo/addons/account_payment_order/tests/test_bank.py,sha256=0mY8uBwlD12sV3Rckk7WmFZonjAzEWKZjaas7K36Q1A,1177
|
|
73
73
|
odoo/addons/account_payment_order/tests/test_payment_mode.py,sha256=FGeaeoQe8tHRVjnp4xHBIWBF6a-UWrV6_pX9-HTETw4,3298
|
|
74
|
-
odoo/addons/account_payment_order/tests/test_payment_order_inbound.py,sha256=
|
|
75
|
-
odoo/addons/account_payment_order/tests/test_payment_order_outbound.py,sha256=
|
|
74
|
+
odoo/addons/account_payment_order/tests/test_payment_order_inbound.py,sha256=P65NXf_jpHhaVEpY15EyV0h_BwipHC7CYBrPrsNa4VI,8200
|
|
75
|
+
odoo/addons/account_payment_order/tests/test_payment_order_outbound.py,sha256=Z-cqohE9BPQVLsigYJ6CtgSQQMI10QUCk8CRIi3uIJg,19240
|
|
76
76
|
odoo/addons/account_payment_order/views/account_invoice_view.xml,sha256=cYXmLhtaOJbiJdQCSzaH_FdcpgR_Z6-PLFUUykYzuv0,4682
|
|
77
77
|
odoo/addons/account_payment_order/views/account_move_line.xml,sha256=MZDzWzwWVO9HkMT0dmGJHJuLNmYo2gtgga3ls6iBWyk,2373
|
|
78
78
|
odoo/addons/account_payment_order/views/account_payment_line.xml,sha256=-DdtoJ_W0ZhYqSw1H--H3Tk0fFixY0Pyd53nqdP3h0g,5314
|
|
@@ -88,7 +88,7 @@ odoo/addons/account_payment_order/wizard/account_payment_line_create.py,sha256=F
|
|
|
88
88
|
odoo/addons/account_payment_order/wizard/account_payment_line_create_view.xml,sha256=Ln0tzR3xytjZdSuzWSc6X4MQxUG2vPxqfiPSo5JCguc,4532
|
|
89
89
|
odoo/addons/account_payment_order/wizard/account_payment_update.py,sha256=20_tas7P85zDv1A-LyG5UTjKdx9EJy-0vKldt1n3Tt8,547
|
|
90
90
|
odoo/addons/account_payment_order/wizard/account_payment_update_views.xml,sha256=NW4YiMhhmM5xCJ5n86KNPtn5xRnCmvzuwRw-BmRiBMM,979
|
|
91
|
-
odoo_addon_account_payment_order-17.0.1.7.0.dist-info/METADATA,sha256=
|
|
92
|
-
odoo_addon_account_payment_order-17.0.1.7.0.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
|
|
93
|
-
odoo_addon_account_payment_order-17.0.1.7.0.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
|
94
|
-
odoo_addon_account_payment_order-17.0.1.7.0.dist-info/RECORD,,
|
|
91
|
+
odoo_addon_account_payment_order-17.0.1.7.0.1.dist-info/METADATA,sha256=8-4wHkk4XOvdvob0GY_G4GmAbDdM68xNhofEWFaI9-Y,5310
|
|
92
|
+
odoo_addon_account_payment_order-17.0.1.7.0.1.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
|
|
93
|
+
odoo_addon_account_payment_order-17.0.1.7.0.1.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
|
94
|
+
odoo_addon_account_payment_order-17.0.1.7.0.1.dist-info/RECORD,,
|
|
File without changes
|