odoo-addon-account-commission 16.0.2.3.0__py3-none-any.whl → 16.0.2.4.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 commissions
7
7
  !! This file is generated by oca-gen-addon-readme !!
8
8
  !! changes will be overwritten. !!
9
9
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
- !! source digest: sha256:160d10472aa0794ac787e52c597d274c4b78c88b593ac1e9b2d78bab3df2fcc3
10
+ !! source digest: sha256:8ba2b2321dee20dece1882cb3f664fb78a27b4fbccb785d1f5410b7d009889c6
11
11
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
12
 
13
13
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -128,6 +128,7 @@ Contributors
128
128
 
129
129
  * Pedro M. Baeza
130
130
  * Manuel Calero
131
+ * Sergio Teruel
131
132
 
132
133
  * `Quartile <https://www.quartile.co>`__:
133
134
 
@@ -3,7 +3,7 @@
3
3
  # Copyright 2014-2022 Tecnativa - Pedro M. Baeza
4
4
  {
5
5
  "name": "Account commissions",
6
- "version": "16.0.2.3.0",
6
+ "version": "16.0.2.4.0",
7
7
  "author": "Tecnativa, Odoo Community Association (OCA)",
8
8
  "category": "Sales Management",
9
9
  "license": "AGPL-3",
@@ -6,8 +6,8 @@ msgid ""
6
6
  msgstr ""
7
7
  "Project-Id-Version: Odoo Server 16.0\n"
8
8
  "Report-Msgid-Bugs-To: \n"
9
- "PO-Revision-Date: 2023-12-14 11:35+0000\n"
10
- "Last-Translator: Francesco Foresti <francesco.foresti@ooops404.com>\n"
9
+ "PO-Revision-Date: 2024-04-22 14:43+0000\n"
10
+ "Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
11
11
  "Language-Team: none\n"
12
12
  "Language: it\n"
13
13
  "MIME-Version: 1.0\n"
@@ -18,9 +18,8 @@ msgstr ""
18
18
 
19
19
  #. module: account_commission
20
20
  #: model:ir.model.fields,field_description:account_commission.field_invoice_commission_analysis_report__quantity
21
- #, fuzzy
22
21
  msgid "# of Qty"
23
- msgstr "# di q.tà"
22
+ msgstr "N. di q.tà"
24
23
 
25
24
  #. module: account_commission
26
25
  #: model_terms:ir.ui.view,arch_db:account_commission.commission_make_invoice_form
@@ -29,7 +28,6 @@ msgstr "(lasciare vuoto per fatturare tutte le liquidazioni pendenti)"
29
28
 
30
29
  #. module: account_commission
31
30
  #: model_terms:ir.ui.view,arch_db:account_commission.report_settlement_document
32
- #, fuzzy
33
31
  msgid "<strong>Settlement invoice:</strong>"
34
32
  msgstr "<strong>Fattura provvigioni:</strong>"
35
33
 
@@ -70,9 +68,8 @@ msgstr "Importo"
70
68
 
71
69
  #. module: account_commission
72
70
  #: model:ir.model.fields,field_description:account_commission.field_account_move_line__any_settled
73
- #, fuzzy
74
71
  msgid "Any Settled"
75
- msgstr "Qualunque liquidata"
72
+ msgstr "Qualsiasi regolata"
76
73
 
77
74
  #. module: account_commission
78
75
  #: model:ir.model.fields,field_description:account_commission.field_invoice_commission_analysis_report__balance
@@ -99,9 +96,8 @@ msgstr "Categoria prodotto"
99
96
 
100
97
  #. module: account_commission
101
98
  #: model:ir.model.fields,field_description:account_commission.field_account_move_line__commission_free
102
- #, fuzzy
103
99
  msgid "Comm. free"
104
- msgstr "No provv."
100
+ msgstr "Senza provvigione"
105
101
 
106
102
  #. module: account_commission
107
103
  #: model:ir.model,name:account_commission.model_commission
@@ -193,7 +189,7 @@ msgstr "Data"
193
189
  #. module: account_commission
194
190
  #: model_terms:ir.ui.view,arch_db:account_commission.report_settlement_document
195
191
  msgid "Description"
196
- msgstr ""
192
+ msgstr "Descrizione"
197
193
 
198
194
  #. module: account_commission
199
195
  #: model:ir.model.fields,field_description:account_commission.field_account_invoice_line_agent__display_name
@@ -214,15 +210,13 @@ msgstr "Modifica agenti"
214
210
 
215
211
  #. module: account_commission
216
212
  #: model_terms:ir.ui.view,arch_db:account_commission.view_invoice_commission_analysis_search
217
- #, fuzzy
218
213
  msgid "Extended Filters"
219
- msgstr "Filtri avanzati"
214
+ msgstr "Filtri estesi"
220
215
 
221
216
  #. module: account_commission
222
217
  #: model:ir.model.fields,field_description:account_commission.field_commission_make_invoice__from_settlement
223
- #, fuzzy
224
218
  msgid "From Settlement"
225
- msgstr "Da liquidazione"
219
+ msgstr "Dalla liquidazione"
226
220
 
227
221
  #. module: account_commission
228
222
  #: model:ir.model.fields,field_description:account_commission.field_commission_settlement__invoice_id
@@ -264,15 +258,13 @@ msgstr "Riga fattura agente"
264
258
 
265
259
  #. module: account_commission
266
260
  #: model:ir.model.fields.selection,name:account_commission.selection__commission__invoice_state__open
267
- #, fuzzy
268
261
  msgid "Invoice Based"
269
- msgstr "Basato su fatture"
262
+ msgstr "Basata sulla fattura"
270
263
 
271
264
  #. module: account_commission
272
265
  #: model:ir.model,name:account_commission.model_invoice_commission_analysis_report
273
- #, fuzzy
274
266
  msgid "Invoice Commission Analysis Report"
275
- msgstr "Analisi fatture provvigioni"
267
+ msgstr "Resoconto analisi commissioni fattura"
276
268
 
277
269
  #. module: account_commission
278
270
  #: model:ir.model.fields,field_description:account_commission.field_invoice_commission_analysis_report__date_invoice
@@ -388,9 +380,8 @@ msgstr "Non liquidata"
388
380
 
389
381
  #. module: account_commission
390
382
  #: model:ir.model.fields,field_description:account_commission.field_account_invoice_line_agent__object_id
391
- #, fuzzy
392
383
  msgid "Parent"
393
- msgstr "Superiore"
384
+ msgstr "Padre"
394
385
 
395
386
  #. module: account_commission
396
387
  #: model:ir.model.fields,field_description:account_commission.field_invoice_commission_analysis_report__partner_id
@@ -454,6 +445,11 @@ msgid ""
454
445
  "* 'Payment Based': Commissions are settled when the invoice is paid (or "
455
446
  "refunded)."
456
447
  msgstr ""
448
+ "Selezionare lo stato fattura per impostare le commissioni:\n"
449
+ "* 'Basata su fattura': le commissioni sono impostate quando la fattura viene "
450
+ "emessa.\n"
451
+ "* 'Basata sul pagamento': le commissioni sono impostate quando la fattura "
452
+ "viene pagata (o rimborsata)."
457
453
 
458
454
  #. module: account_commission
459
455
  #: model:ir.model.fields,field_description:account_commission.field_account_invoice_line_agent__settled
@@ -473,9 +469,8 @@ msgstr "Liquidazione"
473
469
  #: model:ir.model.fields,field_description:account_commission.field_account_bank_statement_line__settlement_count
474
470
  #: model:ir.model.fields,field_description:account_commission.field_account_move__settlement_count
475
471
  #: model:ir.model.fields,field_description:account_commission.field_account_payment__settlement_count
476
- #, fuzzy
477
472
  msgid "Settlement Count"
478
- msgstr "N. liquidazioni"
473
+ msgstr "Conteggio liguidazioni"
479
474
 
480
475
  #. module: account_commission
481
476
  #: model:ir.model.fields,field_description:account_commission.field_account_invoice_line_agent__settlement_line_ids
@@ -520,9 +515,8 @@ msgstr "Stato"
520
515
 
521
516
  #. module: account_commission
522
517
  #: model:ir.model.fields,field_description:account_commission.field_invoice_commission_analysis_report__price_subtotal
523
- #, fuzzy
524
518
  msgid "Subtotal"
525
- msgstr "Imponibile"
519
+ msgstr "Subtotale"
526
520
 
527
521
  #. module: account_commission
528
522
  #: model:ir.model.fields,help:account_commission.field_commission_settlement__settlement_type
@@ -530,8 +524,8 @@ msgid ""
530
524
  "The source of the settlement, e.g. 'Sales invoice', 'Sales order', 'Purchase "
531
525
  "order'..."
532
526
  msgstr ""
533
- "La sorgente di questa liquidazione, e.g. 'Fatture di vendita', 'Ordini di "
534
- "vendita', 'Ordini di acquisto'..."
527
+ "La sorgente della liquidazione, es. 'Fattura di vendita', 'Ordine di "
528
+ "vendita', 'Ordine fornitore'..."
535
529
 
536
530
  #. module: account_commission
537
531
  #: model_terms:ir.ui.view,arch_db:account_commission.view_invoice_commission_analysis_search
@@ -13,6 +13,7 @@
13
13
 
14
14
  * Pedro M. Baeza
15
15
  * Manuel Calero
16
+ * Sergio Teruel
16
17
 
17
18
  * `Quartile <https://www.quartile.co>`__:
18
19
 
@@ -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:160d10472aa0794ac787e52c597d274c4b78c88b593ac1e9b2d78bab3df2fcc3
369
+ !! source digest: sha256:8ba2b2321dee20dece1882cb3f664fb78a27b4fbccb785d1f5410b7d009889c6
370
370
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
371
371
  <p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.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/commission/tree/16.0/account_commission"><img alt="OCA/commission" src="https://img.shields.io/badge/github-OCA%2Fcommission-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/commission-16-0/commission-16-0-account_commission"><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/commission&amp;target_branch=16.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 the function to calculate commissions in invoices (account moves).</p>
@@ -473,6 +473,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
473
473
  <li><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a>:<ul>
474
474
  <li>Pedro M. Baeza</li>
475
475
  <li>Manuel Calero</li>
476
+ <li>Sergio Teruel</li>
476
477
  </ul>
477
478
  </li>
478
479
  <li><a class="reference external" href="https://www.quartile.co">Quartile</a>:<ul>
@@ -659,3 +659,38 @@ class TestAccountCommission(TestCommissionBase):
659
659
  )
660
660
  self.assertEqual(3, len(settlements.line_ids))
661
661
  self.assertAlmostEqual(0.6, sum(settlements.mapped("total")), 2)
662
+
663
+ def _register_payment(self, invoice):
664
+ payment_journal = self.env["account.journal"].search(
665
+ [("type", "=", "cash"), ("company_id", "=", self.env.company.id)],
666
+ limit=1,
667
+ )
668
+ register_payments = (
669
+ self.env["account.payment.register"]
670
+ .with_context(active_ids=invoice.id, active_model="account.move")
671
+ .create({"journal_id": payment_journal.id})
672
+ )
673
+ register_payments.action_create_payments()
674
+
675
+ def test_invoice_pending_settlement(self):
676
+ """Make in one settlement all pending invoices to wizard date"""
677
+ fields.Date.today()
678
+ self.commission_net_paid.invoice_state = "paid"
679
+ invoice1 = self._create_invoice(
680
+ self.agent_pending, self.commission_net_paid, "2024-02-15", currency=None
681
+ )
682
+ # Register payment for the new invoice
683
+ invoice2 = self._create_invoice(
684
+ self.agent_pending, self.commission_net_paid, "2024-03-15", currency=None
685
+ )
686
+ invoice3 = self._create_invoice(
687
+ self.agent_pending, self.commission_net_paid, "2024-04-15", currency=None
688
+ )
689
+ # invoice1.invoice_line_ids.agent_ids._compute_amount()
690
+ (invoice1 + invoice2 + invoice3).action_post()
691
+ self._register_payment(invoice1)
692
+ self._register_payment(invoice2)
693
+ self._register_payment(invoice3)
694
+ self._settle_agent_invoice(self.agent_pending, 1)
695
+ settlements = self.settle_model.search([("state", "=", "settled")])
696
+ self.assertEqual(len(settlements.line_ids), 3)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-account-commission
3
- Version: 16.0.2.3.0
3
+ Version: 16.0.2.4.0
4
4
  Summary: Account commissions
5
5
  Home-page: https://github.com/OCA/commission
6
6
  Author: Tecnativa, Odoo Community Association (OCA)
@@ -24,7 +24,7 @@ Account commissions
24
24
  !! This file is generated by oca-gen-addon-readme !!
25
25
  !! changes will be overwritten. !!
26
26
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
27
- !! source digest: sha256:160d10472aa0794ac787e52c597d274c4b78c88b593ac1e9b2d78bab3df2fcc3
27
+ !! source digest: sha256:8ba2b2321dee20dece1882cb3f664fb78a27b4fbccb785d1f5410b7d009889c6
28
28
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
29
29
 
30
30
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -145,6 +145,7 @@ Contributors
145
145
 
146
146
  * Pedro M. Baeza
147
147
  * Manuel Calero
148
+ * Sergio Teruel
148
149
 
149
150
  * `Quartile <https://www.quartile.co>`__:
150
151
 
@@ -1,11 +1,11 @@
1
- odoo/addons/account_commission/README.rst,sha256=KC_55ZPhZZon08Y1Jp7zbEYQ91LcVWR_w2UTzuNowQw,6143
1
+ odoo/addons/account_commission/README.rst,sha256=bErZvikPOqrQGBT6A3nzp-6zxTR7yM1iEgW0ZW1rmfA,6161
2
2
  odoo/addons/account_commission/__init__.py,sha256=8JG3SPnwMlgXTppOwkp3YTgDDQGo7U7veMEMpG1bL_c,64
3
- odoo/addons/account_commission/__manifest__.py,sha256=sZuCAQKKKqvXfAXN62ez_3MRRz4qmIAkhycrKTTZrV4,893
3
+ odoo/addons/account_commission/__manifest__.py,sha256=42FSmeQcbUVKDo30soNfVD5vJa7S9PjlYgLJ4lrIkUg,893
4
4
  odoo/addons/account_commission/data/menuitem_data.xml,sha256=OX8KpilSn3zWf9cMNiJLDO7aV_vtaH6GTIyMZWDxYqM,361
5
5
  odoo/addons/account_commission/i18n/account_commission.pot,sha256=YM_lHjaDADe8EjFteiOtG5wRZutjZuvuXy8P7hCbZRU,21969
6
6
  odoo/addons/account_commission/i18n/es.po,sha256=jxrHiOiX9oSFupF-6e_0fsD5v7K8xjZTwcTfxpCfQSc,25072
7
7
  odoo/addons/account_commission/i18n/hr.po,sha256=fotrWfKSA3Y7s8tge3UnkmwrlhM67nOOrigouGlauZA,22119
8
- odoo/addons/account_commission/i18n/it.po,sha256=e_Qld-X1YaNAKBdZORYXkpA-i9zR4cuvtvOs0v_DAuw,24539
8
+ odoo/addons/account_commission/i18n/it.po,sha256=-aA7bVzlIC8dKvzg8zNnZ2raBhjesLgB1wFcZDeELaE,24717
9
9
  odoo/addons/account_commission/i18n/ja.po,sha256=YeK90kjfYXIq-Id4mPNrdcwt3MOLXt2iVGvVQhhXiR8,24668
10
10
  odoo/addons/account_commission/i18n/pt.po,sha256=83MR5lys6a8oRodMzS281ZWPj1bxg8Gvt6s-lRM3sek,24531
11
11
  odoo/addons/account_commission/i18n/pt_BR.po,sha256=4-ji0xmcgLjv_yX_Dr9nrKAYgvwDpcLYcCTr8FGM9nU,24521
@@ -14,7 +14,7 @@ odoo/addons/account_commission/models/account_move.py,sha256=6P9SkOsurOvxTY4eA3h
14
14
  odoo/addons/account_commission/models/commission.py,sha256=OHzmB5iH-h4oQf5JQGV4EFpNOkAHxC1_0-j0g-8nDXE,576
15
15
  odoo/addons/account_commission/models/commission_settlement.py,sha256=zlC641aN3U_13O0qVp2fPuHHMXnEhMS_Q-RbD4z4JU8,7177
16
16
  odoo/addons/account_commission/readme/CONFIGURE.rst,sha256=vUEhtDTSXiZc88gXBuQZIcSkM3CbkmzQQwdVgJfnbSA,466
17
- odoo/addons/account_commission/readme/CONTRIBUTORS.rst,sha256=QsQobB9fWIKbpeWn8EHcxpOVKgnsjuqydf3FRLbC3v4,667
17
+ odoo/addons/account_commission/readme/CONTRIBUTORS.rst,sha256=Z8obkoMhHL_8ftRejdtx1bByqZJCUWVpQmSwAoAOtVQ,685
18
18
  odoo/addons/account_commission/readme/DESCRIPTION.rst,sha256=dLMZSNYGysvHiOC7Untw2leoCloADPLcrkIoE8FDEVI,208
19
19
  odoo/addons/account_commission/readme/USAGE.rst,sha256=kyhxu0d4eBImmEfJ4f-blVNPNByzArlsT9SIvLpQFqI,1798
20
20
  odoo/addons/account_commission/report/__init__.py,sha256=w7t-EO6EMoLF3jDCOZz5mMxeLWYADB6TeEI2GWbzy5M,34
@@ -24,9 +24,9 @@ odoo/addons/account_commission/security/account_commission_security.xml,sha256=p
24
24
  odoo/addons/account_commission/security/ir.model.access.csv,sha256=c0k8cFhVg1A4XCaUQ-mzJdLIotKKt1ltIYznK8ELhYE,883
25
25
  odoo/addons/account_commission/static/description/icon.png,sha256=ydxSIUuHSeE4CfMVsEzLjKKVdX4RicuPj8VGM2rBpBg,8219
26
26
  odoo/addons/account_commission/static/description/icon.svg,sha256=96b_cQ-F1XuDU6S5mDi9ioe0d22Vwn30uBDQ_3ZSi5w,17220
27
- odoo/addons/account_commission/static/description/index.html,sha256=bKS86_wLMuyOBzB6p9igambrcB5z-MHfoHPizONXUYM,17067
27
+ odoo/addons/account_commission/static/description/index.html,sha256=lWfH_040z49S9We93KfBmNA7fTkr2W8UEHAiyKE2Ixo,17090
28
28
  odoo/addons/account_commission/tests/__init__.py,sha256=bxd564RH-TWEpEJWbbc558dPFEJZCsH9JM8JF3-PMUM,38
29
- odoo/addons/account_commission/tests/test_account_commission.py,sha256=yhSNC5SyEqDt3kFG7edGLka3eZl0C7FzqtBYKoIXQp8,27141
29
+ odoo/addons/account_commission/tests/test_account_commission.py,sha256=AMkGc0mPvdB9tIMBVec0w-zoE9pnapEteD8xFCJziOE,28724
30
30
  odoo/addons/account_commission/views/account_move_views.xml,sha256=N6PGXNMSxgpwaz5HtydDTRX0stu3QzTX5vBICCksP9s,6600
31
31
  odoo/addons/account_commission/views/commission_settlement_views.xml,sha256=JG5sX13R5jdB79m1Pub2rwqhM1s3Kux3btXAbgv_sFk,3496
32
32
  odoo/addons/account_commission/views/commission_views.xml,sha256=oY2-WJ-lEn3gCoFMqStKObGT3LRkBxMmANm2MRhYuRE,614
@@ -35,7 +35,7 @@ odoo/addons/account_commission/wizards/__init__.py,sha256=ddwjnl0fpZTw56iNQmRcDJ
35
35
  odoo/addons/account_commission/wizards/commission_make_settle.py,sha256=k7yztap0JSa5q-QH71GXd0WFaUG639ETaAKrqdH8UE0,1717
36
36
  odoo/addons/account_commission/wizards/wizard_invoice.py,sha256=SumDW3606uLS4d6L2rKjQbwdvfmIYovKark-EUMTve0,3162
37
37
  odoo/addons/account_commission/wizards/wizard_invoice.xml,sha256=Afx90Mccl0EjLzZ2dJa2dOikYhWxIY5tQ7objmca8gc,2292
38
- odoo_addon_account_commission-16.0.2.3.0.dist-info/METADATA,sha256=9k3MZE-qPSVF1uIDZkBwBYqWzziIRtM7wQgJ_-GFOO0,6729
39
- odoo_addon_account_commission-16.0.2.3.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
40
- odoo_addon_account_commission-16.0.2.3.0.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
41
- odoo_addon_account_commission-16.0.2.3.0.dist-info/RECORD,,
38
+ odoo_addon_account_commission-16.0.2.4.0.dist-info/METADATA,sha256=CRzEfVbxXSqaq8ihUJNxIQcKQ0jMbgtdbyGfgtrTo3Y,6747
39
+ odoo_addon_account_commission-16.0.2.4.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
40
+ odoo_addon_account_commission-16.0.2.4.0.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
41
+ odoo_addon_account_commission-16.0.2.4.0.dist-info/RECORD,,