odoo-addon-contract 17.0.1.1.2__py3-none-any.whl → 17.0.1.2.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 @@ Recurring - Contracts Management
7
7
  !! This file is generated by oca-gen-addon-readme !!
8
8
  !! changes will be overwritten. !!
9
9
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
- !! source digest: sha256:a212fd348aaf2a7d728a431012ef54bd1b8b8fa9ee321e2a5f94309e07382c78
10
+ !! source digest: sha256:919fb3bdb7d11d60fa16cd0ad86eb9bc7ab10b06ae02adf1be846b5b7d99d5b3
11
11
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
12
 
13
13
  .. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
@@ -68,8 +68,9 @@ Usage
68
68
  computed, can be modified) and end date (optional)
69
69
  - auto-price, for having a price automatically obtained from the
70
70
  price list
71
- - #START# or #END# in the description field to display the start/end
72
- date of the invoiced period in the invoice line description
71
+ - #START# - #END# or #INVOICEMONTHNAME# in the description field to
72
+ display the start/end date or the start month of the invoiced
73
+ period in the invoice line description
73
74
  - pre-paid (invoice at period start) or post-paid (invoice at start
74
75
  of next period)
75
76
 
@@ -11,7 +11,7 @@
11
11
 
12
12
  {
13
13
  "name": "Recurring - Contracts Management",
14
- "version": "17.0.1.1.2",
14
+ "version": "17.0.1.2.0",
15
15
  "category": "Contract Management",
16
16
  "license": "AGPL-3",
17
17
  "author": "Tecnativa, ACSONE SA/NV, Odoo Community Association (OCA)",
@@ -113,6 +113,23 @@ msgstr ""
113
113
  msgid "<strong>#END#</strong>: End date of the invoiced period"
114
114
  msgstr ""
115
115
 
116
+ #. module: contract
117
+ #: model_terms:ir.ui.view,arch_db:contract.contract_contract_form_view
118
+ msgid ""
119
+ "<strong>#INVOICEMONTHNAME#</strong>\n"
120
+ " : Invoice month name\n"
121
+ " of\n"
122
+ " the\n"
123
+ " invoiced period"
124
+ msgstr ""
125
+
126
+ #. module: contract
127
+ #: model_terms:ir.ui.view,arch_db:contract.contract_template_form_view
128
+ msgid ""
129
+ "<strong>#INVOICEMONTHNAME#</strong>: Invoice month name of the invoiced "
130
+ "period"
131
+ msgstr ""
132
+
116
133
  #. module: contract
117
134
  #: model_terms:ir.ui.view,arch_db:contract.contract_contract_form_view
118
135
  msgid ""
@@ -320,6 +337,13 @@ msgstr ""
320
337
  msgid "Analytic Precision"
321
338
  msgstr ""
322
339
 
340
+ #. module: contract
341
+ #. odoo-python
342
+ #: code:addons/contract/models/contract_line.py:0
343
+ #, python-format
344
+ msgid "April"
345
+ msgstr ""
346
+
323
347
  #. module: contract
324
348
  #: model_terms:ir.ui.view,arch_db:contract.contract_contract_form_view
325
349
  #: model_terms:ir.ui.view,arch_db:contract.contract_contract_search_view
@@ -352,6 +376,13 @@ msgstr ""
352
376
  msgid "Attachment Count"
353
377
  msgstr ""
354
378
 
379
+ #. module: contract
380
+ #. odoo-python
381
+ #: code:addons/contract/models/contract_line.py:0
382
+ #, python-format
383
+ msgid "August"
384
+ msgstr ""
385
+
355
386
  #. module: contract
356
387
  #: model:ir.model.fields,field_description:contract.field_contract_abstract_contract_line__is_auto_renew
357
388
  #: model:ir.model.fields,field_description:contract.field_contract_line__is_auto_renew
@@ -934,6 +965,13 @@ msgstr ""
934
965
  msgid "Day(s)"
935
966
  msgstr ""
936
967
 
968
+ #. module: contract
969
+ #. odoo-python
970
+ #: code:addons/contract/models/contract_line.py:0
971
+ #, python-format
972
+ msgid "December"
973
+ msgstr ""
974
+
937
975
  #. module: contract
938
976
  #: model:ir.model.fields,help:contract.field_contract_abstract_contract_line__note_invoicing_mode
939
977
  #: model:ir.model.fields,help:contract.field_contract_line__note_invoicing_mode
@@ -1016,6 +1054,13 @@ msgid ""
1016
1054
  "%(ue)s"
1017
1055
  msgstr ""
1018
1056
 
1057
+ #. module: contract
1058
+ #. odoo-python
1059
+ #: code:addons/contract/models/contract_line.py:0
1060
+ #, python-format
1061
+ msgid "February"
1062
+ msgstr ""
1063
+
1019
1064
  #. module: contract
1020
1065
  #: model_terms:ir.ui.view,arch_db:contract.contract_contract_search_view
1021
1066
  msgid "Finished"
@@ -1243,6 +1288,13 @@ msgstr ""
1243
1288
  msgid "Is suspension without end date"
1244
1289
  msgstr ""
1245
1290
 
1291
+ #. module: contract
1292
+ #. odoo-python
1293
+ #: code:addons/contract/models/contract_line.py:0
1294
+ #, python-format
1295
+ msgid "January"
1296
+ msgstr ""
1297
+
1246
1298
  #. module: contract
1247
1299
  #: model:ir.model.fields,field_description:contract.field_contract_abstract_contract__journal_id
1248
1300
  #: model:ir.model.fields,field_description:contract.field_contract_contract__journal_id
@@ -1261,6 +1313,20 @@ msgstr ""
1261
1313
  msgid "Journal Item"
1262
1314
  msgstr ""
1263
1315
 
1316
+ #. module: contract
1317
+ #. odoo-python
1318
+ #: code:addons/contract/models/contract_line.py:0
1319
+ #, python-format
1320
+ msgid "July"
1321
+ msgstr ""
1322
+
1323
+ #. module: contract
1324
+ #. odoo-python
1325
+ #: code:addons/contract/models/contract_line.py:0
1326
+ #, python-format
1327
+ msgid "June"
1328
+ msgstr ""
1329
+
1264
1330
  #. module: contract
1265
1331
  #: model:ir.model.fields,field_description:contract.field_contract_abstract_contract_line__last_date_invoiced
1266
1332
  #: model:ir.model.fields,field_description:contract.field_contract_contract__last_date_invoiced
@@ -1327,6 +1393,13 @@ msgstr ""
1327
1393
  msgid "Manually Invoice Sale Contracts"
1328
1394
  msgstr ""
1329
1395
 
1396
+ #. module: contract
1397
+ #. odoo-python
1398
+ #: code:addons/contract/models/contract_line.py:0
1399
+ #, python-format
1400
+ msgid "March"
1401
+ msgstr ""
1402
+
1330
1403
  #. module: contract
1331
1404
  #: model:ir.model.fields,help:contract.field_contract_abstract_contract__line_recurrence
1332
1405
  #: model:ir.model.fields,help:contract.field_contract_contract__line_recurrence
@@ -1336,6 +1409,13 @@ msgid ""
1336
1409
  "all together for the whole contract."
1337
1410
  msgstr ""
1338
1411
 
1412
+ #. module: contract
1413
+ #. odoo-python
1414
+ #: code:addons/contract/models/contract_line.py:0
1415
+ #, python-format
1416
+ msgid "May"
1417
+ msgstr ""
1418
+
1339
1419
  #. module: contract
1340
1420
  #: model:ir.model.fields,field_description:contract.field_contract_contract__message_has_error
1341
1421
  msgid "Message Delivery error"
@@ -1459,6 +1539,13 @@ msgstr ""
1459
1539
  msgid "Notes"
1460
1540
  msgstr ""
1461
1541
 
1542
+ #. module: contract
1543
+ #. odoo-python
1544
+ #: code:addons/contract/models/contract_line.py:0
1545
+ #, python-format
1546
+ msgid "November"
1547
+ msgstr ""
1548
+
1462
1549
  #. module: contract
1463
1550
  #: model:ir.model.fields,field_description:contract.field_contract_contract__message_needaction_counter
1464
1551
  msgid "Number of Actions"
@@ -1493,6 +1580,13 @@ msgstr ""
1493
1580
  msgid "Number of messages with delivery error"
1494
1581
  msgstr ""
1495
1582
 
1583
+ #. module: contract
1584
+ #. odoo-python
1585
+ #: code:addons/contract/models/contract_line.py:0
1586
+ #, python-format
1587
+ msgid "October"
1588
+ msgstr ""
1589
+
1496
1590
  #. module: contract
1497
1591
  #: model:ir.model.fields,field_description:contract.field_account_bank_statement_line__old_contract_id
1498
1592
  #: model:ir.model.fields,field_description:contract.field_account_move__old_contract_id
@@ -1768,6 +1862,13 @@ msgstr ""
1768
1862
  msgid "Sent"
1769
1863
  msgstr ""
1770
1864
 
1865
+ #. module: contract
1866
+ #. odoo-python
1867
+ #: code:addons/contract/models/contract_line.py:0
1868
+ #, python-format
1869
+ msgid "September"
1870
+ msgstr ""
1871
+
1771
1872
  #. module: contract
1772
1873
  #: model:ir.model.fields,field_description:contract.field_contract_abstract_contract_line__sequence
1773
1874
  #: model:ir.model.fields,field_description:contract.field_contract_line__sequence
@@ -9,8 +9,6 @@ msgid ""
9
9
  msgstr ""
10
10
  "Project-Id-Version: Odoo Server 11.0\n"
11
11
  "Report-Msgid-Bugs-To: \n"
12
- "POT-Creation-Date: 2024-09-03 19:17+0000\n"
13
- "PO-Revision-Date: 2024-09-03 21:25+0200\n"
14
12
  "Last-Translator: Sergio Teruel <sergio.teruel@tecnativa.com>\n"
15
13
  "Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
16
14
  "Language: es\n"
@@ -238,6 +236,29 @@ msgstr ""
238
236
  msgid "<strong>#END#</strong>: End date of the invoiced period"
239
237
  msgstr "<strong>#END#</strong>: Fecha fin del periodo facturado"
240
238
 
239
+ #. module: contract
240
+ #: model_terms:ir.ui.view,arch_db:contract.contract_contract_form_view
241
+ msgid ""
242
+ "<strong>#INVOICEMONTHNAME#</strong>\n"
243
+ " : Invoice month name\n"
244
+ " of\n"
245
+ " the\n"
246
+ " invoiced period"
247
+ msgstr ""
248
+ "<strong>#INVOICEMONTHNAME#</strong>\n"
249
+ " : Nombe del mes\n"
250
+ " del\n"
251
+ " periodo facturado"
252
+
253
+ #. module: contract
254
+ #: model_terms:ir.ui.view,arch_db:contract.contract_template_form_view
255
+ msgid ""
256
+ "<strong>#INVOICEMONTHNAME#</strong>: Invoice month name of the invoiced "
257
+ "period"
258
+ msgstr ""
259
+ "<strong>#INVOICEMONTHNAME#</strong>: FechaNombre del mes del periodo "
260
+ "facturado"
261
+
241
262
  #. module: contract
242
263
  #: model_terms:ir.ui.view,arch_db:contract.contract_contract_form_view
243
264
  msgid ""
@@ -451,6 +472,13 @@ msgstr "Búsqueda de distribución analítica"
451
472
  msgid "Analytic Precision"
452
473
  msgstr "Precisión analítica"
453
474
 
475
+ #. module: contract
476
+ #. odoo-python
477
+ #: code:addons/contract/models/contract_line.py:0
478
+ #, python-format
479
+ msgid "April"
480
+ msgstr "Abril"
481
+
454
482
  #. module: contract
455
483
  #: model_terms:ir.ui.view,arch_db:contract.contract_contract_form_view
456
484
  #: model_terms:ir.ui.view,arch_db:contract.contract_contract_search_view
@@ -483,6 +511,13 @@ msgstr "Socio asociado"
483
511
  msgid "Attachment Count"
484
512
  msgstr "Nº de archivos adjuntos"
485
513
 
514
+ #. module: contract
515
+ #. odoo-python
516
+ #: code:addons/contract/models/contract_line.py:0
517
+ #, python-format
518
+ msgid "August"
519
+ msgstr "Agosto"
520
+
486
521
  #. module: contract
487
522
  #: model:ir.model.fields,field_description:contract.field_contract_abstract_contract_line__is_auto_renew
488
523
  #: model:ir.model.fields,field_description:contract.field_contract_line__is_auto_renew
@@ -1094,6 +1129,13 @@ msgstr "Fecha de siguiente factura"
1094
1129
  msgid "Day(s)"
1095
1130
  msgstr "Día(s)"
1096
1131
 
1132
+ #. module: contract
1133
+ #. odoo-python
1134
+ #: code:addons/contract/models/contract_line.py:0
1135
+ #, python-format
1136
+ msgid "December"
1137
+ msgstr "Diciembre"
1138
+
1097
1139
  #. module: contract
1098
1140
  #: model:ir.model.fields,help:contract.field_contract_abstract_contract_line__note_invoicing_mode
1099
1141
  #: model:ir.model.fields,help:contract.field_contract_line__note_invoicing_mode
@@ -1184,6 +1226,13 @@ msgstr ""
1184
1226
  "Fallo al procesar el contrato %(name)s [id: %(id)s]:\n"
1185
1227
  "%(ue)s"
1186
1228
 
1229
+ #. module: contract
1230
+ #. odoo-python
1231
+ #: code:addons/contract/models/contract_line.py:0
1232
+ #, python-format
1233
+ msgid "February"
1234
+ msgstr "Febrero"
1235
+
1187
1236
  #. module: contract
1188
1237
  #: model_terms:ir.ui.view,arch_db:contract.contract_contract_search_view
1189
1238
  msgid "Finished"
@@ -1419,6 +1468,13 @@ msgstr "Es nota recurrente"
1419
1468
  msgid "Is suspension without end date"
1420
1469
  msgstr "Es suspensión sin fecha de finalización"
1421
1470
 
1471
+ #. module: contract
1472
+ #. odoo-python
1473
+ #: code:addons/contract/models/contract_line.py:0
1474
+ #, python-format
1475
+ msgid "January"
1476
+ msgstr "Enero"
1477
+
1422
1478
  #. module: contract
1423
1479
  #: model:ir.model.fields,field_description:contract.field_contract_abstract_contract__journal_id
1424
1480
  #: model:ir.model.fields,field_description:contract.field_contract_contract__journal_id
@@ -1437,6 +1493,20 @@ msgstr "Entrada diaria"
1437
1493
  msgid "Journal Item"
1438
1494
  msgstr "Apunte contable"
1439
1495
 
1496
+ #. module: contract
1497
+ #. odoo-python
1498
+ #: code:addons/contract/models/contract_line.py:0
1499
+ #, python-format
1500
+ msgid "July"
1501
+ msgstr "Julio"
1502
+
1503
+ #. module: contract
1504
+ #. odoo-python
1505
+ #: code:addons/contract/models/contract_line.py:0
1506
+ #, python-format
1507
+ msgid "June"
1508
+ msgstr "Junio"
1509
+
1440
1510
  #. module: contract
1441
1511
  #: model:ir.model.fields,field_description:contract.field_contract_abstract_contract_line__last_date_invoiced
1442
1512
  #: model:ir.model.fields,field_description:contract.field_contract_contract__last_date_invoiced
@@ -1504,6 +1574,13 @@ msgstr "Facturar manualmente contratos de compra"
1504
1574
  msgid "Manually Invoice Sale Contracts"
1505
1575
  msgstr "Facturar manualmente contratos de venta"
1506
1576
 
1577
+ #. module: contract
1578
+ #. odoo-python
1579
+ #: code:addons/contract/models/contract_line.py:0
1580
+ #, python-format
1581
+ msgid "March"
1582
+ msgstr "Marzo"
1583
+
1507
1584
  #. module: contract
1508
1585
  #: model:ir.model.fields,help:contract.field_contract_abstract_contract__line_recurrence
1509
1586
  #: model:ir.model.fields,help:contract.field_contract_contract__line_recurrence
@@ -1515,6 +1592,13 @@ msgstr ""
1515
1592
  "Marque esta casilla si desea controlar la recurrencia a nivel de línea en "
1516
1593
  "lugar de todos juntos para todo el contrato."
1517
1594
 
1595
+ #. module: contract
1596
+ #. odoo-python
1597
+ #: code:addons/contract/models/contract_line.py:0
1598
+ #, python-format
1599
+ msgid "May"
1600
+ msgstr "Mayo"
1601
+
1518
1602
  #. module: contract
1519
1603
  #: model:ir.model.fields,field_description:contract.field_contract_contract__message_has_error
1520
1604
  msgid "Message Delivery error"
@@ -1638,6 +1722,13 @@ msgstr "Modo de facturación de la nota"
1638
1722
  msgid "Notes"
1639
1723
  msgstr "Notas"
1640
1724
 
1725
+ #. module: contract
1726
+ #. odoo-python
1727
+ #: code:addons/contract/models/contract_line.py:0
1728
+ #, python-format
1729
+ msgid "November"
1730
+ msgstr "Noviembre"
1731
+
1641
1732
  #. module: contract
1642
1733
  #: model:ir.model.fields,field_description:contract.field_contract_contract__message_needaction_counter
1643
1734
  msgid "Number of Actions"
@@ -1674,6 +1765,13 @@ msgstr "Número de mensajes que requieren una acción"
1674
1765
  msgid "Number of messages with delivery error"
1675
1766
  msgstr "Número de mensajes con error de entrega"
1676
1767
 
1768
+ #. module: contract
1769
+ #. odoo-python
1770
+ #: code:addons/contract/models/contract_line.py:0
1771
+ #, python-format
1772
+ msgid "October"
1773
+ msgstr "Octubre"
1774
+
1677
1775
  #. module: contract
1678
1776
  #: model:ir.model.fields,field_description:contract.field_account_bank_statement_line__old_contract_id
1679
1777
  #: model:ir.model.fields,field_description:contract.field_account_move__old_contract_id
@@ -1950,6 +2048,13 @@ msgstr "Enviar por correo electrónico"
1950
2048
  msgid "Sent"
1951
2049
  msgstr "Enviado"
1952
2050
 
2051
+ #. module: contract
2052
+ #. odoo-python
2053
+ #: code:addons/contract/models/contract_line.py:0
2054
+ #, python-format
2055
+ msgid "September"
2056
+ msgstr "Septiembre"
2057
+
1953
2058
  #. module: contract
1954
2059
  #: model:ir.model.fields,field_description:contract.field_contract_abstract_contract_line__sequence
1955
2060
  #: model:ir.model.fields,field_description:contract.field_contract_line__sequence
@@ -2419,8 +2524,3 @@ msgid ""
2419
2524
  msgstr ""
2420
2525
  "{{ object.company_id.name }} Contrato (Ref {{ object.name or 'n/a' }}) - "
2421
2526
  "Modificaciones"
2422
-
2423
- #, fuzzy
2424
- #~| msgid "Next Activity Deadline"
2425
- #~ msgid "Next Activity Calendar Event"
2426
- #~ msgstr "Fecha límite de la siguiente actividad"
@@ -595,6 +595,23 @@ class ContractLine(models.Model):
595
595
  )
596
596
  return first_date_invoiced, last_date_invoiced, recurring_next_date
597
597
 
598
+ def _translate_marker_month_name(self, month_name):
599
+ months = {
600
+ "January": _("January"),
601
+ "February": _("February"),
602
+ "March": _("March"),
603
+ "April": _("April"),
604
+ "May": _("May"),
605
+ "June": _("June"),
606
+ "July": _("July"),
607
+ "August": _("August"),
608
+ "September": _("September"),
609
+ "October": _("October"),
610
+ "November": _("November"),
611
+ "December": _("December"),
612
+ }
613
+ return months[month_name]
614
+
598
615
  def _insert_markers(self, first_date_invoiced, last_date_invoiced):
599
616
  self.ensure_one()
600
617
  lang_obj = self.env["res.lang"]
@@ -603,6 +620,12 @@ class ContractLine(models.Model):
603
620
  name = self.name
604
621
  name = name.replace("#START#", first_date_invoiced.strftime(date_format))
605
622
  name = name.replace("#END#", last_date_invoiced.strftime(date_format))
623
+ name = name.replace(
624
+ "#INVOICEMONTHNAME#",
625
+ self.with_context(lang=lang.code)._translate_marker_month_name(
626
+ first_date_invoiced.strftime("%B")
627
+ ),
628
+ )
606
629
  return name
607
630
 
608
631
  def _update_recurring_next_date(self):
@@ -11,9 +11,9 @@
11
11
  (automatically computed, can be modified) and end date (optional)
12
12
  - auto-price, for having a price automatically obtained from the
13
13
  price list
14
- - \#START# or \#END# in the description field to display the
15
- start/end date of the invoiced period in the invoice line
16
- description
14
+ - \#START# - \#END# or \#INVOICEMONTHNAME# in the description field
15
+ to display the start/end date or the start month of the invoiced
16
+ period in the invoice line description
17
17
  - pre-paid (invoice at period start) or post-paid (invoice at start
18
18
  of next period)
19
19
  4. The "Generate Recurring Invoices from Contracts" cron runs daily to
@@ -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:a212fd348aaf2a7d728a431012ef54bd1b8b8fa9ee321e2a5f94309e07382c78
370
+ !! source digest: sha256:919fb3bdb7d11d60fa16cd0ad86eb9bc7ab10b06ae02adf1be846b5b7d99d5b3
371
371
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372
372
  <p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.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/contract/tree/17.0/contract"><img alt="OCA/contract" src="https://img.shields.io/badge/github-OCA%2Fcontract-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-contract"><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/contract&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 enables contracts management with recurring invoicing
@@ -414,8 +414,9 @@ last day or years), start date, date of next invoice (automatically
414
414
  computed, can be modified) and end date (optional)</li>
415
415
  <li>auto-price, for having a price automatically obtained from the
416
416
  price list</li>
417
- <li>#START# or #END# in the description field to display the start/end
418
- date of the invoiced period in the invoice line description</li>
417
+ <li>#START# - #END# or #INVOICEMONTHNAME# in the description field to
418
+ display the start/end date or the start month of the invoiced
419
+ period in the invoice line description</li>
419
420
  <li>pre-paid (invoice at period start) or post-paid (invoice at start
420
421
  of next period)</li>
421
422
  </ul>
@@ -8,6 +8,7 @@ from collections import namedtuple
8
8
  from datetime import timedelta
9
9
 
10
10
  from dateutil.relativedelta import relativedelta
11
+ from freezegun import freeze_time
11
12
 
12
13
  from odoo import fields
13
14
  from odoo.exceptions import UserError, ValidationError
@@ -141,7 +142,7 @@ class TestContractBase(common.TransactionCase):
141
142
  0,
142
143
  {
143
144
  "product_id": False,
144
- "name": "Header for Services",
145
+ "name": "Header for #INVOICEMONTHNAME# Services",
145
146
  "display_type": "line_section",
146
147
  },
147
148
  ),
@@ -2385,3 +2386,11 @@ class TestContract(TestContractBase):
2385
2386
  self.assertEqual(len(self.contract._get_related_invoices()), 4)
2386
2387
  self.contract.recurring_create_invoice()
2387
2388
  self.assertEqual(len(self.contract._get_related_invoices()), 4)
2389
+
2390
+ @freeze_time("2023-05-01")
2391
+ def test_check_month_name_marker(self):
2392
+ """Set fixed date to check test correctly."""
2393
+ self.contract3.contract_line_ids.date_start = fields.Date.today()
2394
+ self.contract3.contract_line_ids.recurring_next_date = fields.Date.today()
2395
+ invoice_id = self.contract3.recurring_create_invoice()
2396
+ self.assertEqual(invoice_id.invoice_line_ids[0].name, "Header for May Services")
@@ -478,6 +478,13 @@
478
478
  the
479
479
  invoiced period
480
480
  </p>
481
+ <p colspan="2">
482
+ <strong>#INVOICEMONTHNAME#</strong>
483
+ : Invoice month name
484
+ of
485
+ the
486
+ invoiced period
487
+ </p>
481
488
  </group>
482
489
  </page>
483
490
  </notebook>
@@ -76,6 +76,8 @@
76
76
  <p> <strong
77
77
  >#START#</strong>: Start date of the invoiced period</p>
78
78
  <p> <strong>#END#</strong>: End date of the invoiced period</p>
79
+ <p> <strong
80
+ >#INVOICEMONTHNAME#</strong>: Invoice month name of the invoiced period</p>
79
81
  </div>
80
82
  </group>
81
83
  </form>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-contract
3
- Version: 17.0.1.1.2
3
+ Version: 17.0.1.2.0
4
4
  Requires-Python: >=3.10
5
5
  Requires-Dist: odoo>=17.0a,<17.1dev
6
6
  Summary: Recurring - Contracts Management
@@ -23,7 +23,7 @@ Recurring - Contracts Management
23
23
  !! This file is generated by oca-gen-addon-readme !!
24
24
  !! changes will be overwritten. !!
25
25
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
26
- !! source digest: sha256:a212fd348aaf2a7d728a431012ef54bd1b8b8fa9ee321e2a5f94309e07382c78
26
+ !! source digest: sha256:919fb3bdb7d11d60fa16cd0ad86eb9bc7ab10b06ae02adf1be846b5b7d99d5b3
27
27
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
28
28
 
29
29
  .. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
@@ -84,8 +84,9 @@ Usage
84
84
  computed, can be modified) and end date (optional)
85
85
  - auto-price, for having a price automatically obtained from the
86
86
  price list
87
- - #START# or #END# in the description field to display the start/end
88
- date of the invoiced period in the invoice line description
87
+ - #START# - #END# or #INVOICEMONTHNAME# in the description field to
88
+ display the start/end date or the start month of the invoiced
89
+ period in the invoice line description
89
90
  - pre-paid (invoice at period start) or post-paid (invoice at start
90
91
  of next period)
91
92
 
@@ -1,6 +1,6 @@
1
- odoo/addons/contract/README.rst,sha256=BrwaIs3INtzXJhXtBut38tiGYEsh4NSPWME1AtjBQD4,5966
1
+ odoo/addons/contract/README.rst,sha256=jaN2h5fWh_o4Co9ASPm6Xpi6a7G5l4To8hJGCMe6E-U,6011
2
2
  odoo/addons/contract/__init__.py,sha256=dnUeA_K1torbiMNF3tt2dtECdk-FkWm01DByr9MBMIA,69
3
- odoo/addons/contract/__manifest__.py,sha256=l4Icbr1W6zCLVyH2Ovf0tLbcqOO5Fwqmb8hZPz68tjA,2084
3
+ odoo/addons/contract/__manifest__.py,sha256=2m95IdDSI_MIUeCQ4_wOmTc8Q6x5LY3-CvIU0KV0cjg,2084
4
4
  odoo/addons/contract/controllers/__init__.py,sha256=ZAYSY9pxyJjumL2QVLuxqtBzjLwKPiQsVXMBAWvNGGY,85
5
5
  odoo/addons/contract/controllers/main.py,sha256=bh4rySoMQWEzVWjez9Jn0cpl6edK3Frh63AROkiRfio,3995
6
6
  odoo/addons/contract/data/contract_cron.xml,sha256=Sf-dhqWi0FqEIDGI0L4FJh5E--RonzhZepZwecY_KaI,637
@@ -15,13 +15,13 @@ odoo/addons/contract/i18n/bg.po,sha256=bPngVD3bWHdAp6k3FQtfDXQo4FQxer8mDHBStpJtu
15
15
  odoo/addons/contract/i18n/bs.po,sha256=8i8IAV5XDkhAVC1AJxQ1fbfOC0weM1AxjX-fnfJa_0w,94169
16
16
  odoo/addons/contract/i18n/ca.po,sha256=tzqUTGWk8aqq-6PhMEXif1kXWNK0HhShROibSugm9DI,130201
17
17
  odoo/addons/contract/i18n/ca_ES.po,sha256=Ow4NLLUgEsk0M8kLS6-h5SKwVQlok94kuOyNi0EE09A,93824
18
- odoo/addons/contract/i18n/contract.pot,sha256=vFrl8FS8T5u8ZOor0FolMCMTC2kRjR3gDUSk56emK8w,93664
18
+ odoo/addons/contract/i18n/contract.pot,sha256=CsvhPA4xRReksift3DyHanvjHrvRW8N2dy18T8m4f1Y,95750
19
19
  odoo/addons/contract/i18n/cs.po,sha256=kOye2VzJm4fhteqGU9CSUhExbgqM5pvMv52FBbIgSgw,94194
20
20
  odoo/addons/contract/i18n/da.po,sha256=je6HxJ5zECxoUus3g8u03NvfHfavFco1mHyWi-3PMWY,94174
21
21
  odoo/addons/contract/i18n/de.po,sha256=84tFb4snhGD5NW05hp46SsaUymFAvw0L8KzR70cW4jU,122471
22
22
  odoo/addons/contract/i18n/el_GR.po,sha256=YG0srvRwW8MebB9BspyuXbWqB9QmPU0qHdjlLK-a1h4,94605
23
23
  odoo/addons/contract/i18n/en_GB.po,sha256=pyRE7A1lv80QH7N8qIcjEaKto9Z2kwG_ltDt_bXliQk,94183
24
- odoo/addons/contract/i18n/es.po,sha256=IQY90iNmvnrCRyh-4Owjes0l0h-8T2_OZxilrxjcEE4,109656
24
+ odoo/addons/contract/i18n/es.po,sha256=3BxjouEpTxFk5CSd2-R9ZjvCOzecdaZMafAblZP9Vnk,111873
25
25
  odoo/addons/contract/i18n/es_AR.po,sha256=uVov2s4EkqXaOxkm0mYF913_NikP3N4IzEFNq6544Gc,131295
26
26
  odoo/addons/contract/i18n/es_CL.po,sha256=CgabSVw0vzfsPLAud_4DOWzgjO8ek8XQfMpHBtVXZNE,99750
27
27
  odoo/addons/contract/i18n/es_CO.po,sha256=6NB9PrZLcX36rVvKjNrGvUbdbXrcf8Q9kn7wCbuDf_o,94075
@@ -85,7 +85,7 @@ odoo/addons/contract/models/abstract_contract.py,sha256=oZBawlf0KQ1_iXNw7ns6M7x6
85
85
  odoo/addons/contract/models/abstract_contract_line.py,sha256=l2HxCIgnU33H3jUIqEq9GAiWFszGbQJ_GRZiUG5Stdc,10144
86
86
  odoo/addons/contract/models/account_move.py,sha256=5jbL9XA-pc6pWlUFAk8QEeiUPR1f6kiJN1x-mtthCx4,568
87
87
  odoo/addons/contract/models/contract.py,sha256=HjVcFzz0qswayGpGO-yTwFa5JtDVdQO66BhBwvYpA8M,26734
88
- odoo/addons/contract/models/contract_line.py,sha256=wGp-cB6ectpvUY9NbywoLe8mmBUd3_MXW0eI2SZNQsE,40570
88
+ odoo/addons/contract/models/contract_line.py,sha256=etpr5b994JE9JblO9q-_SaLt3F6D1cqv2e_nW09kXfk,41329
89
89
  odoo/addons/contract/models/contract_line_constraints.py,sha256=b2ickNjNcRDsihwfjl0JxNk-_n9_2WEPHL_JdJPXwvM,11126
90
90
  odoo/addons/contract/models/contract_modification.py,sha256=d0tv2Zn6_WrR633pmzwAavzC2I3sLYmGokOKtMn7AYY,1147
91
91
  odoo/addons/contract/models/contract_recurrency_mixin.py,sha256=m2QN12YAent93Izt-wFHHggw-9kG3nQ2CvYKkSn7iAk,8865
@@ -100,7 +100,7 @@ odoo/addons/contract/readme/CONFIGURE.md,sha256=k6bzmZn2MY5pmFRj9OZq5GH5MwheH9wJ
100
100
  odoo/addons/contract/readme/CONTRIBUTORS.md,sha256=s68TU6AKQzW9bx6qflxjQa635SBQGzfnL-R3FRLuduQ,620
101
101
  odoo/addons/contract/readme/DESCRIPTION.md,sha256=yCmst5XSqn6r_ynzIexIrl318XQYn3YOkdrXmJ1Ggko,219
102
102
  odoo/addons/contract/readme/ROADMAP.md,sha256=KhCwdohrdZdH93FV6vKtp-Xj7LXS8zs6qkcH7TPnXIg,101
103
- odoo/addons/contract/readme/USAGE.md,sha256=PbD_lYTpp1F9orJlMo7cc6lAs-up77hT8h5aBRGLvrE,1811
103
+ odoo/addons/contract/readme/USAGE.md,sha256=FdeQqABXdC7JyIGdfN1YhaXDrs6LBNiDrqTrDrLsYg4,1852
104
104
  odoo/addons/contract/report/contract_views.xml,sha256=6AEDneVYD6BY3MMgc61aAIiUw3ayiySVJzKjYcfpmsU,545
105
105
  odoo/addons/contract/report/report_contract.xml,sha256=YbpxwoMuIg0HqJ4yypPUBR0hVXZeH_Mzu2G4iAkCslw,10029
106
106
  odoo/addons/contract/security/contract_security.xml,sha256=ntAJtiIU4VXHQPtNqYf6k26NzBn9GZArtQnMDDBq4p8,2561
@@ -109,23 +109,23 @@ odoo/addons/contract/security/contract_terminate_reason.xml,sha256=9FuazMNgwNWVE
109
109
  odoo/addons/contract/security/groups.xml,sha256=kv3a7HwzgFu5bHzaLoPDOkCkFnlJblkfJBHlE4HWKdg,390
110
110
  odoo/addons/contract/security/ir.model.access.csv,sha256=PCzdDvEoQpqozFHSk1uU_JyREUP2U2gVV1lWeQm17Z8,1836
111
111
  odoo/addons/contract/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
112
- odoo/addons/contract/static/description/index.html,sha256=WjUvzrdbzJBxyUTTVemMfgHrWgOpN4Ogc_3apy8tX9w,17200
112
+ odoo/addons/contract/static/description/index.html,sha256=suQ5Y0DHTP6Hq945ZlopyMIDXNjgdwOpfOtKQeokC8M,17240
113
113
  odoo/addons/contract/static/src/js/contract_portal_tour.esm.js,sha256=MfKevsZ3HOhegDM23KYNEylJgT71Z38y7ZlmfQq7hMM,424
114
114
  odoo/addons/contract/static/src/screenshots/portal-detail.png,sha256=8pMCU4nqwnSM-rbWZd3iJxXdYLBiYzuWNvT_NKslcoo,113399
115
115
  odoo/addons/contract/static/src/screenshots/portal-list.png,sha256=gWSW4rlncFZemG9i0xvyqGHLxoJ6Ew9RhXw4EXQqTZY,24905
116
116
  odoo/addons/contract/static/src/screenshots/portal-my.png,sha256=YrtvTDjoc839Eka5zSZ8FQhtzoMEeW4FrXGrYAwAkS4,22985
117
117
  odoo/addons/contract/static/src/scss/frontend.scss,sha256=LilfXNOwW8D2eXOMY0ZgrEv8hU5Vn1u9inCEIJp8D0g,1863
118
118
  odoo/addons/contract/tests/__init__.py,sha256=iive8lH1QtzKmbhBBzzU4AQgSAgWxdJF1mMLEFOiA4c,138
119
- odoo/addons/contract/tests/test_contract.py,sha256=syz7T21sZAppA56Il5AkN8AmQqRj4HHhqC5cTdqqJWI,101174
119
+ odoo/addons/contract/tests/test_contract.py,sha256=uSvU5nvxvXBjMebthiEsK4b83LaBWTHHX56QiYgVvAA,101666
120
120
  odoo/addons/contract/tests/test_contract_manually_create_invoice.py,sha256=GfA-hDaI4mSztE-2zQgFE_bQM-nsKzFhQRybi8EGeLo,2541
121
121
  odoo/addons/contract/tests/test_multicompany.py,sha256=tzoZO47kgNl05I4lbc-ynfmrJT9dhY6VINxxMdoj7Tk,4513
122
122
  odoo/addons/contract/tests/test_portal.py,sha256=YRJkx2FcYz-oLhFlXQzFjtzqq3crJIgLTunWwiqua0E,1174
123
123
  odoo/addons/contract/views/abstract_contract_line.xml,sha256=OqWhNhlSBo-D5A4pFNykQQTuyw5W7j-Q-p3HCdDMD_8,5308
124
- odoo/addons/contract/views/contract.xml,sha256=zcVXTrmzHY8Kic1WUDBaTaAzdNAMNMdjQRIGJfXdJ3g,34755
124
+ odoo/addons/contract/views/contract.xml,sha256=UHfRnWtuNP3DXPWxTW4z3yXU8R49PunzEjC9YtacMXg,35100
125
125
  odoo/addons/contract/views/contract_line.xml,sha256=8RUXiNRGiRJUPiy0qt1n1V4NubKJKg5vGTKfn1raFfk,8520
126
126
  odoo/addons/contract/views/contract_portal_templates.xml,sha256=Myw0z2J69m0LySwtgG7-IlauxlM7F3VcfgeNuCIG7T0,20273
127
127
  odoo/addons/contract/views/contract_tag.xml,sha256=6Qsyd9CiC_owa6G5YbX-4XmtqRAUrUSIAGlriTkeMk0,1678
128
- odoo/addons/contract/views/contract_template.xml,sha256=T3zPCptSPsJHbQV2jrQc2OCibzt5AekPdzC5PNdK-6Y,6261
128
+ odoo/addons/contract/views/contract_template.xml,sha256=Mvv6nyZzW3i69B0qJGyu_Meh6SEUW2ZCKuwdmGG51dA,6401
129
129
  odoo/addons/contract/views/contract_template_line.xml,sha256=L1VxYAyBPPJ3uIZuU7BcOgM9bs8bBVyFU_KBbCa4UDY,621
130
130
  odoo/addons/contract/views/contract_terminate_reason.xml,sha256=kyZAJLqkJJm1sXhgQoZUe-4Er8rlRI4RMBOwJkE2PBU,1569
131
131
  odoo/addons/contract/views/res_config_settings.xml,sha256=sQp1Xq23Pj3pBNpyKyONVW4qMw7dERtX6i-P5zjQMjc,883
@@ -137,7 +137,7 @@ odoo/addons/contract/wizards/contract_line_wizard.py,sha256=ItgL8eYPTnP5JI3kPAZm
137
137
  odoo/addons/contract/wizards/contract_line_wizard.xml,sha256=t_Abc2wd9a_8jS6Cjlo_1nNilqycD_XWdt3Joi2o2Zo,4400
138
138
  odoo/addons/contract/wizards/contract_manually_create_invoice.py,sha256=Q1BwQ9Vh4YdEiPlm6DS7iRcWauyEn9eoEY5S3MtbpgA,2962
139
139
  odoo/addons/contract/wizards/contract_manually_create_invoice.xml,sha256=EzgPmH5sJZcLjlUwB29tYw9EuyXaZC53xt9dDy9LopM,3791
140
- odoo_addon_contract-17.0.1.1.2.dist-info/METADATA,sha256=BXg9b6eVlo_d3oz7TsdaS1TI7cWIlBEWBbad0cwX9gY,6546
141
- odoo_addon_contract-17.0.1.1.2.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
142
- odoo_addon_contract-17.0.1.1.2.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
143
- odoo_addon_contract-17.0.1.1.2.dist-info/RECORD,,
140
+ odoo_addon_contract-17.0.1.2.0.dist-info/METADATA,sha256=wX9ft_M99yg1hE1oQXcCYQWnGYiexMsIzwA0HK05KwI,6591
141
+ odoo_addon_contract-17.0.1.2.0.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
142
+ odoo_addon_contract-17.0.1.2.0.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
143
+ odoo_addon_contract-17.0.1.2.0.dist-info/RECORD,,