odoo-addon-account-banking-mandate 15.0.2.1.2.4__py3-none-any.whl → 15.0.2.1.4__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/models/account_banking_mandate.py +1 -2
- odoo/addons/account_banking_mandate/models/account_payment_method.py +10 -1
- odoo/addons/account_banking_mandate/static/description/index.html +8 -6
- odoo/addons/account_banking_mandate/tests/test_mandate.py +25 -0
- {odoo_addon_account_banking_mandate-15.0.2.1.2.4.dist-info → odoo_addon_account_banking_mandate-15.0.2.1.4.dist-info}/METADATA +3 -6
- {odoo_addon_account_banking_mandate-15.0.2.1.2.4.dist-info → odoo_addon_account_banking_mandate-15.0.2.1.4.dist-info}/RECORD +10 -10
- {odoo_addon_account_banking_mandate-15.0.2.1.2.4.dist-info → odoo_addon_account_banking_mandate-15.0.2.1.4.dist-info}/WHEEL +0 -0
- {odoo_addon_account_banking_mandate-15.0.2.1.2.4.dist-info → odoo_addon_account_banking_mandate-15.0.2.1.4.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:85cbf1bb42f770f4d7e9e95ac45c3bd07e9f846d9aa34397cb66b44d599c682c
|
|
11
11
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
12
12
|
|
|
13
13
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
|
|
@@ -176,8 +176,7 @@ class AccountBankingMandate(models.Model):
|
|
|
176
176
|
@api.model_create_multi
|
|
177
177
|
def create(self, vals_list):
|
|
178
178
|
for vals in vals_list:
|
|
179
|
-
|
|
180
|
-
if unique_mandate_reference == "/":
|
|
179
|
+
if (vals.get("unique_mandate_reference") or "/") == "/":
|
|
181
180
|
vals["unique_mandate_reference"] = (
|
|
182
181
|
self.env["ir.sequence"].next_by_code("account.banking.mandate")
|
|
183
182
|
or "New"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Copyright 2016-2020 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
|
|
2
2
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
|
3
3
|
|
|
4
|
-
from odoo import fields, models
|
|
4
|
+
from odoo import api, fields, models
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
class AccountPaymentMethod(models.Model):
|
|
@@ -11,3 +11,12 @@ class AccountPaymentMethod(models.Model):
|
|
|
11
11
|
help="Activate this option if this payment method requires your "
|
|
12
12
|
"customer to sign a direct debit mandate with your company.",
|
|
13
13
|
)
|
|
14
|
+
|
|
15
|
+
@api.model
|
|
16
|
+
def _get_payment_method_information(self):
|
|
17
|
+
res = super()._get_payment_method_information()
|
|
18
|
+
res["sepa_direct_debit"] = {
|
|
19
|
+
"mode": "multi",
|
|
20
|
+
"domain": [("type", "=", "bank")],
|
|
21
|
+
}
|
|
22
|
+
return res
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
1
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
3
2
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
4
3
|
<head>
|
|
@@ -9,10 +8,11 @@
|
|
|
9
8
|
|
|
10
9
|
/*
|
|
11
10
|
:Author: David Goodger (goodger@python.org)
|
|
12
|
-
:Id: $Id: html4css1.css
|
|
11
|
+
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
|
|
13
12
|
:Copyright: This stylesheet has been placed in the public domain.
|
|
14
13
|
|
|
15
14
|
Default cascading style sheet for the HTML output of Docutils.
|
|
15
|
+
Despite the name, some widely supported CSS2 features are used.
|
|
16
16
|
|
|
17
17
|
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
|
|
18
18
|
customize this style sheet.
|
|
@@ -275,7 +275,7 @@ pre.literal-block, pre.doctest-block, pre.math, pre.code {
|
|
|
275
275
|
margin-left: 2em ;
|
|
276
276
|
margin-right: 2em }
|
|
277
277
|
|
|
278
|
-
pre.code .ln { color:
|
|
278
|
+
pre.code .ln { color: gray; } /* line numbers */
|
|
279
279
|
pre.code, code { background-color: #eeeeee }
|
|
280
280
|
pre.code .comment, code .comment { color: #5C6576 }
|
|
281
281
|
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
|
|
@@ -301,7 +301,7 @@ span.option {
|
|
|
301
301
|
span.pre {
|
|
302
302
|
white-space: pre }
|
|
303
303
|
|
|
304
|
-
span.problematic {
|
|
304
|
+
span.problematic, pre.problematic {
|
|
305
305
|
color: red }
|
|
306
306
|
|
|
307
307
|
span.section-subtitle {
|
|
@@ -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:85cbf1bb42f770f4d7e9e95ac45c3bd07e9f846d9aa34397cb66b44d599c682c
|
|
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/15.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-15-0/bank-payment-15-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=15.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.
|
|
@@ -437,7 +437,9 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
|
|
437
437
|
<div class="section" id="maintainers">
|
|
438
438
|
<h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
|
|
439
439
|
<p>This module is maintained by the OCA.</p>
|
|
440
|
-
<a class="reference external image-reference" href="https://odoo-community.org"
|
|
440
|
+
<a class="reference external image-reference" href="https://odoo-community.org">
|
|
441
|
+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
|
|
442
|
+
</a>
|
|
441
443
|
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
|
|
442
444
|
mission is to support the collaborative development of Odoo features and
|
|
443
445
|
promote its widespread use.</p>
|
|
@@ -222,6 +222,31 @@ class TestMandate(TransactionCase):
|
|
|
222
222
|
)
|
|
223
223
|
self.assertTrue(mandate.unique_mandate_reference)
|
|
224
224
|
|
|
225
|
+
def test_mandate_reference_06(self):
|
|
226
|
+
"""
|
|
227
|
+
Test case: create a mandate with False as reference (empty with UX)
|
|
228
|
+
Expected result: the reference of the created mandate is not False
|
|
229
|
+
"""
|
|
230
|
+
bank_account = self.env.ref("account_payment_mode.res_partner_12_iban")
|
|
231
|
+
mandate_1 = self.env["account.banking.mandate"].create(
|
|
232
|
+
{
|
|
233
|
+
"partner_bank_id": bank_account.id,
|
|
234
|
+
"signature_date": "2015-01-01",
|
|
235
|
+
"company_id": self.company.id,
|
|
236
|
+
"unique_mandate_reference": False,
|
|
237
|
+
}
|
|
238
|
+
)
|
|
239
|
+
self.assertTrue(mandate_1.unique_mandate_reference)
|
|
240
|
+
mandate_2 = self.env["account.banking.mandate"].create(
|
|
241
|
+
{
|
|
242
|
+
"partner_bank_id": bank_account.id,
|
|
243
|
+
"signature_date": "2015-01-01",
|
|
244
|
+
"company_id": self.company.id,
|
|
245
|
+
"unique_mandate_reference": "",
|
|
246
|
+
}
|
|
247
|
+
)
|
|
248
|
+
self.assertTrue(mandate_2.unique_mandate_reference)
|
|
249
|
+
|
|
225
250
|
@classmethod
|
|
226
251
|
def setUpClass(cls):
|
|
227
252
|
res = super(TestMandate, cls).setUpClass()
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
|
-
Name: odoo-addon-
|
|
3
|
-
Version: 15.0.2.1.
|
|
2
|
+
Name: odoo-addon-account_banking_mandate
|
|
3
|
+
Version: 15.0.2.1.4
|
|
4
4
|
Summary: Banking mandates
|
|
5
5
|
Home-page: https://github.com/OCA/bank-payment
|
|
6
6
|
Author: Compassion CH, Tecnativa, Akretion, Odoo Community Association (OCA)
|
|
7
7
|
Author-email: support@odoo-community.org
|
|
8
8
|
License: AGPL-3
|
|
9
|
-
Platform: UNKNOWN
|
|
10
9
|
Classifier: Programming Language :: Python
|
|
11
10
|
Classifier: Framework :: Odoo
|
|
12
11
|
Classifier: Framework :: Odoo :: 15.0
|
|
@@ -25,7 +24,7 @@ Account Banking Mandate
|
|
|
25
24
|
!! This file is generated by oca-gen-addon-readme !!
|
|
26
25
|
!! changes will be overwritten. !!
|
|
27
26
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
28
|
-
!! source digest: sha256:
|
|
27
|
+
!! source digest: sha256:85cbf1bb42f770f4d7e9e95ac45c3bd07e9f846d9aa34397cb66b44d599c682c
|
|
29
28
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
30
29
|
|
|
31
30
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
|
|
@@ -123,5 +122,3 @@ promote its widespread use.
|
|
|
123
122
|
This module is part of the `OCA/bank-payment <https://github.com/OCA/bank-payment/tree/15.0/account_banking_mandate>`_ project on GitHub.
|
|
124
123
|
|
|
125
124
|
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
|
126
|
-
|
|
127
|
-
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
odoo/addons/account_banking_mandate/README.rst,sha256=
|
|
1
|
+
odoo/addons/account_banking_mandate/README.rst,sha256=nABbkLGYT4-c0xrL_ZxeoyRjYGKOllI_-Iv_ImBr5IA,3855
|
|
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=ajQH42qovt-Glr43SC1V9xTJ8VFO7eOyENSwtUmPrh4,1155
|
|
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=sqlXsg499kZKKLOVZ5olAoJfhP-URACI15DwDJAPWCE,22762
|
|
6
6
|
odoo/addons/account_banking_mandate/i18n/am.po,sha256=ANqxmslz1nbPj0vFjr8d1nkp-QlLKoacrcrV18EloME,23146
|
|
@@ -39,11 +39,11 @@ odoo/addons/account_banking_mandate/i18n/th.po,sha256=YFAEfQk9pIszxayVvKM7inFgSP
|
|
|
39
39
|
odoo/addons/account_banking_mandate/i18n/tr.po,sha256=mqxXNolM5QuId3QJbQUy7qbPlMRQadKrDqXWK2YlQN8,23128
|
|
40
40
|
odoo/addons/account_banking_mandate/i18n/vi.po,sha256=GonFe38o1nztqeqOXL-bxN48ePmTG7uWgT2ABpCIg5M,23073
|
|
41
41
|
odoo/addons/account_banking_mandate/models/__init__.py,sha256=h7Yg6QxhBEd_GVy6HfsDLkYks22cRkdZo9xvLwhuwFU,226
|
|
42
|
-
odoo/addons/account_banking_mandate/models/account_banking_mandate.py,sha256=
|
|
42
|
+
odoo/addons/account_banking_mandate/models/account_banking_mandate.py,sha256=CRoAgIxe59BWEOvEVKrCGGaODK5UDLpDRNpGniSHGU0,7707
|
|
43
43
|
odoo/addons/account_banking_mandate/models/account_move.py,sha256=K7HQGKYPz83le9E0sQI36Wusr7u8aLYwrdHZnh-mIIM,2130
|
|
44
44
|
odoo/addons/account_banking_mandate/models/account_move_line.py,sha256=7-IIKtt2-6xTerBapvGXria5lxWIpm31yIoibfQiADo,1214
|
|
45
45
|
odoo/addons/account_banking_mandate/models/account_payment_line.py,sha256=0q6nHZht--Il3U3ryjdAJD6WHloA1VYupJelD6sLf6M,2724
|
|
46
|
-
odoo/addons/account_banking_mandate/models/account_payment_method.py,sha256=
|
|
46
|
+
odoo/addons/account_banking_mandate/models/account_payment_method.py,sha256=vWBZEZ9AmAE_iY9tQD-xe1YgEWEe7zeSfLLx9pQib6g,724
|
|
47
47
|
odoo/addons/account_banking_mandate/models/res_partner.py,sha256=wiS2oEtFrpefMIKXg_n-DRHkJUeZc6o0YB2wh3nwqEs,1913
|
|
48
48
|
odoo/addons/account_banking_mandate/models/res_partner_bank.py,sha256=Q_8avXS2DAygvlHoJ70jPNftRX2OMsF2XWp-QkmdNmw,1463
|
|
49
49
|
odoo/addons/account_banking_mandate/readme/CONTRIBUTORS.rst,sha256=XkjPNqw4MQUJlmIhFzR26hSfK3R2jEBbLB32iwXwbZg,419
|
|
@@ -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=874aEfRuHaRbZhbuwPsOpuy0fdb2Dyy9BwfCjRo4c1s,14331
|
|
57
57
|
odoo/addons/account_banking_mandate/tests/__init__.py,sha256=VYtfoW8h3bB01yKyMfXK9lLWooWPaxF2lTd40c5xwUo,62
|
|
58
58
|
odoo/addons/account_banking_mandate/tests/test_invoice_mandate.py,sha256=TmGQqglsJ_csl6xKANTkfAnRuEThiGgeus-5f-88ASU,10982
|
|
59
|
-
odoo/addons/account_banking_mandate/tests/test_mandate.py,sha256=
|
|
59
|
+
odoo/addons/account_banking_mandate/tests/test_mandate.py,sha256=HsbvgTRsv2aqbjOxWFNFqCuo0GVQVjL67qAsK4Rt2tQ,10081
|
|
60
60
|
odoo/addons/account_banking_mandate/views/account_banking_mandate_view.xml,sha256=0BBJ6EoGeuueIRdaNepqkNIZMSNN0OLGsRNRnxqa-eU,10059
|
|
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=-OG2FYOgvx8quFVoJSuVkK7aHd9BMNsfdBFociW0zZk,1364
|
|
66
|
-
odoo_addon_account_banking_mandate-15.0.2.1.
|
|
67
|
-
odoo_addon_account_banking_mandate-15.0.2.1.
|
|
68
|
-
odoo_addon_account_banking_mandate-15.0.2.1.
|
|
69
|
-
odoo_addon_account_banking_mandate-15.0.2.1.
|
|
66
|
+
odoo_addon_account_banking_mandate-15.0.2.1.4.dist-info/METADATA,sha256=m-DYH06w3Bg6rwW5FXML9nGVMT0UVmd_MC8pfEDSJoo,4516
|
|
67
|
+
odoo_addon_account_banking_mandate-15.0.2.1.4.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
68
|
+
odoo_addon_account_banking_mandate-15.0.2.1.4.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
|
|
69
|
+
odoo_addon_account_banking_mandate-15.0.2.1.4.dist-info/RECORD,,
|
|
File without changes
|