odoo-addon-account-payment-order 17.0.1.4.0.2__py3-none-any.whl → 17.0.1.4.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:0178290e954d4664d03a5c9a002404e0410bba7eb6909bbd09aa5bffb345dc91
10
+ !! source digest: sha256:9903c75d9af19bc8e60c472d616088e5b4a782424731a4e9313f64f08f52a96f
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.4.0",
12
+ "version": "17.0.1.4.1",
13
13
  "license": "AGPL-3",
14
14
  "author": "ACSONE SA/NV, "
15
15
  "Therp BV, "
@@ -880,6 +880,11 @@ msgstr ""
880
880
  msgid "Payment Line Count"
881
881
  msgstr ""
882
882
 
883
+ #. module: account_payment_order
884
+ #: model:ir.model.fields,field_description:account_payment_order.field_account_payment__payment_line_date
885
+ msgid "Payment Line Date"
886
+ msgstr ""
887
+
883
888
  #. module: account_payment_order
884
889
  #: model:ir.actions.act_window,name:account_payment_order.account_payment_line_action
885
890
  #: model:ir.model,name:account_payment_order.model_account_payment_line
@@ -15,6 +15,7 @@ class AccountPayment(models.Model):
15
15
  order_state = fields.Selection(
16
16
  related="payment_order_id.state", string="Payment Order State"
17
17
  )
18
+ payment_line_date = fields.Date(compute="_compute_payment_line_date")
18
19
 
19
20
  @api.depends("payment_type", "journal_id")
20
21
  def _compute_payment_method_line_fields(self):
@@ -39,6 +40,11 @@ class AccountPayment(models.Model):
39
40
  )
40
41
  return res
41
42
 
43
+ @api.depends("payment_line_ids", "payment_line_ids.date")
44
+ def _compute_payment_line_date(self):
45
+ for item in self:
46
+ item.payment_line_date = item.payment_line_ids[:1].date
47
+
42
48
  def update_payment_reference(self):
43
49
  view = self.env.ref("account_payment_order.account_payment_update_view_form")
44
50
  return {
@@ -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:0178290e954d4664d03a5c9a002404e0410bba7eb6909bbd09aa5bffb345dc91
370
+ !! source digest: sha256:9903c75d9af19bc8e60c472d616088e5b4a782424731a4e9313f64f08f52a96f
370
371
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
371
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>
372
373
  <p>This module adds support for payment orders and debit orders.</p>
@@ -472,7 +473,9 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
472
473
  <div class="section" id="maintainers">
473
474
  <h2><a class="toc-backref" href="#toc-entry-8">Maintainers</a></h2>
474
475
  <p>This module is maintained by the OCA.</p>
475
- <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
476
+ <a class="reference external image-reference" href="https://odoo-community.org">
477
+ <img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
478
+ </a>
476
479
  <p>OCA, or the Odoo Community Association, is a nonprofit organization whose
477
480
  mission is to support the collaborative development of Odoo features and
478
481
  promote its widespread use.</p>
@@ -135,11 +135,13 @@ class TestPaymentOrderInbound(TestPaymentOrderInboundBase):
135
135
  self.assertEqual(len(self.payment_order_obj.search(self.domain)), 0)
136
136
 
137
137
  @freeze_time("2024-04-01")
138
- def test_creation_transfer_move_date(self):
138
+ def test_creation_transfer_move_date_01(self):
139
139
  self.inbound_order.date_prefered = "fixed"
140
140
  self.inbound_order.date_scheduled = "2024-06-01"
141
141
  self.inbound_order.draft2open()
142
- payment_move = self.inbound_order.payment_ids.move_id
142
+ payment = self.inbound_order.payment_ids
143
+ self.assertEqual(payment.payment_line_date, date(2024, 6, 1))
144
+ payment_move = payment.move_id
143
145
  self.assertEqual(payment_move.date, date(2024, 4, 1)) # now
144
146
  self.assertEqual(
145
147
  payment_move.line_ids.mapped("date_maturity"),
@@ -149,7 +151,35 @@ class TestPaymentOrderInbound(TestPaymentOrderInboundBase):
149
151
  self.inbound_order.open2generated()
150
152
  self.inbound_order.generated2uploaded()
151
153
  self.assertEqual(self.inbound_order.state, "uploaded")
152
- payment_move = self.inbound_order.payment_ids.move_id
154
+ payment = self.inbound_order.payment_ids
155
+ self.assertEqual(payment.payment_line_date, date(2024, 6, 1))
156
+ payment_move = payment.move_id
157
+ self.assertEqual(payment_move.date, date(2024, 4, 1)) # now
158
+ self.assertEqual(
159
+ payment_move.line_ids.mapped("date_maturity"),
160
+ [date(2024, 6, 1), date(2024, 6, 1)],
161
+ )
162
+
163
+ @freeze_time("2024-04-01")
164
+ def test_creation_transfer_move_date_02(self):
165
+ # Simulate that the invoice had a different due date
166
+ self.inbound_order.payment_line_ids.ml_maturity_date = "2024-06-01"
167
+ self.inbound_order.draft2open()
168
+ payment = self.inbound_order.payment_ids
169
+ self.assertEqual(payment.payment_line_date, date(2024, 6, 1))
170
+ payment_move = payment.move_id
171
+ self.assertEqual(payment_move.date, date(2024, 4, 1)) # now
172
+ self.assertEqual(
173
+ payment_move.line_ids.mapped("date_maturity"),
174
+ [date(2024, 6, 1), date(2024, 6, 1)],
175
+ )
176
+ self.assertEqual(self.inbound_order.payment_count, 1)
177
+ self.inbound_order.open2generated()
178
+ self.inbound_order.generated2uploaded()
179
+ self.assertEqual(self.inbound_order.state, "uploaded")
180
+ payment = self.inbound_order.payment_ids
181
+ self.assertEqual(payment.payment_line_date, date(2024, 6, 1))
182
+ payment_move = payment.move_id
153
183
  self.assertEqual(payment_move.date, date(2024, 4, 1)) # now
154
184
  self.assertEqual(
155
185
  payment_move.line_ids.mapped("date_maturity"),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-account_payment_order
3
- Version: 17.0.1.4.0.2
3
+ Version: 17.0.1.4.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:0178290e954d4664d03a5c9a002404e0410bba7eb6909bbd09aa5bffb345dc91
27
+ !! source digest: sha256:9903c75d9af19bc8e60c472d616088e5b4a782424731a4e9313f64f08f52a96f
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=FYGC6KZj36HpfWOGzhHWa8XYEBE0pURz1Hnu43WpCMU,4680
1
+ odoo/addons/account_payment_order/README.rst,sha256=QXzqWPKfg_wPaJ2cH0gyMyzdXaXTXH5_Fyy-2ucX8Vc,4680
2
2
  odoo/addons/account_payment_order/__init__.py,sha256=HVXFv0Gbl3gl3fcRBZhi3rlZgriQVo_8LiEgUjtkcFs,96
3
- odoo/addons/account_payment_order/__manifest__.py,sha256=ZziN25dZ_46-cnvzflIGAewfsuHhhztZD_q3AZolM3k,1606
3
+ odoo/addons/account_payment_order/__manifest__.py,sha256=KZGs11_eqXUYoEGkPXn93MTNXiZ_h3YUOyXhDHvF5bw,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=6dGsdiuSpmx89jtMEWkm5IqX1PO01x-7hleSWcNxK8g,49508
7
+ odoo/addons/account_payment_order/i18n/account_payment_order.pot,sha256=oIhpej7rTiV5laNVkIP8ITQsKE0gTs6V8bZJZ_l-sXQ,49684
8
8
  odoo/addons/account_payment_order/i18n/am.po,sha256=JqZXPFAYsDEsre5y5azo5FUISSAby3XkQQLw-ymLOwI,49895
9
9
  odoo/addons/account_payment_order/i18n/ar.po,sha256=yVomx44mBTCIZeLxAvTt0i2tbbrPKzfV4h4saEtiGws,49911
10
10
  odoo/addons/account_payment_order/i18n/ca.po,sha256=ohy8laVDFYtdAOSsRhpywYGniAnMzxbOPAw9Fo7FavE,63989
@@ -48,7 +48,7 @@ odoo/addons/account_payment_order/models/__init__.py,sha256=AB9PJLjHR7TmbreS6BTH
48
48
  odoo/addons/account_payment_order/models/account_journal.py,sha256=J5PwsFBj61Jn7mnpd2e61hEo-2mYVQycxpV5zUXmTrs,1188
49
49
  odoo/addons/account_payment_order/models/account_move.py,sha256=4CIqwmNGoENLwjTAy96YkJdPfoJI3bHwRqCteIewgTM,10092
50
50
  odoo/addons/account_payment_order/models/account_move_line.py,sha256=SLPNyIOWmE40FzkKsMIkhRVXc_UbSwJ9PICKj4AlDco,3783
51
- odoo/addons/account_payment_order/models/account_payment.py,sha256=WhHo-cB_LmUMjvKsPEpbYvfxy_pUD6rXuBrVjg31v9Y,2740
51
+ odoo/addons/account_payment_order/models/account_payment.py,sha256=F0IHzXhxxNg3sLhgaF-XPi84LdmvE1GsNWAWozarTTI,3013
52
52
  odoo/addons/account_payment_order/models/account_payment_line.py,sha256=ixfKLzwIhl-EFfGOPoFhDINuir0-sn5q1xF_rcCqlJk,9396
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
@@ -66,12 +66,12 @@ 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=0gwNzi2ol5YY_5RsO_il44L-liD7LAQIigi0RUNwjOM,15948
69
+ odoo/addons/account_payment_order/static/description/index.html,sha256=7T8jJ4Rh6qDkjQF6RP0SsOpjmFCfBJl8rzK4ITkpYNw,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=4d1l8o43-Gy_D7d24Na-E7T9o5ALAgtn8xD7JWJJ2UQ,403
73
73
  odoo/addons/account_payment_order/tests/test_payment_mode.py,sha256=ek_ypq8ignQPMzFoDT3JR53tZ00Utfc5TY5W3Htx01A,3300
74
- odoo/addons/account_payment_order/tests/test_payment_order_inbound.py,sha256=LX4_-T748xDx8NLw_7tnl0YV7b4pBOetK8oNK6F2vZc,6592
74
+ odoo/addons/account_payment_order/tests/test_payment_order_inbound.py,sha256=tLZQvJzQuJBB1BQTzrj91XtNKB8OkpHm14jNF24hS9o,8008
75
75
  odoo/addons/account_payment_order/tests/test_payment_order_outbound.py,sha256=JDxT8EvO3IaH2lDzXn7KFtnK8MwqUO_nY40IiTU_x4s,17986
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
@@ -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.4.0.2.dist-info/METADATA,sha256=B2czwy6cR9IHkfvRBWqGTyqJWbDDUGLZlrnrG_mvdtQ,5345
92
- odoo_addon_account_payment_order-17.0.1.4.0.2.dist-info/WHEEL,sha256=8Rd4enx1PCuyDWP4SABqO5Fv8rpaknqp3VzjoFFLa6c,83
93
- odoo_addon_account_payment_order-17.0.1.4.0.2.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
94
- odoo_addon_account_payment_order-17.0.1.4.0.2.dist-info/RECORD,,
91
+ odoo_addon_account_payment_order-17.0.1.4.1.dist-info/METADATA,sha256=HfVQMnR-sdeHPVbG5pH-xoKq5rz-IZRr8kGjP7H4DKw,5343
92
+ odoo_addon_account_payment_order-17.0.1.4.1.dist-info/WHEEL,sha256=8Rd4enx1PCuyDWP4SABqO5Fv8rpaknqp3VzjoFFLa6c,83
93
+ odoo_addon_account_payment_order-17.0.1.4.1.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
94
+ odoo_addon_account_payment_order-17.0.1.4.1.dist-info/RECORD,,