odoo-addon-account-commission 16.0.2.4.2__py3-none-any.whl → 17.0.1.0.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.
Files changed (37) hide show
  1. odoo/addons/account_commission/README.rst +80 -64
  2. odoo/addons/account_commission/__manifest__.py +2 -1
  3. odoo/addons/account_commission/i18n/account_commission.pot +15 -17
  4. odoo/addons/account_commission/i18n/es.po +24 -39
  5. odoo/addons/account_commission/i18n/hr.po +6 -17
  6. odoo/addons/account_commission/i18n/it.po +26 -38
  7. odoo/addons/account_commission/i18n/ja.po +101 -116
  8. odoo/addons/account_commission/i18n/pt.po +27 -33
  9. odoo/addons/account_commission/i18n/pt_BR.po +64 -75
  10. odoo/addons/account_commission/i18n/tr.po +16 -26
  11. odoo/addons/account_commission/models/account_move.py +2 -29
  12. odoo/addons/account_commission/models/commission.py +1 -1
  13. odoo/addons/account_commission/models/commission_settlement.py +39 -5
  14. odoo/addons/account_commission/readme/CONFIGURE.md +8 -0
  15. odoo/addons/account_commission/readme/CONTRIBUTORS.md +23 -0
  16. odoo/addons/account_commission/readme/{DESCRIPTION.rst → DESCRIPTION.md} +7 -2
  17. odoo/addons/account_commission/readme/USAGE.md +38 -0
  18. odoo/addons/account_commission/security/account_commission_security.xml +4 -0
  19. odoo/addons/account_commission/static/description/index.html +57 -39
  20. odoo/addons/account_commission/tests/test_account_commission.py +72 -155
  21. odoo/addons/account_commission/views/account_move_views.xml +19 -36
  22. odoo/addons/account_commission/views/commission_settlement_views.xml +4 -4
  23. odoo/addons/account_commission/views/commission_views.xml +1 -1
  24. odoo/addons/account_commission/views/grouped_report_settlement_templates.xml +45 -0
  25. odoo/addons/account_commission/views/report_settlement_templates.xml +8 -14
  26. odoo/addons/account_commission/wizards/wizard_invoice.xml +1 -4
  27. odoo_addon_account_commission-17.0.1.0.1.dist-info/METADATA +198 -0
  28. odoo_addon_account_commission-17.0.1.0.1.dist-info/RECORD +43 -0
  29. {odoo_addon_account_commission-16.0.2.4.2.dist-info → odoo_addon_account_commission-17.0.1.0.1.dist-info}/WHEEL +1 -1
  30. odoo_addon_account_commission-17.0.1.0.1.dist-info/top_level.txt +1 -0
  31. odoo/addons/account_commission/i18n/fr.po +0 -599
  32. odoo/addons/account_commission/readme/CONFIGURE.rst +0 -8
  33. odoo/addons/account_commission/readme/CONTRIBUTORS.rst +0 -25
  34. odoo/addons/account_commission/readme/USAGE.rst +0 -37
  35. odoo_addon_account_commission-16.0.2.4.2.dist-info/METADATA +0 -181
  36. odoo_addon_account_commission-16.0.2.4.2.dist-info/RECORD +0 -43
  37. odoo_addon_account_commission-16.0.2.4.2.dist-info/top_level.txt +0 -1
@@ -4,7 +4,7 @@
4
4
  #
5
5
  msgid ""
6
6
  msgstr ""
7
- "Project-Id-Version: Odoo Server 16.0\n"
7
+ "Project-Id-Version: Odoo Server 17.0\n"
8
8
  "Report-Msgid-Bugs-To: \n"
9
9
  "PO-Revision-Date: 2024-08-26 14:06+0000\n"
10
10
  "Last-Translator: Metin GÜLSOY <metin.gulsoy@kitayazilim.com>\n"
@@ -36,12 +36,12 @@ msgstr "<strong>Anlaşma faturası:</strong>"
36
36
  #: model:ir.model.fields,field_description:account_commission.field_invoice_commission_analysis_report__agent_id
37
37
  #: model_terms:ir.ui.view,arch_db:account_commission.view_invoice_commission_analysis_search
38
38
  msgid "Agent"
39
- msgstr "Temsiilci"
39
+ msgstr "Temsilci"
40
40
 
41
41
  #. module: account_commission
42
42
  #: model:ir.model,name:account_commission.model_account_invoice_line_agent
43
43
  msgid "Agent detail of commission line in invoice lines"
44
- msgstr "Fatura satırlarında komisyon satırının temsilci detayı"
44
+ msgstr ""
45
45
 
46
46
  #. module: account_commission
47
47
  #: model:ir.model.fields,field_description:account_commission.field_account_bank_statement_line__partner_agent_ids
@@ -62,7 +62,6 @@ msgstr "Fatura satırıyla ilgili temsilciler/komisyonlar."
62
62
 
63
63
  #. module: account_commission
64
64
  #: model:ir.model.fields,field_description:account_commission.field_invoice_commission_analysis_report__amount
65
- #: model_terms:ir.ui.view,arch_db:account_commission.report_settlement_document
66
65
  msgid "Amount"
67
66
  msgstr "Miktar"
68
67
 
@@ -156,7 +155,7 @@ msgstr "Faturalar oluştur"
156
155
  #: code:addons/account_commission/wizards/wizard_invoice.py:0
157
156
  #, python-format
158
157
  msgid "Created Invoices"
159
- msgstr "Oluşturulmuş Faturalar"
158
+ msgstr ""
160
159
 
161
160
  #. module: account_commission
162
161
  #: model:ir.model.fields,field_description:account_commission.field_account_invoice_line_agent__create_uid
@@ -176,7 +175,6 @@ msgid "Currency"
176
175
  msgstr "Kur"
177
176
 
178
177
  #. module: account_commission
179
- #: model_terms:ir.ui.view,arch_db:account_commission.report_settlement_document
180
178
  #: model_terms:ir.ui.view,arch_db:account_commission.view_invoice_commission_analysis_search
181
179
  msgid "Customer"
182
180
  msgstr "Müşteri"
@@ -186,11 +184,6 @@ msgstr "Müşteri"
186
184
  msgid "Date"
187
185
  msgstr "Tarih"
188
186
 
189
- #. module: account_commission
190
- #: model_terms:ir.ui.view,arch_db:account_commission.report_settlement_document
191
- msgid "Description"
192
- msgstr "Açıklama"
193
-
194
187
  #. module: account_commission
195
188
  #: model:ir.model.fields,field_description:account_commission.field_account_invoice_line_agent__display_name
196
189
  #: model:ir.model.fields,field_description:account_commission.field_commission_make_invoice__display_name
@@ -247,7 +240,6 @@ msgstr "Kimlik"
247
240
 
248
241
  #. module: account_commission
249
242
  #: model:ir.model.fields,field_description:account_commission.field_account_invoice_line_agent__invoice_id
250
- #: model_terms:ir.ui.view,arch_db:account_commission.report_settlement_document
251
243
  msgid "Invoice"
252
244
  msgstr "Fatura"
253
245
 
@@ -274,7 +266,7 @@ msgstr "Fatura Tarihi"
274
266
  #. module: account_commission
275
267
  #: model:ir.model.fields,field_description:account_commission.field_invoice_commission_analysis_report__invoice_line_id
276
268
  msgid "Invoice Line"
277
- msgstr "Fatura Satırı"
269
+ msgstr "Fatura Tarihi"
278
270
 
279
271
  #. module: account_commission
280
272
  #: model_terms:ir.ui.view,arch_db:account_commission.view_invoice_commission_analysis_search
@@ -290,13 +282,18 @@ msgstr "Fatura Durumu"
290
282
  #. module: account_commission
291
283
  #: model:ir.model.fields,field_description:account_commission.field_account_invoice_line_agent__invoice_date
292
284
  msgid "Invoice date"
293
- msgstr "Fatura tarihi"
285
+ msgstr "fatura tarihi"
294
286
 
295
287
  #. module: account_commission
296
288
  #: model:ir.model.fields.selection,name:account_commission.selection__commission_settlement__state__except_invoice
297
289
  msgid "Invoice exception"
298
290
  msgstr "Fatura istisnası"
299
291
 
292
+ #. module: account_commission
293
+ #: model_terms:ir.ui.view,arch_db:account_commission.report_settlement_document
294
+ msgid "Invoice line"
295
+ msgstr "Fatura Satırı"
296
+
300
297
  #. module: account_commission
301
298
  #: model:ir.model.fields.selection,name:account_commission.selection__commission_settlement__state__invoiced
302
299
  #: model_terms:ir.ui.view,arch_db:account_commission.view_invoice_commission_analysis_search
@@ -322,14 +319,7 @@ msgstr "Yevmiye Kaydı"
322
319
  #. module: account_commission
323
320
  #: model:ir.model,name:account_commission.model_account_move_line
324
321
  msgid "Journal Item"
325
- msgstr "Yevmiye öğesi"
326
-
327
- #. module: account_commission
328
- #: model:ir.model.fields,field_description:account_commission.field_account_invoice_line_agent____last_update
329
- #: model:ir.model.fields,field_description:account_commission.field_commission_make_invoice____last_update
330
- #: model:ir.model.fields,field_description:account_commission.field_invoice_commission_analysis_report____last_update
331
- msgid "Last Modified on"
332
- msgstr "Son Değiştirilme Tarihi"
322
+ msgstr "Yevmiye Öğesi"
333
323
 
334
324
  #. module: account_commission
335
325
  #: model:ir.model.fields,field_description:account_commission.field_account_invoice_line_agent__write_uid
@@ -386,7 +376,7 @@ msgstr "Üst"
386
376
  #. module: account_commission
387
377
  #: model:ir.model.fields,field_description:account_commission.field_invoice_commission_analysis_report__partner_id
388
378
  msgid "Partner"
389
- msgstr "İş Ortağı"
379
+ msgstr "Ortak"
390
380
 
391
381
  #. module: account_commission
392
382
  #: model:ir.model.fields.selection,name:account_commission.selection__commission__invoice_state__paid
@@ -442,7 +432,7 @@ msgstr "Satış Faturaları"
442
432
  msgid ""
443
433
  "Select the invoice status for settling the commissions:\n"
444
434
  "* 'Invoice Based': Commissions are settled when the invoice is issued.\n"
445
- "* 'Payment Based': Commissions are settled when the invoice is paid (or refunded)."
435
+ "* 'Payment Based': Commissions are settled when the invoice is paid."
446
436
  msgstr ""
447
437
  "Komisyonların ödenmesi için fatura durumunu seçin:\n"
448
438
  "* 'Fatura Bazlı': Fatura düzenlendiğinde komisyonlar ödenir.\n"
@@ -472,7 +462,7 @@ msgstr "Anlaşma Sayısı"
472
462
  #. module: account_commission
473
463
  #: model:ir.model.fields,field_description:account_commission.field_account_invoice_line_agent__settlement_line_ids
474
464
  msgid "Settlement Line"
475
- msgstr "Anlaşma Satırı"
465
+ msgstr "Anlaşma satırı"
476
466
 
477
467
  #. module: account_commission
478
468
  #: model:ir.model.fields,field_description:account_commission.field_commission_make_settle__settlement_type
@@ -592,4 +582,4 @@ msgstr "fatura Komisyon Analizi"
592
582
  #. module: account_commission
593
583
  #: model_terms:ir.ui.view,arch_db:account_commission.view_invoice_commission_analysis_search
594
584
  msgid "invoices Commission Analysis"
595
- msgstr "fatura Komisyon Analizi"
585
+ msgstr "faturaların Komisyon Analizi"
@@ -2,7 +2,6 @@
2
2
  # Copyright 2014-2022 Tecnativa - Pedro M. Baeza
3
3
  # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
4
4
 
5
- from lxml import etree
6
5
 
7
6
  from odoo import _, api, exceptions, fields, models
8
7
 
@@ -87,35 +86,9 @@ class AccountMove(models.Model):
87
86
  def recompute_lines_agents(self):
88
87
  self.mapped("invoice_line_ids").recompute_agents()
89
88
 
90
- @api.model
91
- def fields_view_get(
92
- self, view_id=None, view_type="form", toolbar=False, submenu=False
93
- ):
94
- """Inject in this method the needed context for not removing other
95
- possible context values.
96
- """
97
- res = super(AccountMove, self).fields_view_get(
98
- view_id=view_id,
99
- view_type=view_type,
100
- toolbar=toolbar,
101
- submenu=submenu,
102
- )
103
- if view_type == "form":
104
- invoice_xml = etree.XML(res["arch"])
105
- invoice_line_fields = invoice_xml.xpath("//field[@name='invoice_line_ids']")
106
- if invoice_line_fields:
107
- invoice_line_field = invoice_line_fields[0]
108
- context = invoice_line_field.attrib.get("context", "{}").replace(
109
- "{",
110
- "{'partner_id': partner_id, ",
111
- 1,
112
- )
113
- invoice_line_field.attrib["context"] = context
114
- res["arch"] = etree.tostring(invoice_xml)
115
- return res
116
-
117
89
  def unlink(self):
118
- """Put 'invoiced' settlements associated to the invoices back in settled state."""
90
+ """Put 'invoiced' settlements associated to the invoices back in
91
+ settled state."""
119
92
  self.invoice_line_ids.settlement_id.filtered(
120
93
  lambda s: s.state == "invoiced"
121
94
  ).write({"state": "settled"})
@@ -12,5 +12,5 @@ class Commission(models.Model):
12
12
  default="open",
13
13
  help="Select the invoice status for settling the commissions:\n"
14
14
  "* 'Invoice Based': Commissions are settled when the invoice is issued.\n"
15
- "* 'Payment Based': Commissions are settled when the invoice is paid (or refunded).",
15
+ "* 'Payment Based': Commissions are settled when the invoice is paid.",
16
16
  )
@@ -94,7 +94,7 @@ class CommissionSettlement(models.Model):
94
94
  (
95
95
  "code",
96
96
  "=",
97
- partner.lang or self.env.context.get("lang", "en_US"),
97
+ self.agent_id.lang or self.env.context.get("lang", "en_US"),
98
98
  )
99
99
  ]
100
100
  )
@@ -155,17 +155,51 @@ class CommissionSettlement(models.Model):
155
155
  invoices = self.env["account.move"].create(invoice_vals_list)
156
156
  invoices.sudo().filtered(lambda m: m.amount_total < 0).with_context(
157
157
  include_settlement=True
158
- ).action_switch_invoice_into_refund_credit_note()
158
+ ).action_switch_move_type()
159
159
  self.write({"state": "invoiced"})
160
160
  return invoices
161
161
 
162
+ def grouped_report_lines(self):
163
+ self.ensure_one()
164
+ if self.settlement_type == "sale_invoice":
165
+ grouped_res = {}
166
+ for line in self.line_ids:
167
+ origin = (
168
+ line.invoice_line_id.move_id if line.invoice_line_id else "Manual"
169
+ )
170
+ move = line.invoice_line_id.move_id
171
+ sign = -1 if move and "refund" in move.move_type else 1
172
+ group = grouped_res.setdefault(
173
+ (line.date, origin),
174
+ {"commission": 0.0, "base_commission": 0.0},
175
+ )
176
+ if move:
177
+ group["base_commission"] += (
178
+ sign * line.invoice_line_id.price_subtotal
179
+ )
180
+ group["commission"] += line.settled_amount
181
+ res = []
182
+ for (date, origin), values in grouped_res.items():
183
+ res.append(
184
+ {
185
+ "date": date,
186
+ "settled_amount": values["commission"],
187
+ "base_commission": values["base_commission"],
188
+ "invoice": origin if isinstance(origin, str) else origin.name,
189
+ "partner": ""
190
+ if isinstance(origin, str)
191
+ else origin.partner_id.display_name,
192
+ }
193
+ )
194
+ else:
195
+ res = super().grouped_report_lines()
196
+ return res
197
+
162
198
 
163
199
  class SettlementLine(models.Model):
164
200
  _inherit = "commission.settlement.line"
165
201
 
166
- invoice_agent_line_id = fields.Many2one(
167
- comodel_name="account.invoice.line.agent", index=True
168
- )
202
+ invoice_agent_line_id = fields.Many2one(comodel_name="account.invoice.line.agent")
169
203
  invoice_line_id = fields.Many2one(
170
204
  comodel_name="account.move.line",
171
205
  store=True,
@@ -0,0 +1,8 @@
1
+ For selecting invoice status in commissions:
2
+
3
+ 1. Edit or create a new record to select the invoice status for
4
+ settling the commissions.
5
+ - **Invoice Based**: Commissions are settled when the invoice is
6
+ issued.
7
+ - **Payment Based**: Commissions are settled when the invoice is
8
+ paid.
@@ -0,0 +1,23 @@
1
+ - Pexego.
2
+ - Davide Corio \<<davide.corio@domsense.com>\>
3
+ - Joao Alfredo Gama Batista \<<joao.gama@savoirfairelinux.com>\>
4
+ - Sandy Carter \<<sandy.carter@savoirfairelinux.com>\>
5
+ - Giorgio Borelli \<<giorgio.borelli@abstract.it>\>
6
+ - Daniel Campos \<<danielcampos@avanzosc.es>\>
7
+ - Oihane Crucelaegui \<<oihanecruce@gmail.com>\>
8
+ - Nicola Malcontenti \<<nicola.malcontenti@agilebg.com>\>
9
+ - Aitor Bouzas \<<aitor.bouzas@adaptivecity.com>\>
10
+ - Alexei Rivera \<<arivera@archeti.com>\>
11
+ - Mina Samir \<<minaw349@outlook.com>\>
12
+ - [Tecnativa](https://www.tecnativa.com):
13
+ - Pedro M. Baeza
14
+ - Manuel Calero
15
+ - [Quartile](https://www.quartile.co):
16
+ - Aung Ko Ko Lin
17
+ - Yoshi Tashiro
18
+ - [Studio73](https://www.studio73.es):
19
+ - Ethan Hildick
20
+ - [Sygel](https://www.sygel.es):
21
+ - Alberto Martínez
22
+ - Valentín Vinagre
23
+ - Ángel Rivas
@@ -1,5 +1,10 @@
1
- This module adds the function to calculate commissions in invoices (account moves).
1
+ This module adds the function to calculate commissions in invoices
2
+ (account moves).
2
3
 
3
- It also allows to create vendor bills from settlements for external agents.
4
+ It also allows to create vendor bills from settlements for external
5
+ agents.
4
6
 
5
7
  This module depends on the commission module.
8
+
9
+ Additionally, it extends the grouped settlement report from the commission module
10
+ to include a grouping by invoice
@@ -0,0 +1,38 @@
1
+ For adding commissions on invoices:
2
+
3
+ 1. Go to *Invoicing \> Customers \> Invoices*.
4
+ 2. Edit or create a new record.
5
+ 3. When you have selected a partner, each new invoice line you add will
6
+ have the agents and commissions set at customer level.
7
+ 4. You can add, modify or delete these agents discretely clicking on
8
+ the icon with several persons represented, next to the "Commission"
9
+ field in the list. This icon will be available only if the line
10
+ hasn't been invoiced yet.
11
+ 5. If you have configured your system for editing lines in a popup
12
+ window, agents will appear also in this window.
13
+ 6. The agents icon will be in this ocassion visible when the line
14
+ hasn't been settled.
15
+ 7. You have a button "Regenerate agents" on the bottom of the page
16
+ "Invoice Lines" for forcing a recompute of all agents from the
17
+ partner setup. This is needed for example when you have changed the
18
+ partner on the invoice having already inserted lines.
19
+
20
+ For invoicing the settlements (only for external agents):
21
+
22
+ 1. Go to *Invoicing \> Commissions \> Create Commission Invoices*.
23
+ 2. On the window that appears, you can select following data:
24
+ - Product. It should be a service product for being coherent.
25
+ - Journal: To be selected between existing purchase journals.
26
+ - Date: If you want to choose a specific invoice date. You can leave
27
+ it blank if you prefer.
28
+ - Settlements: For selecting specific settlements to invoice. You
29
+ can leave it blank as well for invoicing all the pending
30
+ settlements.
31
+
32
+ If you want to invoice a/some specific settlement/s:
33
+
34
+ 1. Navigate to *Invoicing \> Commissions \> Invoices Settlements*.
35
+ 2. Select it/them on the list.
36
+ 3. Click on *Action \> Create Commission Invoices*.
37
+ 4. You can as well enter in one settlement, and click on the "Make
38
+ invoice" button.
@@ -7,6 +7,10 @@
7
7
  <field name="name">Manage invoices commissions</field>
8
8
  <field name="category_id" ref="base.module_category_hidden" />
9
9
  <field name="implied_ids" eval="[(4, ref('base.group_user'))]" />
10
+ <field
11
+ name="users"
12
+ eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"
13
+ />
10
14
  </record>
11
15
  </data>
12
16
  <data noupdate="1">
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
5
  <meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
6
- <title>Account commissions</title>
6
+ <title>README.rst</title>
7
7
  <style type="text/css">
8
8
 
9
9
  /*
@@ -360,19 +360,28 @@ ul.auto-toc {
360
360
  </style>
361
361
  </head>
362
362
  <body>
363
- <div class="document" id="account-commissions">
364
- <h1 class="title">Account commissions</h1>
363
+ <div class="document">
365
364
 
365
+
366
+ <a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme">
367
+ <img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" />
368
+ </a>
369
+ <div class="section" id="account-commissions">
370
+ <h1>Account commissions</h1>
366
371
  <!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
367
372
  !! This file is generated by oca-gen-addon-readme !!
368
373
  !! changes will be overwritten. !!
369
374
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370
- !! source digest: sha256:50991bf7ef618b918f0d0086baa3b337a6752514967915425fbbac2f07557231
375
+ !! source digest: sha256:4fa8f154e66e62d73a6e19596f65a5ba3cffc5d7861a8f3f4f3c373e8bea39f6
371
376
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372
- <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>
373
- <p>This module adds the function to calculate commissions in invoices (account moves).</p>
374
- <p>It also allows to create vendor bills from settlements for external agents.</p>
377
+ <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/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/commission/tree/17.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-17-0/commission-17-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=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
378
+ <p>This module adds the function to calculate commissions in invoices
379
+ (account moves).</p>
380
+ <p>It also allows to create vendor bills from settlements for external
381
+ agents.</p>
375
382
  <p>This module depends on the commission module.</p>
383
+ <p>Additionally, it extends the grouped settlement report from the
384
+ commission module to include a grouping by invoice</p>
376
385
  <p><strong>Table of contents</strong></p>
377
386
  <div class="contents local topic" id="contents">
378
387
  <ul class="simple">
@@ -388,37 +397,39 @@ ul.auto-toc {
388
397
  </ul>
389
398
  </div>
390
399
  <div class="section" id="configuration">
391
- <h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
400
+ <h2><a class="toc-backref" href="#toc-entry-1">Configuration</a></h2>
392
401
  <p>For selecting invoice status in commissions:</p>
393
402
  <ol class="arabic simple">
394
- <li>Edit or create a new record to select the invoice status for settling the commissions.<ul>
395
- <li><strong>Invoice Based</strong>: Commissions are settled when the invoice is issued.</li>
396
- <li><strong>Payment Based</strong>: Commissions are settled when the invoice is paid or refunded.
397
- Note that when refunding an invoice, the corresponding reversed commission will
398
- be settled as well, resulting in a 0 net commission between both operations.</li>
403
+ <li>Edit or create a new record to select the invoice status for settling
404
+ the commissions.<ul>
405
+ <li><strong>Invoice Based</strong>: Commissions are settled when the invoice is
406
+ issued.</li>
407
+ <li><strong>Payment Based</strong>: Commissions are settled when the invoice is
408
+ paid.</li>
399
409
  </ul>
400
410
  </li>
401
411
  </ol>
402
412
  </div>
403
413
  <div class="section" id="usage">
404
- <h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
414
+ <h2><a class="toc-backref" href="#toc-entry-2">Usage</a></h2>
405
415
  <p>For adding commissions on invoices:</p>
406
416
  <ol class="arabic simple">
407
417
  <li>Go to <em>Invoicing &gt; Customers &gt; Invoices</em>.</li>
408
418
  <li>Edit or create a new record.</li>
409
- <li>When you have selected a partner, each new invoice line you add will have
410
- the agents and commissions set at customer level.</li>
419
+ <li>When you have selected a partner, each new invoice line you add will
420
+ have the agents and commissions set at customer level.</li>
411
421
  <li>You can add, modify or delete these agents discretely clicking on the
412
- icon with several persons represented, next to the “Commission” field in the
413
- list. This icon will be available only if the line hasn’t been invoiced yet.</li>
414
- <li>If you have configured your system for editing lines in a popup window,
415
- agents will appear also in this window.</li>
416
- <li>The agents icon will be in this ocassion visible when the line hasn’t been
417
- settled.</li>
422
+ icon with several persons represented, next to the “Commission” field
423
+ in the list. This icon will be available only if the line hasn’t been
424
+ invoiced yet.</li>
425
+ <li>If you have configured your system for editing lines in a popup
426
+ window, agents will appear also in this window.</li>
427
+ <li>The agents icon will be in this ocassion visible when the line hasn’t
428
+ been settled.</li>
418
429
  <li>You have a button “Regenerate agents” on the bottom of the page
419
- “Invoice Lines” for forcing a recompute of all agents from the partner setup.
420
- This is needed for example when you have changed the partner on the
421
- invoice having already inserted lines.</li>
430
+ “Invoice Lines” for forcing a recompute of all agents from the
431
+ partner setup. This is needed for example when you have changed the
432
+ partner on the invoice having already inserted lines.</li>
422
433
  </ol>
423
434
  <p>For invoicing the settlements (only for external agents):</p>
424
435
  <ol class="arabic simple">
@@ -426,10 +437,10 @@ invoice having already inserted lines.</li>
426
437
  <li>On the window that appears, you can select following data:<ul>
427
438
  <li>Product. It should be a service product for being coherent.</li>
428
439
  <li>Journal: To be selected between existing purchase journals.</li>
429
- <li>Date: If you want to choose a specific invoice date. You can leave it
430
- blank if you prefer.</li>
431
- <li>Settlements: For selecting specific settlements to invoice. You can leave
432
- it blank as well for invoicing all the pending settlements.</li>
440
+ <li>Date: If you want to choose a specific invoice date. You can leave
441
+ it blank if you prefer.</li>
442
+ <li>Settlements: For selecting specific settlements to invoice. You can
443
+ leave it blank as well for invoicing all the pending settlements.</li>
433
444
  </ul>
434
445
  </li>
435
446
  </ol>
@@ -438,28 +449,28 @@ it blank as well for invoicing all the pending settlements.</li>
438
449
  <li>Navigate to <em>Invoicing &gt; Commissions &gt; Invoices Settlements</em>.</li>
439
450
  <li>Select it/them on the list.</li>
440
451
  <li>Click on <em>Action &gt; Create Commission Invoices</em>.</li>
441
- <li>You can as well enter in one settlement, and click on the “Make invoice”
442
- button.</li>
452
+ <li>You can as well enter in one settlement, and click on the “Make
453
+ invoice” button.</li>
443
454
  </ol>
444
455
  </div>
445
456
  <div class="section" id="bug-tracker">
446
- <h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
457
+ <h2><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h2>
447
458
  <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/commission/issues">GitHub Issues</a>.
448
459
  In case of trouble, please check there if your issue has already been reported.
449
460
  If you spotted it first, help us to smash it by providing a detailed and welcomed
450
- <a class="reference external" href="https://github.com/OCA/commission/issues/new?body=module:%20account_commission%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
461
+ <a class="reference external" href="https://github.com/OCA/commission/issues/new?body=module:%20account_commission%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
451
462
  <p>Do not contact contributors directly about support or help with technical issues.</p>
452
463
  </div>
453
464
  <div class="section" id="credits">
454
- <h1><a class="toc-backref" href="#toc-entry-4">Credits</a></h1>
465
+ <h2><a class="toc-backref" href="#toc-entry-4">Credits</a></h2>
455
466
  <div class="section" id="authors">
456
- <h2><a class="toc-backref" href="#toc-entry-5">Authors</a></h2>
467
+ <h3><a class="toc-backref" href="#toc-entry-5">Authors</a></h3>
457
468
  <ul class="simple">
458
469
  <li>Tecnativa</li>
459
470
  </ul>
460
471
  </div>
461
472
  <div class="section" id="contributors">
462
- <h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
473
+ <h3><a class="toc-backref" href="#toc-entry-6">Contributors</a></h3>
463
474
  <ul class="simple">
464
475
  <li>Pexego.</li>
465
476
  <li>Davide Corio &lt;<a class="reference external" href="mailto:davide.corio&#64;domsense.com">davide.corio&#64;domsense.com</a>&gt;</li>
@@ -471,10 +482,10 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
471
482
  <li>Nicola Malcontenti &lt;<a class="reference external" href="mailto:nicola.malcontenti&#64;agilebg.com">nicola.malcontenti&#64;agilebg.com</a>&gt;</li>
472
483
  <li>Aitor Bouzas &lt;<a class="reference external" href="mailto:aitor.bouzas&#64;adaptivecity.com">aitor.bouzas&#64;adaptivecity.com</a>&gt;</li>
473
484
  <li>Alexei Rivera &lt;<a class="reference external" href="mailto:arivera&#64;archeti.com">arivera&#64;archeti.com</a>&gt;</li>
485
+ <li>Mina Samir &lt;<a class="reference external" href="mailto:minaw349&#64;outlook.com">minaw349&#64;outlook.com</a>&gt;</li>
474
486
  <li><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a>:<ul>
475
487
  <li>Pedro M. Baeza</li>
476
488
  <li>Manuel Calero</li>
477
- <li>Sergio Teruel</li>
478
489
  </ul>
479
490
  </li>
480
491
  <li><a class="reference external" href="https://www.quartile.co">Quartile</a>:<ul>
@@ -486,10 +497,16 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
486
497
  <li>Ethan Hildick</li>
487
498
  </ul>
488
499
  </li>
500
+ <li><a class="reference external" href="https://www.sygel.es">Sygel</a>:<ul>
501
+ <li>Alberto Martínez</li>
502
+ <li>Valentín Vinagre</li>
503
+ <li>Ángel Rivas</li>
504
+ </ul>
505
+ </li>
489
506
  </ul>
490
507
  </div>
491
508
  <div class="section" id="maintainers">
492
- <h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
509
+ <h3><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h3>
493
510
  <p>This module is maintained by the OCA.</p>
494
511
  <a class="reference external image-reference" href="https://odoo-community.org">
495
512
  <img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
@@ -499,10 +516,11 @@ mission is to support the collaborative development of Odoo features and
499
516
  promote its widespread use.</p>
500
517
  <p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
501
518
  <p><a class="reference external image-reference" href="https://github.com/pedrobaeza"><img alt="pedrobaeza" src="https://github.com/pedrobaeza.png?size=40px" /></a></p>
502
- <p>This module is part of the <a class="reference external" href="https://github.com/OCA/commission/tree/16.0/account_commission">OCA/commission</a> project on GitHub.</p>
519
+ <p>This module is part of the <a class="reference external" href="https://github.com/OCA/commission/tree/17.0/account_commission">OCA/commission</a> project on GitHub.</p>
503
520
  <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
504
521
  </div>
505
522
  </div>
506
523
  </div>
524
+ </div>
507
525
  </body>
508
526
  </html>