odoo-addon-account-payment-order 17.0.1.6.1__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.
@@ -7,7 +7,7 @@ Account Payment Order
7
7
  !! This file is generated by oca-gen-addon-readme !!
8
8
  !! changes will be overwritten. !!
9
9
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
- !! source digest: sha256:04a6c00f26b7c500ad0a135829a5fc5a02a38da19178d944b39ffc4ba559f37a
10
+ !! source digest: sha256:3c994e15fbbad1e5f0a5fcc8f8265f936ecefa46b0731b5b345329565d482be7
11
11
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
12
 
13
13
  .. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
@@ -9,7 +9,7 @@
9
9
 
10
10
  {
11
11
  "name": "Account Payment Order",
12
- "version": "17.0.1.6.1",
12
+ "version": "17.0.1.7.0",
13
13
  "license": "AGPL-3",
14
14
  "author": "ACSONE SA/NV, "
15
15
  "Therp BV, "
@@ -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:04a6c00f26b7c500ad0a135829a5fc5a02a38da19178d944b39ffc4ba559f37a
370
+ !! source digest: sha256:3c994e15fbbad1e5f0a5fcc8f8265f936ecefa46b0731b5b345329565d482be7
371
371
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372
372
  <p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Mature" src="https://img.shields.io/badge/maturity-Mature-brightgreen.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_payment_order"><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_payment_order"><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=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 support for payment orders and debit orders.</p>
@@ -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
- self.assertTrue(bank)
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.env.ref("product.product_product_4")
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.env.ref("product.product_product_4").id,
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.env.ref("product.product_product_4").id,
113
+ "product_id": self.product.id,
108
114
  "quantity": 1.0,
109
115
  "price_unit": 90.0,
110
116
  "name": "refund of 90.0",
@@ -50,13 +50,21 @@
50
50
  <field name="payment_mode_id" position="after">
51
51
  <field name="payment_order_ok" invisible="1" />
52
52
  </field>
53
+ <!-- First we place the rest of the elements for the new reference distribution -->
53
54
  <field name="payment_reference" position="before">
54
- <field
55
- name="reference_type"
56
- readonly="state != 'draft'"
57
- invisible="move_type not in ('out_invoice', 'out_refund')"
58
- required="move_type in ('out_invoice', 'out_refund')"
59
- />
55
+ <label for="payment_reference" />
56
+ <div name="payment_reference_div" class="d-flex">
57
+ <field
58
+ name="reference_type"
59
+ readonly="state != 'draft'"
60
+ invisible="move_type not in ('out_invoice', 'out_refund')"
61
+ required="move_type in ('out_invoice', 'out_refund')"
62
+ />
63
+ </div>
64
+ </field>
65
+ <!-- Then we move the std field, as this can only be on a first level -->
66
+ <field name="reference_type" position="after">
67
+ <field name="payment_reference" position="move" />
60
68
  </field>
61
69
  </field>
62
70
  </record>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-account_payment_order
3
- Version: 17.0.1.6.1
3
+ Version: 17.0.1.7.0.1
4
4
  Requires-Python: >=3.10
5
5
  Requires-Dist: odoo-addon-account_payment_partner>=17.0dev,<17.1dev
6
6
  Requires-Dist: odoo>=17.0a,<17.1dev
@@ -24,7 +24,7 @@ Account Payment Order
24
24
  !! This file is generated by oca-gen-addon-readme !!
25
25
  !! changes will be overwritten. !!
26
26
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
27
- !! source digest: sha256:04a6c00f26b7c500ad0a135829a5fc5a02a38da19178d944b39ffc4ba559f37a
27
+ !! source digest: sha256:3c994e15fbbad1e5f0a5fcc8f8265f936ecefa46b0731b5b345329565d482be7
28
28
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
29
29
 
30
30
  .. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
@@ -1,6 +1,6 @@
1
- odoo/addons/account_payment_order/README.rst,sha256=c4-GM1sbRFm5O6RhbQ-VDSY9q4SqKZuqy1LdbTVvxUA,4645
1
+ odoo/addons/account_payment_order/README.rst,sha256=1gENGTuKZKHSv4NZRxcunSoAWmqNksvu42PVxIzS-Jw,4645
2
2
  odoo/addons/account_payment_order/__init__.py,sha256=HVXFv0Gbl3gl3fcRBZhi3rlZgriQVo_8LiEgUjtkcFs,96
3
- odoo/addons/account_payment_order/__manifest__.py,sha256=l13864fouo-b-vnSghZ46pRJ4AwhILyLMopVcYHlcW8,1606
3
+ odoo/addons/account_payment_order/__manifest__.py,sha256=XGenWRlV-7Ol13O2qln4yrFNL8lnZPee7ur6biOYJ_M,1606
4
4
  odoo/addons/account_payment_order/hooks.py,sha256=XQDHFvlq4pQCJoEM6sY01Vh6kOgG6JFP3DPNPliyntA,667
5
5
  odoo/addons/account_payment_order/data/payment_seq.xml,sha256=EKeoSUKlM3TH7vljq7tj6XvPJMMQu8IMtwKC_LM4C4A,864
6
6
  odoo/addons/account_payment_order/demo/payment_demo.xml,sha256=-qNu7yLwK9I80Ol6YfwoccqpSsCHx2kSumcp2WlgsxU,1412
@@ -66,14 +66,14 @@ odoo/addons/account_payment_order/report/print_account_payment_order.xml,sha256=
66
66
  odoo/addons/account_payment_order/security/ir.model.access.csv,sha256=DquU4QYd706_JxewPT0eAy4pc37FeGcoynOqUmu45kc,1211
67
67
  odoo/addons/account_payment_order/security/payment_security.xml,sha256=kfkYDi4hkrQCm8lRUUIrqQoibzN8h67H2qV_mj390eQ,1248
68
68
  odoo/addons/account_payment_order/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
69
- odoo/addons/account_payment_order/static/description/index.html,sha256=hxE8U7CWPpWyq1e6mgeO57cL6662l4qajaM6wPETk2s,16031
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=rgQ5o84b-jB9fDwVKN23aVIfDYUlXUrl9DGFRvQtoOI,622
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=SN_6o_xQDW2gWp1_6-iBSvzYydXi-XeHd5QMTw55WLk,8059
75
- odoo/addons/account_payment_order/tests/test_payment_order_outbound.py,sha256=s0w9o83kX3IKEUjur-yEuxuL4PTqHDl13hzuC1XRBnM,19128
76
- odoo/addons/account_payment_order/views/account_invoice_view.xml,sha256=JCD_j1AM25g9o12AW9LfmZOrNUrWUJNWY-Nrulj1018,4190
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
+ 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
79
79
  odoo/addons/account_payment_order/views/account_payment_method.xml,sha256=zBGrZYNAFxgLQOpSE7alPUFJ8vESD4JWd0B3qmE4_vY,717
@@ -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.6.1.dist-info/METADATA,sha256=iDwPxaGcE8qaKtL8kIN5db2zqIumgkgEm-VzTRUZR40,5308
92
- odoo_addon_account_payment_order-17.0.1.6.1.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
93
- odoo_addon_account_payment_order-17.0.1.6.1.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
94
- odoo_addon_account_payment_order-17.0.1.6.1.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,,