odoo-addon-account-banking-mandate 17.0.1.0.2__py3-none-any.whl → 17.0.1.0.3.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_banking_mandate/README.rst +1 -1
- odoo/addons/account_banking_mandate/__manifest__.py +1 -1
- odoo/addons/account_banking_mandate/static/description/index.html +1 -1
- odoo/addons/account_banking_mandate/tests/test_invoice_mandate.py +9 -2
- odoo/addons/account_banking_mandate/tests/test_mandate.py +49 -19
- {odoo_addon_account_banking_mandate-17.0.1.0.2.dist-info → odoo_addon_account_banking_mandate-17.0.1.0.3.1.dist-info}/METADATA +2 -2
- {odoo_addon_account_banking_mandate-17.0.1.0.2.dist-info → odoo_addon_account_banking_mandate-17.0.1.0.3.1.dist-info}/RECORD +9 -9
- {odoo_addon_account_banking_mandate-17.0.1.0.2.dist-info → odoo_addon_account_banking_mandate-17.0.1.0.3.1.dist-info}/WHEEL +1 -1
- {odoo_addon_account_banking_mandate-17.0.1.0.2.dist-info → odoo_addon_account_banking_mandate-17.0.1.0.3.1.dist-info}/top_level.txt +0 -0
|
@@ -7,7 +7,7 @@ Account Banking Mandate
|
|
|
7
7
|
!! This file is generated by oca-gen-addon-readme !!
|
|
8
8
|
!! changes will be overwritten. !!
|
|
9
9
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
10
|
-
!! source digest: sha256:
|
|
10
|
+
!! source digest: sha256:1cc104e5cf02f85aa4287a93b2d8af0d419048ae8889b6145e23b40061a41771
|
|
11
11
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
12
12
|
|
|
13
13
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
|
|
@@ -367,7 +367,7 @@ ul.auto-toc {
|
|
|
367
367
|
!! This file is generated by oca-gen-addon-readme !!
|
|
368
368
|
!! changes will be overwritten. !!
|
|
369
369
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
370
|
-
!! source digest: sha256:
|
|
370
|
+
!! source digest: sha256:1cc104e5cf02f85aa4287a93b2d8af0d419048ae8889b6145e23b40061a41771
|
|
371
371
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
|
372
372
|
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/bank-payment/tree/17.0/account_banking_mandate"><img alt="OCA/bank-payment" src="https://img.shields.io/badge/github-OCA%2Fbank--payment-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/bank-payment-17-0/bank-payment-17-0-account_banking_mandate"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/bank-payment&target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
|
373
373
|
<p>This module adds a generic model for banking mandates. These mandates
|
|
@@ -8,6 +8,7 @@ from odoo.exceptions import UserError
|
|
|
8
8
|
from odoo.tests.common import TransactionCase
|
|
9
9
|
|
|
10
10
|
from odoo.addons.account.models.account_payment_method import AccountPaymentMethod
|
|
11
|
+
from odoo.addons.base.tests.common import DISABLED_MAIL_CONTEXT
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
class TestInvoiceMandate(TransactionCase):
|
|
@@ -203,6 +204,7 @@ class TestInvoiceMandate(TransactionCase):
|
|
|
203
204
|
@classmethod
|
|
204
205
|
def setUpClass(cls):
|
|
205
206
|
super().setUpClass()
|
|
207
|
+
cls.env = cls.env(context=dict(cls.env.context, **DISABLED_MAIL_CONTEXT))
|
|
206
208
|
cls.company = cls.env.ref("base.main_company")
|
|
207
209
|
|
|
208
210
|
cls.partner = cls._create_res_partner("Peter with ACME Bank")
|
|
@@ -272,13 +274,18 @@ class TestInvoiceMandate(TransactionCase):
|
|
|
272
274
|
)
|
|
273
275
|
.id
|
|
274
276
|
)
|
|
275
|
-
|
|
277
|
+
cls.product = cls.env["product.product"].create(
|
|
278
|
+
{
|
|
279
|
+
"name": "Test product",
|
|
280
|
+
"type": "service",
|
|
281
|
+
}
|
|
282
|
+
)
|
|
276
283
|
invoice_vals = [
|
|
277
284
|
(
|
|
278
285
|
0,
|
|
279
286
|
0,
|
|
280
287
|
{
|
|
281
|
-
"product_id": cls.
|
|
288
|
+
"product_id": cls.product.id,
|
|
282
289
|
"quantity": 1.0,
|
|
283
290
|
"account_id": invoice_line_account,
|
|
284
291
|
"price_unit": 200.00,
|
|
@@ -7,16 +7,40 @@ from odoo import fields
|
|
|
7
7
|
from odoo.exceptions import UserError, ValidationError
|
|
8
8
|
from odoo.tests.common import TransactionCase
|
|
9
9
|
|
|
10
|
+
from odoo.addons.base.tests.common import DISABLED_MAIL_CONTEXT
|
|
11
|
+
|
|
10
12
|
|
|
11
13
|
class TestMandate(TransactionCase):
|
|
12
14
|
@classmethod
|
|
13
15
|
def setUpClass(cls):
|
|
14
16
|
super().setUpClass()
|
|
15
|
-
cls.
|
|
16
|
-
cls.
|
|
17
|
+
cls.env = cls.env(context=dict(cls.env.context, **DISABLED_MAIL_CONTEXT))
|
|
18
|
+
cls.company = cls.env.ref("base.main_company")
|
|
19
|
+
cls.company_2 = cls.env["res.company"].create({"name": "Company 2"})
|
|
17
20
|
cls.company_2.partner_id.company_id = cls.company_2.id
|
|
18
|
-
cls.
|
|
19
|
-
|
|
21
|
+
cls.partner = cls.env["res.partner"].create(
|
|
22
|
+
{
|
|
23
|
+
"name": "Test Partner",
|
|
24
|
+
"company_id": cls.company.id,
|
|
25
|
+
}
|
|
26
|
+
)
|
|
27
|
+
cls.bank = cls.env["res.bank"].create(
|
|
28
|
+
{
|
|
29
|
+
"name": "Fiducial Banque",
|
|
30
|
+
"bic": "FIDCFR21XXX",
|
|
31
|
+
"street": "38 rue Sergent Michel Berthet",
|
|
32
|
+
"zip": "69009",
|
|
33
|
+
"city": "Lyon",
|
|
34
|
+
"country": cls.env.ref("base.fr").id,
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
cls.bank_account = cls.env["res.partner.bank"].create(
|
|
38
|
+
{
|
|
39
|
+
"partner_id": cls.partner.id,
|
|
40
|
+
"bank_id": cls.bank.id,
|
|
41
|
+
"acc_number": "FR66 1212 1212 1212 1212 1212 121",
|
|
42
|
+
}
|
|
43
|
+
)
|
|
20
44
|
cls.mandate = cls.env["account.banking.mandate"].create(
|
|
21
45
|
{
|
|
22
46
|
"partner_bank_id": cls.bank_account.id,
|
|
@@ -50,10 +74,22 @@ class TestMandate(TransactionCase):
|
|
|
50
74
|
self.mandate.cancel()
|
|
51
75
|
|
|
52
76
|
def test_onchange_methods(self):
|
|
53
|
-
|
|
77
|
+
partner = self.env["res.partner"].create(
|
|
78
|
+
{
|
|
79
|
+
"name": "Test Partner 2",
|
|
80
|
+
"company_id": self.company.id,
|
|
81
|
+
}
|
|
82
|
+
)
|
|
83
|
+
bank_account_2 = self.env["res.partner.bank"].create(
|
|
84
|
+
{
|
|
85
|
+
"partner_id": partner.id,
|
|
86
|
+
"bank_id": self.bank.id,
|
|
87
|
+
"acc_number": "FR66 1212 1212 1212 1212 1212 121",
|
|
88
|
+
}
|
|
89
|
+
)
|
|
54
90
|
self.mandate.partner_bank_id = bank_account_2
|
|
55
91
|
self.mandate.mandate_partner_bank_change()
|
|
56
|
-
self.assertEqual(self.mandate.partner_id,
|
|
92
|
+
self.assertEqual(self.mandate.partner_id, partner)
|
|
57
93
|
|
|
58
94
|
def test_constrains_01(self):
|
|
59
95
|
self.mandate.validate()
|
|
@@ -97,10 +133,9 @@ class TestMandate(TransactionCase):
|
|
|
97
133
|
Test case: create a mandate with no reference
|
|
98
134
|
Expected result: the reference of the created mandate is not empty
|
|
99
135
|
"""
|
|
100
|
-
bank_account = self.env.ref("account_payment_mode.res_partner_12_iban")
|
|
101
136
|
mandate = self.env["account.banking.mandate"].create(
|
|
102
137
|
{
|
|
103
|
-
"partner_bank_id": bank_account.id,
|
|
138
|
+
"partner_bank_id": self.bank_account.id,
|
|
104
139
|
"signature_date": "2015-01-01",
|
|
105
140
|
"company_id": self.company.id,
|
|
106
141
|
}
|
|
@@ -112,10 +147,9 @@ class TestMandate(TransactionCase):
|
|
|
112
147
|
Test case: create a mandate with "ref01" as reference
|
|
113
148
|
Expected result: the reference of the created mandate is "ref01"
|
|
114
149
|
"""
|
|
115
|
-
bank_account = self.env.ref("account_payment_mode.res_partner_12_iban")
|
|
116
150
|
mandate = self.env["account.banking.mandate"].create(
|
|
117
151
|
{
|
|
118
|
-
"partner_bank_id": bank_account.id,
|
|
152
|
+
"partner_bank_id": self.bank_account.id,
|
|
119
153
|
"signature_date": "2015-01-01",
|
|
120
154
|
"company_id": self.company.id,
|
|
121
155
|
"unique_mandate_reference": "ref01",
|
|
@@ -128,10 +162,9 @@ class TestMandate(TransactionCase):
|
|
|
128
162
|
Test case: create a mandate with "TEST" as reference
|
|
129
163
|
Expected result: the reference of the created mandate is "TEST"
|
|
130
164
|
"""
|
|
131
|
-
bank_account = self.env.ref("account_payment_mode.res_partner_12_iban")
|
|
132
165
|
mandate = self.env["account.banking.mandate"].create(
|
|
133
166
|
{
|
|
134
|
-
"partner_bank_id": bank_account.id,
|
|
167
|
+
"partner_bank_id": self.bank_account.id,
|
|
135
168
|
"signature_date": "2015-01-01",
|
|
136
169
|
"company_id": self.company.id,
|
|
137
170
|
"unique_mandate_reference": "TEST",
|
|
@@ -145,10 +178,9 @@ class TestMandate(TransactionCase):
|
|
|
145
178
|
Test case: create a mandate with "/" as reference
|
|
146
179
|
Expected result: the reference of the created mandate is not "/"
|
|
147
180
|
"""
|
|
148
|
-
bank_account = self.env.ref("account_payment_mode.res_partner_12_iban")
|
|
149
181
|
mandate = self.env["account.banking.mandate"].create(
|
|
150
182
|
{
|
|
151
|
-
"partner_bank_id": bank_account.id,
|
|
183
|
+
"partner_bank_id": self.bank_account.id,
|
|
152
184
|
"signature_date": "2015-01-01",
|
|
153
185
|
"company_id": self.company.id,
|
|
154
186
|
"unique_mandate_reference": "/",
|
|
@@ -162,10 +194,9 @@ class TestMandate(TransactionCase):
|
|
|
162
194
|
Test case: create a mandate without reference
|
|
163
195
|
Expected result: the reference of the created mandate is not empty
|
|
164
196
|
"""
|
|
165
|
-
bank_account = self.env.ref("account_payment_mode.res_partner_12_iban")
|
|
166
197
|
mandate = self.env["account.banking.mandate"].create(
|
|
167
198
|
{
|
|
168
|
-
"partner_bank_id": bank_account.id,
|
|
199
|
+
"partner_bank_id": self.bank_account.id,
|
|
169
200
|
"signature_date": "2015-01-01",
|
|
170
201
|
"company_id": self.company.id,
|
|
171
202
|
}
|
|
@@ -177,10 +208,9 @@ class TestMandate(TransactionCase):
|
|
|
177
208
|
Test case: create a mandate with False as reference (empty with UX)
|
|
178
209
|
Expected result: the reference of the created mandate is not False
|
|
179
210
|
"""
|
|
180
|
-
bank_account = self.env.ref("account_payment_mode.res_partner_12_iban")
|
|
181
211
|
mandate_1 = self.env["account.banking.mandate"].create(
|
|
182
212
|
{
|
|
183
|
-
"partner_bank_id": bank_account.id,
|
|
213
|
+
"partner_bank_id": self.bank_account.id,
|
|
184
214
|
"signature_date": "2015-01-01",
|
|
185
215
|
"company_id": self.company.id,
|
|
186
216
|
"unique_mandate_reference": False,
|
|
@@ -189,7 +219,7 @@ class TestMandate(TransactionCase):
|
|
|
189
219
|
self.assertTrue(mandate_1.unique_mandate_reference)
|
|
190
220
|
mandate_2 = self.env["account.banking.mandate"].create(
|
|
191
221
|
{
|
|
192
|
-
"partner_bank_id": bank_account.id,
|
|
222
|
+
"partner_bank_id": self.bank_account.id,
|
|
193
223
|
"signature_date": "2015-01-01",
|
|
194
224
|
"company_id": self.company.id,
|
|
195
225
|
"unique_mandate_reference": "",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: odoo-addon-account_banking_mandate
|
|
3
|
-
Version: 17.0.1.0.
|
|
3
|
+
Version: 17.0.1.0.3.1
|
|
4
4
|
Requires-Python: >=3.10
|
|
5
5
|
Requires-Dist: odoo-addon-account_payment_order>=17.0dev,<17.1dev
|
|
6
6
|
Requires-Dist: odoo>=17.0a,<17.1dev
|
|
@@ -24,7 +24,7 @@ Account Banking Mandate
|
|
|
24
24
|
!! This file is generated by oca-gen-addon-readme !!
|
|
25
25
|
!! changes will be overwritten. !!
|
|
26
26
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
27
|
-
!! source digest: sha256:
|
|
27
|
+
!! source digest: sha256:1cc104e5cf02f85aa4287a93b2d8af0d419048ae8889b6145e23b40061a41771
|
|
28
28
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
29
29
|
|
|
30
30
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
odoo/addons/account_banking_mandate/README.rst,sha256=
|
|
1
|
+
odoo/addons/account_banking_mandate/README.rst,sha256=_y_s2L1MDFKEfM5oQAqW66KiZ-6y-62G3MH9cZ90EBA,3929
|
|
2
2
|
odoo/addons/account_banking_mandate/__init__.py,sha256=X9EJGOE2GtZbS0G82PtSXmWSZ_R8jEM0rlJTDliQjp4,21
|
|
3
|
-
odoo/addons/account_banking_mandate/__manifest__.py,sha256=
|
|
3
|
+
odoo/addons/account_banking_mandate/__manifest__.py,sha256=iVJdt1rfcUvlscod8b-__tiDZ393SOfGxAZqrFEOen4,1199
|
|
4
4
|
odoo/addons/account_banking_mandate/data/mandate_reference_sequence.xml,sha256=Pne_W7tMPmZPLXorBXyeP30OhAUl6tJaAoPFDCg4_ug,381
|
|
5
5
|
odoo/addons/account_banking_mandate/i18n/account_banking_mandate.pot,sha256=i__GcjUI0Du86aCNbWe472wIzRV7jFNgnNKK86TQPuQ,21886
|
|
6
6
|
odoo/addons/account_banking_mandate/i18n/am.po,sha256=aAYkgP36RLJNsCprxxlj1W_xvc8YT8_66H_S2Oa7JwM,22270
|
|
@@ -53,17 +53,17 @@ odoo/addons/account_banking_mandate/readme/USAGE.md,sha256=ZzvichPxeWOyMAhpl73gZ
|
|
|
53
53
|
odoo/addons/account_banking_mandate/security/ir.model.access.csv,sha256=66g45xnkyv9SFcqo06-lhF_ffqxLVDfTSiChc_MSxNQ,358
|
|
54
54
|
odoo/addons/account_banking_mandate/security/mandate_security.xml,sha256=WbewZ27MzIpwIwNm22uZSxgDPejYQ7fkCtAdaJJqIwc,762
|
|
55
55
|
odoo/addons/account_banking_mandate/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
|
|
56
|
-
odoo/addons/account_banking_mandate/static/description/index.html,sha256=
|
|
56
|
+
odoo/addons/account_banking_mandate/static/description/index.html,sha256=7sBbvsSRXQX21frLx6FM29ryKDd3p-U-qg-BXz3ecqk,14487
|
|
57
57
|
odoo/addons/account_banking_mandate/tests/__init__.py,sha256=VYtfoW8h3bB01yKyMfXK9lLWooWPaxF2lTd40c5xwUo,62
|
|
58
|
-
odoo/addons/account_banking_mandate/tests/test_invoice_mandate.py,sha256=
|
|
59
|
-
odoo/addons/account_banking_mandate/tests/test_mandate.py,sha256=
|
|
58
|
+
odoo/addons/account_banking_mandate/tests/test_invoice_mandate.py,sha256=D_EdHs2RNx8aMR4ZmrAqvsbt0ifcgnmYgYY2RkfzBjo,10590
|
|
59
|
+
odoo/addons/account_banking_mandate/tests/test_mandate.py,sha256=AEf9QCgZJsHpCM4DMkacZXb8UYqvZ-KXy_K2kEx6DUg,8323
|
|
60
60
|
odoo/addons/account_banking_mandate/views/account_banking_mandate_view.xml,sha256=pe-LbAo6MDToulojfKgVMPzSi3qJr0asTIuWEJx42bg,9911
|
|
61
61
|
odoo/addons/account_banking_mandate/views/account_move_view.xml,sha256=LGaVIVbOsacws7gRBPdudshs5akWl_L9fYQkitYOguE,1093
|
|
62
62
|
odoo/addons/account_banking_mandate/views/account_payment_line.xml,sha256=RLadAnEvXd690JHPQRzM4i639G_qa-6UyF0qPxzLpv8,1743
|
|
63
63
|
odoo/addons/account_banking_mandate/views/account_payment_method.xml,sha256=XvOE23q96BxjQOAxUKRpm5YUU74HVbPhMvtHc-lxTlI,634
|
|
64
64
|
odoo/addons/account_banking_mandate/views/res_partner.xml,sha256=ztgR1z0FvRwAKMFzMUzBr8TuCQ-XOxTQBTmmChkX3zg,988
|
|
65
65
|
odoo/addons/account_banking_mandate/views/res_partner_bank_view.xml,sha256=WgvMSDdnNH2TdOqlBQ6EYfjzhSjUyjNtpOQQXHFlIIE,1400
|
|
66
|
-
odoo_addon_account_banking_mandate-17.0.1.0.
|
|
67
|
-
odoo_addon_account_banking_mandate-17.0.1.0.
|
|
68
|
-
odoo_addon_account_banking_mandate-17.0.1.0.
|
|
69
|
-
odoo_addon_account_banking_mandate-17.0.1.0.
|
|
66
|
+
odoo_addon_account_banking_mandate-17.0.1.0.3.1.dist-info/METADATA,sha256=rFBmZFwYPQk-RZS-NVpeWPaY_E8gzqcf4SGncCS-tLc,4603
|
|
67
|
+
odoo_addon_account_banking_mandate-17.0.1.0.3.1.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
|
|
68
|
+
odoo_addon_account_banking_mandate-17.0.1.0.3.1.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
|
69
|
+
odoo_addon_account_banking_mandate-17.0.1.0.3.1.dist-info/RECORD,,
|