odoo-addon-account-payment-order 17.0.1.4.4__py3-none-any.whl → 17.0.1.5.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.
- odoo/addons/account_payment_order/README.rst +1 -1
- odoo/addons/account_payment_order/__manifest__.py +1 -1
- odoo/addons/account_payment_order/i18n/account_payment_order.pot +5 -0
- odoo/addons/account_payment_order/models/account_payment_line.py +5 -0
- odoo/addons/account_payment_order/static/description/index.html +1 -1
- odoo/addons/account_payment_order/tests/test_payment_order_outbound.py +22 -0
- odoo/addons/account_payment_order/views/account_payment_line.xml +9 -1
- {odoo_addon_account_payment_order-17.0.1.4.4.dist-info → odoo_addon_account_payment_order-17.0.1.5.0.dist-info}/METADATA +2 -2
- {odoo_addon_account_payment_order-17.0.1.4.4.dist-info → odoo_addon_account_payment_order-17.0.1.5.0.dist-info}/RECORD +11 -11
- {odoo_addon_account_payment_order-17.0.1.4.4.dist-info → odoo_addon_account_payment_order-17.0.1.5.0.dist-info}/WHEEL +0 -0
- {odoo_addon_account_payment_order-17.0.1.4.4.dist-info → odoo_addon_account_payment_order-17.0.1.5.0.dist-info}/top_level.txt +0 -0
|
@@ -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:
|
|
10
|
+
!! source digest: sha256:f2c7e805e2cc655f443fe0b29c8315f947f996ced26dfd005c441291b5e4a9c0
|
|
11
11
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
12
12
|
|
|
13
13
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
|
|
@@ -1229,6 +1229,11 @@ msgstr ""
|
|
|
1229
1229
|
msgid "Value Date"
|
|
1230
1230
|
msgstr ""
|
|
1231
1231
|
|
|
1232
|
+
#. module: account_payment_order
|
|
1233
|
+
#: model_terms:ir.ui.view,arch_db:account_payment_order.account_payment_line_tree
|
|
1234
|
+
msgid "View"
|
|
1235
|
+
msgstr ""
|
|
1236
|
+
|
|
1232
1237
|
#. module: account_payment_order
|
|
1233
1238
|
#: model:ir.model.fields,field_description:account_payment_order.field_account_payment_order__website_message_ids
|
|
1234
1239
|
msgid "Website Messages"
|
|
@@ -237,3 +237,8 @@ class AccountPaymentLine(models.Model):
|
|
|
237
237
|
"destination_account_id"
|
|
238
238
|
] = self.partner_id.property_account_payable_id.id
|
|
239
239
|
return vals
|
|
240
|
+
|
|
241
|
+
def action_open_business_doc(self):
|
|
242
|
+
if not self.move_line_id:
|
|
243
|
+
return False
|
|
244
|
+
return self.move_line_id.action_open_business_doc()
|
|
@@ -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:f2c7e805e2cc655f443fe0b29c8315f947f996ced26dfd005c441291b5e4a9c0
|
|
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&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>
|
|
@@ -463,3 +463,25 @@ class TestPaymentOrderOutbound(TestPaymentOrderOutboundBase):
|
|
|
463
463
|
self.assertEqual(len(payment_order.payment_line_ids), 1)
|
|
464
464
|
|
|
465
465
|
self.assertEqual("F1242 R1234", payment_order.payment_line_ids.communication)
|
|
466
|
+
|
|
467
|
+
def test_action_open_business_document(self):
|
|
468
|
+
# Open invoice
|
|
469
|
+
self.invoice.action_post()
|
|
470
|
+
# Add to payment order using the wizard
|
|
471
|
+
self.env["account.invoice.payment.line.multi"].with_context(
|
|
472
|
+
active_model="account.move", active_ids=self.invoice.ids
|
|
473
|
+
).create({}).run()
|
|
474
|
+
order = self.env["account.payment.order"].search(self.domain)
|
|
475
|
+
# Create payment line without move line
|
|
476
|
+
vals = {
|
|
477
|
+
"order_id": order.id,
|
|
478
|
+
"partner_id": self.partner.id,
|
|
479
|
+
"currency_id": order.payment_mode_id.company_id.currency_id.id,
|
|
480
|
+
"amount_currency": 200.38,
|
|
481
|
+
}
|
|
482
|
+
self.env["account.payment.line"].create(vals)
|
|
483
|
+
invoice_action = order.payment_line_ids[0].action_open_business_doc()
|
|
484
|
+
self.assertEqual(invoice_action["res_model"], "account.move")
|
|
485
|
+
self.assertEqual(invoice_action["res_id"], self.invoice.id)
|
|
486
|
+
manual_line_action = order.payment_line_ids[1].action_open_business_doc()
|
|
487
|
+
self.assertFalse(manual_line_action)
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
name="move_line_id"
|
|
19
19
|
domain="[('reconciled','=', False), ('account_id.reconcile', '=', True)] "
|
|
20
20
|
/>
|
|
21
|
-
<!-- we removed the filter on amount_to_pay, because we want to be able to
|
|
21
|
+
<!-- we removed the filter on amount_to_pay, because we want to be able to
|
|
22
|
+
select refunds -->
|
|
22
23
|
<field name="date" readonly="1" force_save="1" />
|
|
23
24
|
<field name="ml_maturity_date" readonly="1" />
|
|
24
25
|
<field name="amount_currency" />
|
|
@@ -93,6 +94,13 @@
|
|
|
93
94
|
invisible="1"
|
|
94
95
|
/>
|
|
95
96
|
<field name="payment_type" invisible="1" />
|
|
97
|
+
<button
|
|
98
|
+
name="action_open_business_doc"
|
|
99
|
+
type="object"
|
|
100
|
+
string="View"
|
|
101
|
+
class="btn btn-secondary"
|
|
102
|
+
invisible="not move_line_id"
|
|
103
|
+
/>
|
|
96
104
|
</tree>
|
|
97
105
|
</field>
|
|
98
106
|
</record>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: odoo-addon-account_payment_order
|
|
3
|
-
Version: 17.0.1.
|
|
3
|
+
Version: 17.0.1.5.0
|
|
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:
|
|
27
|
+
!! source digest: sha256:f2c7e805e2cc655f443fe0b29c8315f947f996ced26dfd005c441291b5e4a9c0
|
|
28
28
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
29
29
|
|
|
30
30
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
odoo/addons/account_payment_order/README.rst,sha256=
|
|
1
|
+
odoo/addons/account_payment_order/README.rst,sha256=okamCP3LXRkKIluCz0bXZTh1-kj31qNIsWK05Uz7MIE,4680
|
|
2
2
|
odoo/addons/account_payment_order/__init__.py,sha256=HVXFv0Gbl3gl3fcRBZhi3rlZgriQVo_8LiEgUjtkcFs,96
|
|
3
|
-
odoo/addons/account_payment_order/__manifest__.py,sha256=
|
|
3
|
+
odoo/addons/account_payment_order/__manifest__.py,sha256=L9bPUwvqHigY9-ezVxYO6n0OJUi1uUaNWX3QP4meYfA,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
|
|
7
|
-
odoo/addons/account_payment_order/i18n/account_payment_order.pot,sha256=
|
|
7
|
+
odoo/addons/account_payment_order/i18n/account_payment_order.pot,sha256=FYwH0LrlyeD_6dVgzmyQL5r9zf1k77RGcxPD-pVXCEY,50012
|
|
8
8
|
odoo/addons/account_payment_order/i18n/am.po,sha256=7Nt0ZReGn2HYV7FU02TWdbZjl55IO7jojmik7kc1KDA,50260
|
|
9
9
|
odoo/addons/account_payment_order/i18n/ar.po,sha256=ghsRfpIEEExYgvbvVRIbUZuKj5vz1gFA01npB6aK9s8,50276
|
|
10
10
|
odoo/addons/account_payment_order/i18n/ca.po,sha256=8JjMx6CAqYw3cTRCK99zXRk4jW1g41tFaiUdvCEqOvQ,64354
|
|
@@ -49,7 +49,7 @@ odoo/addons/account_payment_order/models/account_journal.py,sha256=J5PwsFBj61Jn7
|
|
|
49
49
|
odoo/addons/account_payment_order/models/account_move.py,sha256=4ed_De8rw0nkO2P5TVkh8REQQbBCT15VMbbomwVfzPI,9991
|
|
50
50
|
odoo/addons/account_payment_order/models/account_move_line.py,sha256=SLPNyIOWmE40FzkKsMIkhRVXc_UbSwJ9PICKj4AlDco,3783
|
|
51
51
|
odoo/addons/account_payment_order/models/account_payment.py,sha256=b4BV4NQSLNZkfPABvs8SKYiQ0VomuJLT9Mpyps4tD4w,3486
|
|
52
|
-
odoo/addons/account_payment_order/models/account_payment_line.py,sha256=
|
|
52
|
+
odoo/addons/account_payment_order/models/account_payment_line.py,sha256=j1NpE-y9xfBoCF6pnmU1p_xnvCARUMeh_aGJxjcNZMI,9603
|
|
53
53
|
odoo/addons/account_payment_order/models/account_payment_method.py,sha256=z1_LzvZY17SPRTwT2XwHFyUfy2YN3m00WA62gznPzcE,431
|
|
54
54
|
odoo/addons/account_payment_order/models/account_payment_mode.py,sha256=uONi4ezJRHHbTeD1cDiUDWorvoGnWnKeqTVGHsohJRM,3589
|
|
55
55
|
odoo/addons/account_payment_order/models/account_payment_order.py,sha256=B-g8WjE5uI5IKS5-HYNEFvbbjjQPRWyyUiDOWm2F5ow,16809
|
|
@@ -66,16 +66,16 @@ 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=
|
|
69
|
+
odoo/addons/account_payment_order/static/description/index.html,sha256=5I5gCMzSJu5d9lcUN9z4Vvs2swZacPoXHBfY52wlLPk,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
72
|
odoo/addons/account_payment_order/tests/test_bank.py,sha256=rgQ5o84b-jB9fDwVKN23aVIfDYUlXUrl9DGFRvQtoOI,622
|
|
73
73
|
odoo/addons/account_payment_order/tests/test_payment_mode.py,sha256=FGeaeoQe8tHRVjnp4xHBIWBF6a-UWrV6_pX9-HTETw4,3298
|
|
74
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=
|
|
75
|
+
odoo/addons/account_payment_order/tests/test_payment_order_outbound.py,sha256=s0w9o83kX3IKEUjur-yEuxuL4PTqHDl13hzuC1XRBnM,19128
|
|
76
76
|
odoo/addons/account_payment_order/views/account_invoice_view.xml,sha256=JCD_j1AM25g9o12AW9LfmZOrNUrWUJNWY-Nrulj1018,4190
|
|
77
77
|
odoo/addons/account_payment_order/views/account_move_line.xml,sha256=MZDzWzwWVO9HkMT0dmGJHJuLNmYo2gtgga3ls6iBWyk,2373
|
|
78
|
-
odoo/addons/account_payment_order/views/account_payment_line.xml,sha256
|
|
78
|
+
odoo/addons/account_payment_order/views/account_payment_line.xml,sha256=-BKtrc8yF_Ggabk07mLE3CzHrjcrCI4-f7gYK6padg4,5247
|
|
79
79
|
odoo/addons/account_payment_order/views/account_payment_method.xml,sha256=zBGrZYNAFxgLQOpSE7alPUFJ8vESD4JWd0B3qmE4_vY,717
|
|
80
80
|
odoo/addons/account_payment_order/views/account_payment_mode.xml,sha256=Q3oms35Eqyw3fyxPK7EHvsuP50KYJuvzPnso3Ja5C-w,2876
|
|
81
81
|
odoo/addons/account_payment_order/views/account_payment_order.xml,sha256=K_McyVSrw8zFyjIM9xHAHu8IEWMaPrGEyVX11RXP1yo,12824
|
|
@@ -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.
|
|
92
|
-
odoo_addon_account_payment_order-17.0.1.
|
|
93
|
-
odoo_addon_account_payment_order-17.0.1.
|
|
94
|
-
odoo_addon_account_payment_order-17.0.1.
|
|
91
|
+
odoo_addon_account_payment_order-17.0.1.5.0.dist-info/METADATA,sha256=PJdma1SVOVc725RjQdwVWkWw-pDfiXLqEc_Y0NES73o,5343
|
|
92
|
+
odoo_addon_account_payment_order-17.0.1.5.0.dist-info/WHEEL,sha256=8Rd4enx1PCuyDWP4SABqO5Fv8rpaknqp3VzjoFFLa6c,83
|
|
93
|
+
odoo_addon_account_payment_order-17.0.1.5.0.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
|
94
|
+
odoo_addon_account_payment_order-17.0.1.5.0.dist-info/RECORD,,
|
|
File without changes
|