odoo-addon-account-banking-mandate 15.0.2.1.3__py3-none-any.whl → 15.0.2.2.0__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.
@@ -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:1a097db7e6588cec4cd9ca6404b3b625a45458710f9f39390c583d55215d596d
10
+ !! source digest: sha256:e90f63ccab766161999670e0010dd390060d9f314bd94e5fd3c95de5d56a4aff
11
11
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
12
 
13
13
  .. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
@@ -7,7 +7,7 @@
7
7
  {
8
8
  "name": "Account Banking Mandate",
9
9
  "summary": "Banking mandates",
10
- "version": "15.0.2.1.3",
10
+ "version": "15.0.2.2.0",
11
11
  "development_status": "Production/Stable",
12
12
  "license": "AGPL-3",
13
13
  "author": "Compassion CH, "
@@ -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
- unique_mandate_reference = vals.get("unique_mandate_reference", "/")
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"
@@ -12,9 +12,7 @@ class AccountMove(models.Model):
12
12
  "account.banking.mandate",
13
13
  string="Direct Debit Mandate",
14
14
  ondelete="restrict",
15
- readonly=True,
16
15
  check_company=True,
17
- states={"draft": [("readonly", False)]},
18
16
  )
19
17
  mandate_required = fields.Boolean(
20
18
  related="payment_mode_id.payment_method_id.mandate_required", readonly=True
@@ -8,10 +8,11 @@
8
8
 
9
9
  /*
10
10
  :Author: David Goodger (goodger@python.org)
11
- :Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
11
+ :Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
12
12
  :Copyright: This stylesheet has been placed in the public domain.
13
13
 
14
14
  Default cascading style sheet for the HTML output of Docutils.
15
+ Despite the name, some widely supported CSS2 features are used.
15
16
 
16
17
  See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
17
18
  customize this style sheet.
@@ -274,7 +275,7 @@ pre.literal-block, pre.doctest-block, pre.math, pre.code {
274
275
  margin-left: 2em ;
275
276
  margin-right: 2em }
276
277
 
277
- pre.code .ln { color: grey; } /* line numbers */
278
+ pre.code .ln { color: gray; } /* line numbers */
278
279
  pre.code, code { background-color: #eeeeee }
279
280
  pre.code .comment, code .comment { color: #5C6576 }
280
281
  pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -300,7 +301,7 @@ span.option {
300
301
  span.pre {
301
302
  white-space: pre }
302
303
 
303
- span.problematic {
304
+ span.problematic, pre.problematic {
304
305
  color: red }
305
306
 
306
307
  span.section-subtitle {
@@ -366,7 +367,7 @@ ul.auto-toc {
366
367
  !! This file is generated by oca-gen-addon-readme !!
367
368
  !! changes will be overwritten. !!
368
369
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
369
- !! source digest: sha256:1a097db7e6588cec4cd9ca6404b3b625a45458710f9f39390c583d55215d596d
370
+ !! source digest: sha256:e90f63ccab766161999670e0010dd390060d9f314bd94e5fd3c95de5d56a4aff
370
371
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
371
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&amp;target_branch=15.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372
373
  <p>This module adds a generic model for banking mandates.
@@ -436,7 +437,9 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
436
437
  <div class="section" id="maintainers">
437
438
  <h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
438
439
  <p>This module is maintained by the OCA.</p>
439
- <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
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>
440
443
  <p>OCA, or the Odoo Community Association, is a nonprofit organization whose
441
444
  mission is to support the collaborative development of Odoo features and
442
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()
@@ -14,7 +14,9 @@
14
14
  name="mandate_id"
15
15
  domain="[('partner_id', '=', commercial_partner_id), ('state', '=', 'valid')]"
16
16
  attrs="{'required': [('mandate_required', '=', True),('move_type', 'in', ('out_invoice', 'out_refund'))],
17
- 'invisible': ['|', ('mandate_required', '=', False),('move_type', 'not in', ('out_invoice', 'out_refund'))]}"
17
+ 'invisible': ['|', ('mandate_required', '=', False),('move_type', 'not in', ('out_invoice', 'out_refund'))],
18
+ 'readonly': [('payment_state', '=', 'paid')]
19
+ }"
18
20
  />
19
21
  <field name="mandate_required" invisible="1" />
20
22
  </field>
@@ -1,20 +1,19 @@
1
1
  Metadata-Version: 2.1
2
- Name: odoo-addon-account-banking-mandate
3
- Version: 15.0.2.1.3
2
+ Name: odoo-addon-account_banking_mandate
3
+ Version: 15.0.2.2.0
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
13
12
  Classifier: License :: OSI Approved :: GNU Affero General Public License v3
14
13
  Classifier: Development Status :: 5 - Production/Stable
15
14
  Requires-Python: >=3.8
16
- Requires-Dist: odoo-addon-account-payment-order <15.1dev,>=15.0dev
17
- Requires-Dist: odoo <15.1dev,>=15.0a
15
+ Requires-Dist: odoo-addon-account-payment-order<15.1dev,>=15.0dev
16
+ Requires-Dist: odoo<15.1dev,>=15.0a
18
17
 
19
18
  =======================
20
19
  Account Banking Mandate
@@ -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:1a097db7e6588cec4cd9ca6404b3b625a45458710f9f39390c583d55215d596d
27
+ !! source digest: sha256:e90f63ccab766161999670e0010dd390060d9f314bd94e5fd3c95de5d56a4aff
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=0Og9fRrx8BEBc0IuWO34HDhbpGnRL2HExVDKhP6zxrk,3855
1
+ odoo/addons/account_banking_mandate/README.rst,sha256=iAJimOo2YR-Z3SLIpVg9dNHyB5bfvTPIhpvSHzGvlVU,3855
2
2
  odoo/addons/account_banking_mandate/__init__.py,sha256=X9EJGOE2GtZbS0G82PtSXmWSZ_R8jEM0rlJTDliQjp4,21
3
- odoo/addons/account_banking_mandate/__manifest__.py,sha256=fHd7viKAF_ubFhsYpeQBeIXTmxbdlO-4aI-zInan1J8,1155
3
+ odoo/addons/account_banking_mandate/__manifest__.py,sha256=G8BVQx8cWlAKEUTEaGfHcpHa8hf7vOFjaJUXQPSx-WQ,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,8 +39,8 @@ 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=mx8RCm7387ytI3442Gl-cb9evjRr2njBrR50eL5U2qM,7767
43
- odoo/addons/account_banking_mandate/models/account_move.py,sha256=K7HQGKYPz83le9E0sQI36Wusr7u8aLYwrdHZnh-mIIM,2130
42
+ odoo/addons/account_banking_mandate/models/account_banking_mandate.py,sha256=CRoAgIxe59BWEOvEVKrCGGaODK5UDLpDRNpGniSHGU0,7707
43
+ odoo/addons/account_banking_mandate/models/account_move.py,sha256=hvSpahsRFgyoPyovKdUfhvfjR8MIH_EmSMhTyKt4llo,2058
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
46
  odoo/addons/account_banking_mandate/models/account_payment_method.py,sha256=vWBZEZ9AmAE_iY9tQD-xe1YgEWEe7zeSfLLx9pQib6g,724
@@ -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=D0gjow57o9kPXoKO_FdDFge7tEPgkm-XOwMT_EJje1E,14248
56
+ odoo/addons/account_banking_mandate/static/description/index.html,sha256=CvbE_2BRd9fl2t-d3Hlo2LIQKJ3Hgr5_tU-mqDzkIsQ,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=u3zJEOYT3-7JZ7AlY8OU9Sqv5zY_6gWTt64Hm7SsTO0,9067
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
- odoo/addons/account_banking_mandate/views/account_move_view.xml,sha256=9MLc5hLMk1BLxBWoduB_0PeWPErkza6CkjThqqlSGeU,1103
61
+ odoo/addons/account_banking_mandate/views/account_move_view.xml,sha256=0LOLFOMAWbcwSmucChvu9yEouu4OREM-y2Z1glxsGbU,1190
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.3.dist-info/METADATA,sha256=ZdVx_82prVw3NEG1XGgpXs_t_IyNsr3NZ8RIuYr8-Ig,4536
67
- odoo_addon_account_banking_mandate-15.0.2.1.3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
68
- odoo_addon_account_banking_mandate-15.0.2.1.3.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
69
- odoo_addon_account_banking_mandate-15.0.2.1.3.dist-info/RECORD,,
66
+ odoo_addon_account_banking_mandate-15.0.2.2.0.dist-info/METADATA,sha256=S78D8CKL_JL8xfCEYJNYdTCnFvn-UU-Gzqe6NdzF-Po,4514
67
+ odoo_addon_account_banking_mandate-15.0.2.2.0.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
68
+ odoo_addon_account_banking_mandate-15.0.2.2.0.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
69
+ odoo_addon_account_banking_mandate-15.0.2.2.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: bdist_wheel (0.44.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5