odoo-addon-account-banking-mandate 16.0.1.3.4__py3-none-any.whl → 16.0.1.3.5__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 +7 -1
- odoo/addons/account_banking_mandate/tests/test_mandate.py +44 -17
- {odoo_addon_account_banking_mandate-16.0.1.3.4.dist-info → odoo_addon_account_banking_mandate-16.0.1.3.5.dist-info}/METADATA +2 -2
- {odoo_addon_account_banking_mandate-16.0.1.3.4.dist-info → odoo_addon_account_banking_mandate-16.0.1.3.5.dist-info}/RECORD +9 -9
- {odoo_addon_account_banking_mandate-16.0.1.3.4.dist-info → odoo_addon_account_banking_mandate-16.0.1.3.5.dist-info}/WHEEL +0 -0
- {odoo_addon_account_banking_mandate-16.0.1.3.4.dist-info → odoo_addon_account_banking_mandate-16.0.1.3.5.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:d9ec3039f02e9ffcb38fcb853907a3edf85991a280bd5c9c68745cc7bf9483ac
|
|
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:d9ec3039f02e9ffcb38fcb853907a3edf85991a280bd5c9c68745cc7bf9483ac
|
|
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/16.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-16-0/bank-payment-16-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=16.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.
|
|
@@ -279,12 +279,18 @@ class TestInvoiceMandate(TransactionCase):
|
|
|
279
279
|
)
|
|
280
280
|
.id
|
|
281
281
|
)
|
|
282
|
+
cls.product = cls.env["product.product"].create(
|
|
283
|
+
{
|
|
284
|
+
"name": "Test product",
|
|
285
|
+
"type": "service",
|
|
286
|
+
}
|
|
287
|
+
)
|
|
282
288
|
invoice_vals = [
|
|
283
289
|
(
|
|
284
290
|
0,
|
|
285
291
|
0,
|
|
286
292
|
{
|
|
287
|
-
"product_id": cls.
|
|
293
|
+
"product_id": cls.product.id,
|
|
288
294
|
"quantity": 1.0,
|
|
289
295
|
"account_id": invoice_line_account,
|
|
290
296
|
"price_unit": 200.00,
|
|
@@ -28,8 +28,29 @@ class TestMandate(TransactionCase):
|
|
|
28
28
|
coa.try_loading(company=cls.company, install_demo=False)
|
|
29
29
|
cls.company_2 = cls.env["res.company"].create({"name": "Company 2"})
|
|
30
30
|
cls.company_2.partner_id.company_id = cls.company_2.id
|
|
31
|
-
cls.
|
|
32
|
-
|
|
31
|
+
cls.partner = cls.env["res.partner"].create(
|
|
32
|
+
{
|
|
33
|
+
"name": "Test Partner",
|
|
34
|
+
"company_id": cls.company.id,
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
cls.bank = cls.env["res.bank"].create(
|
|
38
|
+
{
|
|
39
|
+
"name": "Fiducial Banque",
|
|
40
|
+
"bic": "FIDCFR21XXX",
|
|
41
|
+
"street": "38 rue Sergent Michel Berthet",
|
|
42
|
+
"zip": "69009",
|
|
43
|
+
"city": "Lyon",
|
|
44
|
+
"country": cls.env.ref("base.fr").id,
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
cls.bank_account = cls.env["res.partner.bank"].create(
|
|
48
|
+
{
|
|
49
|
+
"partner_id": cls.partner.id,
|
|
50
|
+
"bank_id": cls.bank.id,
|
|
51
|
+
"acc_number": "FR66 1212 1212 1212 1212 1212 121",
|
|
52
|
+
}
|
|
53
|
+
)
|
|
33
54
|
cls.mandate = cls.env["account.banking.mandate"].create(
|
|
34
55
|
{
|
|
35
56
|
"partner_bank_id": cls.bank_account.id,
|
|
@@ -64,10 +85,22 @@ class TestMandate(TransactionCase):
|
|
|
64
85
|
self.mandate.cancel()
|
|
65
86
|
|
|
66
87
|
def test_onchange_methods(self):
|
|
67
|
-
|
|
88
|
+
partner = self.env["res.partner"].create(
|
|
89
|
+
{
|
|
90
|
+
"name": "Test Partner 2",
|
|
91
|
+
"company_id": self.company.id,
|
|
92
|
+
}
|
|
93
|
+
)
|
|
94
|
+
bank_account_2 = self.env["res.partner.bank"].create(
|
|
95
|
+
{
|
|
96
|
+
"partner_id": partner.id,
|
|
97
|
+
"bank_id": self.bank.id,
|
|
98
|
+
"acc_number": "FR66 1212 1212 1212 1212 1212 121",
|
|
99
|
+
}
|
|
100
|
+
)
|
|
68
101
|
self.mandate.partner_bank_id = bank_account_2
|
|
69
102
|
self.mandate.mandate_partner_bank_change()
|
|
70
|
-
self.assertEqual(self.mandate.partner_id,
|
|
103
|
+
self.assertEqual(self.mandate.partner_id, partner)
|
|
71
104
|
|
|
72
105
|
def test_constrains_01(self):
|
|
73
106
|
self.mandate.validate()
|
|
@@ -111,10 +144,9 @@ class TestMandate(TransactionCase):
|
|
|
111
144
|
Test case: create a mandate with no reference
|
|
112
145
|
Expected result: the reference of the created mandate is not empty
|
|
113
146
|
"""
|
|
114
|
-
bank_account = self.env.ref("account_payment_mode.res_partner_12_iban")
|
|
115
147
|
mandate = self.env["account.banking.mandate"].create(
|
|
116
148
|
{
|
|
117
|
-
"partner_bank_id": bank_account.id,
|
|
149
|
+
"partner_bank_id": self.bank_account.id,
|
|
118
150
|
"signature_date": "2015-01-01",
|
|
119
151
|
"company_id": self.company.id,
|
|
120
152
|
}
|
|
@@ -126,10 +158,9 @@ class TestMandate(TransactionCase):
|
|
|
126
158
|
Test case: create a mandate with "ref01" as reference
|
|
127
159
|
Expected result: the reference of the created mandate is "ref01"
|
|
128
160
|
"""
|
|
129
|
-
bank_account = self.env.ref("account_payment_mode.res_partner_12_iban")
|
|
130
161
|
mandate = self.env["account.banking.mandate"].create(
|
|
131
162
|
{
|
|
132
|
-
"partner_bank_id": bank_account.id,
|
|
163
|
+
"partner_bank_id": self.bank_account.id,
|
|
133
164
|
"signature_date": "2015-01-01",
|
|
134
165
|
"company_id": self.company.id,
|
|
135
166
|
"unique_mandate_reference": "ref01",
|
|
@@ -142,10 +173,9 @@ class TestMandate(TransactionCase):
|
|
|
142
173
|
Test case: create a mandate with "TEST" as reference
|
|
143
174
|
Expected result: the reference of the created mandate is "TEST"
|
|
144
175
|
"""
|
|
145
|
-
bank_account = self.env.ref("account_payment_mode.res_partner_12_iban")
|
|
146
176
|
mandate = self.env["account.banking.mandate"].create(
|
|
147
177
|
{
|
|
148
|
-
"partner_bank_id": bank_account.id,
|
|
178
|
+
"partner_bank_id": self.bank_account.id,
|
|
149
179
|
"signature_date": "2015-01-01",
|
|
150
180
|
"company_id": self.company.id,
|
|
151
181
|
"unique_mandate_reference": "TEST",
|
|
@@ -159,10 +189,9 @@ class TestMandate(TransactionCase):
|
|
|
159
189
|
Test case: create a mandate with "/" as reference
|
|
160
190
|
Expected result: the reference of the created mandate is not "/"
|
|
161
191
|
"""
|
|
162
|
-
bank_account = self.env.ref("account_payment_mode.res_partner_12_iban")
|
|
163
192
|
mandate = self.env["account.banking.mandate"].create(
|
|
164
193
|
{
|
|
165
|
-
"partner_bank_id": bank_account.id,
|
|
194
|
+
"partner_bank_id": self.bank_account.id,
|
|
166
195
|
"signature_date": "2015-01-01",
|
|
167
196
|
"company_id": self.company.id,
|
|
168
197
|
"unique_mandate_reference": "/",
|
|
@@ -176,10 +205,9 @@ class TestMandate(TransactionCase):
|
|
|
176
205
|
Test case: create a mandate without reference
|
|
177
206
|
Expected result: the reference of the created mandate is not empty
|
|
178
207
|
"""
|
|
179
|
-
bank_account = self.env.ref("account_payment_mode.res_partner_12_iban")
|
|
180
208
|
mandate = self.env["account.banking.mandate"].create(
|
|
181
209
|
{
|
|
182
|
-
"partner_bank_id": bank_account.id,
|
|
210
|
+
"partner_bank_id": self.bank_account.id,
|
|
183
211
|
"signature_date": "2015-01-01",
|
|
184
212
|
"company_id": self.company.id,
|
|
185
213
|
}
|
|
@@ -191,10 +219,9 @@ class TestMandate(TransactionCase):
|
|
|
191
219
|
Test case: create a mandate with False as reference (empty with UX)
|
|
192
220
|
Expected result: the reference of the created mandate is not False
|
|
193
221
|
"""
|
|
194
|
-
bank_account = self.env.ref("account_payment_mode.res_partner_12_iban")
|
|
195
222
|
mandate_1 = self.env["account.banking.mandate"].create(
|
|
196
223
|
{
|
|
197
|
-
"partner_bank_id": bank_account.id,
|
|
224
|
+
"partner_bank_id": self.bank_account.id,
|
|
198
225
|
"signature_date": "2015-01-01",
|
|
199
226
|
"company_id": self.company.id,
|
|
200
227
|
"unique_mandate_reference": False,
|
|
@@ -203,7 +230,7 @@ class TestMandate(TransactionCase):
|
|
|
203
230
|
self.assertTrue(mandate_1.unique_mandate_reference)
|
|
204
231
|
mandate_2 = self.env["account.banking.mandate"].create(
|
|
205
232
|
{
|
|
206
|
-
"partner_bank_id": bank_account.id,
|
|
233
|
+
"partner_bank_id": self.bank_account.id,
|
|
207
234
|
"signature_date": "2015-01-01",
|
|
208
235
|
"company_id": self.company.id,
|
|
209
236
|
"unique_mandate_reference": "",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: odoo-addon-account_banking_mandate
|
|
3
|
-
Version: 16.0.1.3.
|
|
3
|
+
Version: 16.0.1.3.5
|
|
4
4
|
Summary: Banking mandates
|
|
5
5
|
Home-page: https://github.com/OCA/bank-payment
|
|
6
6
|
Author: Compassion CH, Tecnativa, Akretion, Therp B.V., Odoo Community Association (OCA)
|
|
@@ -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:d9ec3039f02e9ffcb38fcb853907a3edf85991a280bd5c9c68745cc7bf9483ac
|
|
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=AY2NG5HGPTgwethO65RNLqDMiq8B-xKuuFvHnUpgD0Y,3917
|
|
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=q0-Nf5rZaj52WUT7hwivEcxALbBY0uFSba-8Y-KkR00,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=M4ArxbaxjQDHrJNRuqwx43B_512mQFcdqU3LvyKgTvg,22264
|
|
6
6
|
odoo/addons/account_banking_mandate/i18n/am.po,sha256=LxemBs85czlD6QwYmL27bXmdCMzQz8nKAsWKT5L9HXs,22648
|
|
@@ -53,17 +53,17 @@ odoo/addons/account_banking_mandate/readme/USAGE.rst,sha256=bGf8r-kiaS29WfWjwEZL
|
|
|
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=sBlQxuBmmBXJofKxs99J8Fyn91h5gwkrctaE1TJe_FM,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=sZhapdsA8O9eFNy_LMQwicO3JEYh0xBMIR28p7on9_A,11165
|
|
59
|
+
odoo/addons/account_banking_mandate/tests/test_mandate.py,sha256=2A2JkScW-RJZW7rvBuBOPhpD3zx23Phlc04eIQrbczQ,8874
|
|
60
60
|
odoo/addons/account_banking_mandate/views/account_banking_mandate_view.xml,sha256=r97sI5fq2CmeDQl8WefgvTBaOinOCa9SQjAO0h2bjME,9995
|
|
61
61
|
odoo/addons/account_banking_mandate/views/account_move_view.xml,sha256=9MLc5hLMk1BLxBWoduB_0PeWPErkza6CkjThqqlSGeU,1103
|
|
62
62
|
odoo/addons/account_banking_mandate/views/account_payment_line.xml,sha256=t_tnl1-Kf8oPfwhRcy6zSfApiaETeVI_muBT8oNhJEo,1763
|
|
63
63
|
odoo/addons/account_banking_mandate/views/account_payment_method.xml,sha256=xjrdpvlyMtnAWsUz34EkTqqlferFW-kDKb9y653hncQ,711
|
|
64
64
|
odoo/addons/account_banking_mandate/views/res_partner.xml,sha256=GpZpEIPSBQhYNhKlGIthnkYABy4rNMF1z2keGRq0nH4,1087
|
|
65
65
|
odoo/addons/account_banking_mandate/views/res_partner_bank_view.xml,sha256=5RMHyCc4ouinkLNbHGJb9APNodbBLP3kB7JBFmY39oM,1439
|
|
66
|
-
odoo_addon_account_banking_mandate-16.0.1.3.
|
|
67
|
-
odoo_addon_account_banking_mandate-16.0.1.3.
|
|
68
|
-
odoo_addon_account_banking_mandate-16.0.1.3.
|
|
69
|
-
odoo_addon_account_banking_mandate-16.0.1.3.
|
|
66
|
+
odoo_addon_account_banking_mandate-16.0.1.3.5.dist-info/METADATA,sha256=RLvUqgmWEoxalEYWJp-f3eyZOvMv8FNxwZ48afJRZY0,4589
|
|
67
|
+
odoo_addon_account_banking_mandate-16.0.1.3.5.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
68
|
+
odoo_addon_account_banking_mandate-16.0.1.3.5.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
|
|
69
|
+
odoo_addon_account_banking_mandate-16.0.1.3.5.dist-info/RECORD,,
|
|
File without changes
|