odoo-addon-account-payment-order 17.0.1.0.0.9__py3-none-any.whl → 17.0.1.1.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/static/description/index.html +1 -2
- odoo/addons/account_payment_order/tests/test_payment_order_outbound.py +0 -1
- odoo/addons/account_payment_order/wizard/account_payment_line_create.py +19 -22
- odoo/addons/account_payment_order/wizard/account_payment_line_create_view.xml +2 -0
- {odoo_addon_account_payment_order-17.0.1.0.0.9.dist-info → odoo_addon_account_payment_order-17.0.1.1.0.dist-info}/METADATA +2 -2
- {odoo_addon_account_payment_order-17.0.1.0.0.9.dist-info → odoo_addon_account_payment_order-17.0.1.1.0.dist-info}/RECORD +11 -11
- {odoo_addon_account_payment_order-17.0.1.0.0.9.dist-info → odoo_addon_account_payment_order-17.0.1.1.0.dist-info}/WHEEL +1 -1
- {odoo_addon_account_payment_order-17.0.1.0.0.9.dist-info → odoo_addon_account_payment_order-17.0.1.1.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:ef69b414923510a1c477b1118ce824a04e73d903abaaf2335a0d249b099750d2
|
|
11
11
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
12
12
|
|
|
13
13
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
|
|
@@ -692,6 +692,11 @@ msgstr ""
|
|
|
692
692
|
msgid "Move Date"
|
|
693
693
|
msgstr ""
|
|
694
694
|
|
|
695
|
+
#. module: account_payment_order
|
|
696
|
+
#: model:ir.model.fields,field_description:account_payment_order.field_account_payment_line_create__move_line_domain
|
|
697
|
+
msgid "Move Line Domain"
|
|
698
|
+
msgstr ""
|
|
699
|
+
|
|
695
700
|
#. module: account_payment_order
|
|
696
701
|
#: model:ir.model.fields,field_description:account_payment_order.field_account_payment_line_create__move_line_ids
|
|
697
702
|
msgid "Move Lines"
|
|
@@ -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>
|
|
@@ -367,7 +366,7 @@ ul.auto-toc {
|
|
|
367
366
|
!! This file is generated by oca-gen-addon-readme !!
|
|
368
367
|
!! changes will be overwritten. !!
|
|
369
368
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
370
|
-
!! source digest: sha256:
|
|
369
|
+
!! source digest: sha256:ef69b414923510a1c477b1118ce824a04e73d903abaaf2335a0d249b099750d2
|
|
371
370
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
|
372
371
|
<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
372
|
<p>This module adds support for payment orders and debit orders.</p>
|
|
@@ -41,6 +41,7 @@ class AccountPaymentLineCreate(models.TransientModel):
|
|
|
41
41
|
move_line_ids = fields.Many2many(
|
|
42
42
|
comodel_name="account.move.line", string="Move Lines"
|
|
43
43
|
)
|
|
44
|
+
move_line_domain = fields.Binary(compute="_compute_move_line_domain")
|
|
44
45
|
|
|
45
46
|
@api.model
|
|
46
47
|
def default_get(self, field_list):
|
|
@@ -66,7 +67,18 @@ class AccountPaymentLineCreate(models.TransientModel):
|
|
|
66
67
|
)
|
|
67
68
|
return res
|
|
68
69
|
|
|
69
|
-
|
|
70
|
+
@api.depends(
|
|
71
|
+
"date_type",
|
|
72
|
+
"move_date",
|
|
73
|
+
"due_date",
|
|
74
|
+
"journal_ids",
|
|
75
|
+
"invoice",
|
|
76
|
+
"target_move",
|
|
77
|
+
"allow_blocked",
|
|
78
|
+
"payment_mode",
|
|
79
|
+
"partner_ids",
|
|
80
|
+
)
|
|
81
|
+
def _compute_move_line_domain(self):
|
|
70
82
|
self.ensure_one()
|
|
71
83
|
domain = [
|
|
72
84
|
("reconciled", "=", False),
|
|
@@ -78,16 +90,18 @@ class AccountPaymentLineCreate(models.TransientModel):
|
|
|
78
90
|
domain += [("partner_id", "in", self.partner_ids.ids)]
|
|
79
91
|
if self.target_move == "posted":
|
|
80
92
|
domain += [("move_id.state", "=", "posted")]
|
|
93
|
+
else:
|
|
94
|
+
domain += [("move_id.state", "in", ("draft", "posted"))]
|
|
81
95
|
if not self.allow_blocked:
|
|
82
96
|
domain += [("blocked", "!=", True)]
|
|
83
97
|
if self.date_type == "due":
|
|
84
98
|
domain += [
|
|
85
99
|
"|",
|
|
86
|
-
("date_maturity", "<=", self.due_date),
|
|
100
|
+
("date_maturity", "<=", fields.Date.to_string(self.due_date)),
|
|
87
101
|
("date_maturity", "=", False),
|
|
88
102
|
]
|
|
89
103
|
elif self.date_type == "move":
|
|
90
|
-
domain.append(("date", "<=", self.move_date))
|
|
104
|
+
domain.append(("date", "<=", fields.Date.to_string(self.move_date)))
|
|
91
105
|
if self.invoice:
|
|
92
106
|
domain.append(
|
|
93
107
|
(
|
|
@@ -148,11 +162,10 @@ class AccountPaymentLineCreate(models.TransientModel):
|
|
|
148
162
|
if paylines:
|
|
149
163
|
move_lines_ids = [payline.move_line_id.id for payline in paylines]
|
|
150
164
|
domain += [("id", "not in", move_lines_ids)]
|
|
151
|
-
|
|
165
|
+
self.move_line_domain = domain
|
|
152
166
|
|
|
153
167
|
def populate(self):
|
|
154
|
-
|
|
155
|
-
lines = self.env["account.move.line"].search(domain)
|
|
168
|
+
lines = self.env["account.move.line"].search(self.move_line_domain)
|
|
156
169
|
self.move_line_ids = lines
|
|
157
170
|
action = {
|
|
158
171
|
"name": _("Select Move Lines to Create Transactions"),
|
|
@@ -165,22 +178,6 @@ class AccountPaymentLineCreate(models.TransientModel):
|
|
|
165
178
|
}
|
|
166
179
|
return action
|
|
167
180
|
|
|
168
|
-
@api.onchange(
|
|
169
|
-
"date_type",
|
|
170
|
-
"move_date",
|
|
171
|
-
"due_date",
|
|
172
|
-
"journal_ids",
|
|
173
|
-
"invoice",
|
|
174
|
-
"target_move",
|
|
175
|
-
"allow_blocked",
|
|
176
|
-
"payment_mode",
|
|
177
|
-
"partner_ids",
|
|
178
|
-
)
|
|
179
|
-
def move_line_filters_change(self):
|
|
180
|
-
domain = self._prepare_move_line_domain()
|
|
181
|
-
res = {"domain": {"move_line_ids": domain}}
|
|
182
|
-
return res
|
|
183
|
-
|
|
184
181
|
def create_payment_lines(self):
|
|
185
182
|
if self.move_line_ids:
|
|
186
183
|
self.move_line_ids.create_payment_line_from_move_line(self.order_id)
|
|
@@ -53,11 +53,13 @@
|
|
|
53
53
|
name="move_lines"
|
|
54
54
|
string="Selected Move Lines to Create Transactions"
|
|
55
55
|
>
|
|
56
|
+
<field name="move_line_domain" invisible="1" />
|
|
56
57
|
<field
|
|
57
58
|
name="move_line_ids"
|
|
58
59
|
nolabel="1"
|
|
59
60
|
force_save="1"
|
|
60
61
|
context="{'tree_view_ref': 'account_payment_order.view_move_line_tree', 'form_view_ref':'account_payment_order.view_move_line_form_no_edit'}"
|
|
62
|
+
domain="move_line_domain"
|
|
61
63
|
colspan="2"
|
|
62
64
|
>
|
|
63
65
|
<tree>
|
|
@@ -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.1.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:ef69b414923510a1c477b1118ce824a04e73d903abaaf2335a0d249b099750d2
|
|
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=FzFcMTHZMl7rzeU7TSOwisYJDA88Eht5JU_NcepPlv4,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=GKSiJrJpE4jzHRnfcMl8hz08-YcVv9cxoT1kaQFzwKg,1555
|
|
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=93KkIOc2iBXO9YOi2VDktdewCkFbb1_Y8fGQs5SY5gA,48361
|
|
8
8
|
odoo/addons/account_payment_order/i18n/am.po,sha256=noeO83c4WUpBIdPyUmZNIl38fsCYNkkC5PQyfL5WRIQ,48562
|
|
9
9
|
odoo/addons/account_payment_order/i18n/ar.po,sha256=nPTnmgf2KxA3AqVF7WAzSzjurQBZuTjjaInhlCOdcSc,48578
|
|
10
10
|
odoo/addons/account_payment_order/i18n/ca.po,sha256=sK0rEogCH5vWbejsdIkmYYiOK_1uufvcHA2F4ViWxvI,62612
|
|
@@ -66,13 +66,13 @@ 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=tQ0NvzVqjQAEu5YWGZnJhAEZK_0ctB07gV2xBCP82ws,1092
|
|
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=8S77xxB5epUyN-EYSUd_CGoas3O0Ce1Oc38Y7LPyaSI,15948
|
|
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=4d1l8o43-Gy_D7d24Na-E7T9o5ALAgtn8xD7JWJJ2UQ,403
|
|
73
73
|
odoo/addons/account_payment_order/tests/test_payment_mode.py,sha256=ek_ypq8ignQPMzFoDT3JR53tZ00Utfc5TY5W3Htx01A,3300
|
|
74
74
|
odoo/addons/account_payment_order/tests/test_payment_order_inbound.py,sha256=hk-nHeuIPYnhWnxruEHW8izDVG8DKgTdaOCtdzkWdTY,5431
|
|
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=-AvPlxSOaQ5j6wDjIbnvBYWU_V2H9Y-J98eUitJdt4Q,18019
|
|
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
78
|
odoo/addons/account_payment_order/views/account_payment_line.xml,sha256=NGEbT3-PLlYR4oVUBhQOsXJQYIdtpsN7EKZQy7wOADs,4937
|
|
@@ -84,9 +84,9 @@ odoo/addons/account_payment_order/views/ir_attachment.xml,sha256=OpVfNkMmkJlkQkI
|
|
|
84
84
|
odoo/addons/account_payment_order/wizard/__init__.py,sha256=y-49kiI9g3gOpvHWVxnwCJv5_N8-vhDXU_xlxwhbJ7w,91
|
|
85
85
|
odoo/addons/account_payment_order/wizard/account_invoice_payment_line_multi.py,sha256=nguRNwyEy5m9UTzm5IPkQCbIJQhMtktzmvZRwtL5B_Y,650
|
|
86
86
|
odoo/addons/account_payment_order/wizard/account_invoice_payment_line_multi_view.xml,sha256=0lvRUwQpzpuDsrylv3yRwcla6A8euyP6rNLjl8IFUbI,1339
|
|
87
|
-
odoo/addons/account_payment_order/wizard/account_payment_line_create.py,sha256=
|
|
88
|
-
odoo/addons/account_payment_order/wizard/account_payment_line_create_view.xml,sha256=
|
|
89
|
-
odoo_addon_account_payment_order-17.0.1.
|
|
90
|
-
odoo_addon_account_payment_order-17.0.1.
|
|
91
|
-
odoo_addon_account_payment_order-17.0.1.
|
|
92
|
-
odoo_addon_account_payment_order-17.0.1.
|
|
87
|
+
odoo/addons/account_payment_order/wizard/account_payment_line_create.py,sha256=FJ24wA5ZPEzDWo_BkUjBIAk-FZwEQ3LtcUQPkFwfSw0,6994
|
|
88
|
+
odoo/addons/account_payment_order/wizard/account_payment_line_create_view.xml,sha256=Ln0tzR3xytjZdSuzWSc6X4MQxUG2vPxqfiPSo5JCguc,4532
|
|
89
|
+
odoo_addon_account_payment_order-17.0.1.1.0.dist-info/METADATA,sha256=kQfDMB3PVRhmjbCFvlZ8Cfz6FKUe0ckwv9Z-ArAI81E,5343
|
|
90
|
+
odoo_addon_account_payment_order-17.0.1.1.0.dist-info/WHEEL,sha256=8Rd4enx1PCuyDWP4SABqO5Fv8rpaknqp3VzjoFFLa6c,83
|
|
91
|
+
odoo_addon_account_payment_order-17.0.1.1.0.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
|
92
|
+
odoo_addon_account_payment_order-17.0.1.1.0.dist-info/RECORD,,
|