odoo-addon-account-payment-order 17.0.1.0.1__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.
@@ -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:e7a6e362351296146e78e00e7ea787d64e6edc1d4df2ee38f11254ffcfa3314b
10
+ !! source digest: sha256:ef69b414923510a1c477b1118ce824a04e73d903abaaf2335a0d249b099750d2
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.0.1",
12
+ "version": "17.0.1.1.0",
13
13
  "license": "AGPL-3",
14
14
  "author": "ACSONE SA/NV, "
15
15
  "Therp BV, "
@@ -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"
@@ -366,7 +366,7 @@ ul.auto-toc {
366
366
  !! This file is generated by oca-gen-addon-readme !!
367
367
  !! changes will be overwritten. !!
368
368
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
369
- !! source digest: sha256:e7a6e362351296146e78e00e7ea787d64e6edc1d4df2ee38f11254ffcfa3314b
369
+ !! source digest: sha256:ef69b414923510a1c477b1118ce824a04e73d903abaaf2335a0d249b099750d2
370
370
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
371
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&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372
372
  <p>This module adds support for payment orders and debit orders.</p>
@@ -190,7 +190,6 @@ class TestPaymentOrderOutbound(TestPaymentOrderOutboundBase):
190
190
  )
191
191
  )
192
192
  line_create.payment_mode = "any"
193
- line_create.move_line_filters_change()
194
193
  line_create.populate()
195
194
  line_create.create_payment_lines()
196
195
  line_created_due = (
@@ -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
- def _prepare_move_line_domain(self):
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),
@@ -85,11 +97,11 @@ class AccountPaymentLineCreate(models.TransientModel):
85
97
  if self.date_type == "due":
86
98
  domain += [
87
99
  "|",
88
- ("date_maturity", "<=", self.due_date),
100
+ ("date_maturity", "<=", fields.Date.to_string(self.due_date)),
89
101
  ("date_maturity", "=", False),
90
102
  ]
91
103
  elif self.date_type == "move":
92
- domain.append(("date", "<=", self.move_date))
104
+ domain.append(("date", "<=", fields.Date.to_string(self.move_date)))
93
105
  if self.invoice:
94
106
  domain.append(
95
107
  (
@@ -150,11 +162,10 @@ class AccountPaymentLineCreate(models.TransientModel):
150
162
  if paylines:
151
163
  move_lines_ids = [payline.move_line_id.id for payline in paylines]
152
164
  domain += [("id", "not in", move_lines_ids)]
153
- return domain
165
+ self.move_line_domain = domain
154
166
 
155
167
  def populate(self):
156
- domain = self._prepare_move_line_domain()
157
- lines = self.env["account.move.line"].search(domain)
168
+ lines = self.env["account.move.line"].search(self.move_line_domain)
158
169
  self.move_line_ids = lines
159
170
  action = {
160
171
  "name": _("Select Move Lines to Create Transactions"),
@@ -167,22 +178,6 @@ class AccountPaymentLineCreate(models.TransientModel):
167
178
  }
168
179
  return action
169
180
 
170
- @api.onchange(
171
- "date_type",
172
- "move_date",
173
- "due_date",
174
- "journal_ids",
175
- "invoice",
176
- "target_move",
177
- "allow_blocked",
178
- "payment_mode",
179
- "partner_ids",
180
- )
181
- def move_line_filters_change(self):
182
- domain = self._prepare_move_line_domain()
183
- res = {"domain": {"move_line_ids": domain}}
184
- return res
185
-
186
181
  def create_payment_lines(self):
187
182
  if self.move_line_ids:
188
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.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:e7a6e362351296146e78e00e7ea787d64e6edc1d4df2ee38f11254ffcfa3314b
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=AavXboS4NVGRgTycNBCFUBnQWBuJy4HPHT3IxDAvhOw,4680
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=AvYlyF0pHUOQ2pm-vMp7HWy6R40c4PUn-jqNKlaCXNU,1555
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=_CQRunsFx6wj9-5SAghTHmcBMo3Bw8o4wR_GhO40TP8,48175
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=gxZDOBhWYln9_EnECX7IC8cyYJFz9km9s3gMl0jPTCs,15948
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=va7y0YeDD-yfH7RrVbc9B8fBLAoPNFRWSNW2-TaAQx8,18066
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=670c1irCC_QlGem_nAR3rZml1uCzVIHM9oJZ1xsan9w,7055
88
- odoo/addons/account_payment_order/wizard/account_payment_line_create_view.xml,sha256=MjA2eUw6T8hWXiMAvHnON9b29IbNlhs0FVBddxv3830,4414
89
- odoo_addon_account_payment_order-17.0.1.0.1.dist-info/METADATA,sha256=aeNso4nnGH3WEpnN9xFSvd5HmkxKs4VZbjDH7L8H0xs,5343
90
- odoo_addon_account_payment_order-17.0.1.0.1.dist-info/WHEEL,sha256=8Rd4enx1PCuyDWP4SABqO5Fv8rpaknqp3VzjoFFLa6c,83
91
- odoo_addon_account_payment_order-17.0.1.0.1.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
92
- odoo_addon_account_payment_order-17.0.1.0.1.dist-info/RECORD,,
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,,