odoo-addon-sale-commission-product-criteria-domain 16.0.1.0.0.3__py3-none-any.whl → 16.0.1.0.2__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 @@ Sale Commission Product Criteria Domain
7
7
  !! This file is generated by oca-gen-addon-readme !!
8
8
  !! changes will be overwritten. !!
9
9
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
- !! source digest: sha256:163032362b1420f26a24755c50985afa774a2d1243a187a5086948a14e65e74e
10
+ !! source digest: sha256:986f91d8b810eba0724dcd5163eb6cdeed3b1becb95d3329003e29d5c14d6593
11
11
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
12
 
13
13
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -1,9 +1,9 @@
1
- # © 2023 ooops404
1
+ # Copyright 2023 ooops404
2
2
  # Copyright 2023 Simone Rubino - Aion Tech
3
3
  # License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0.html
4
4
  {
5
5
  "name": "Sale Commission Product Criteria Domain",
6
- "version": "16.0.1.0.0",
6
+ "version": "16.0.1.0.2",
7
7
  "author": "Ilyas," "Ooops404," "Odoo Community Association (OCA)",
8
8
  "contributors": ["Ilyas"],
9
9
  "maintainers": ["ilyasProgrammer"],
@@ -1,4 +1,4 @@
1
- # © 2023 ooops404
1
+ # Copyright 2023 ooops404
2
2
  # License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0.html
3
3
  from odoo import api, models
4
4
 
@@ -1,4 +1,4 @@
1
- # © 2023 ooops404
1
+ # Copyright 2023 ooops404
2
2
  # Copyright 2023 Simone Rubino - Aion Tech
3
3
  # License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0.html
4
4
  from odoo import _, api, exceptions, fields, models
@@ -1,4 +1,4 @@
1
- # © 2023 ooops404
1
+ # Copyright 2023 ooops404
2
2
  # Copyright 2023 Simone Rubino - Aion Tech
3
3
  # License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0.html
4
4
  from odoo import _, api, exceptions, fields, models
@@ -64,6 +64,14 @@ class ResPartner(models.Model):
64
64
  {"commission_item_agent_ids": [(0, 0, line) for line in to_create]}
65
65
  )
66
66
 
67
+ @api.onchange("commission_id")
68
+ def _onchange_commission_id(self):
69
+ self.update(
70
+ {
71
+ "allowed_commission_group_ids": [(5, 0, 0)],
72
+ }
73
+ )
74
+
67
75
  def write(self, vals):
68
76
  res = super().write(vals)
69
77
  for partner in self:
@@ -72,4 +80,10 @@ class ResPartner(models.Model):
72
80
  and partner.allowed_commission_group_ids
73
81
  ):
74
82
  partner.allowed_commission_group_ids = False
83
+ if "agent" in vals.keys() and not vals["agent"]:
84
+ # not agent anymore - remove related cia's
85
+ cia_records = self.env["commission.item.agent"].search(
86
+ [("agent_id", "=", partner.id)]
87
+ )
88
+ cia_records.unlink()
75
89
  return res
@@ -1,4 +1,4 @@
1
- # © 2023 ooops404
1
+ # Copyright 2023 ooops404
2
2
  # Copyright 2023 Simone Rubino - Aion Tech
3
3
  # License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0.html
4
4
  from odoo import models
@@ -1,4 +1,4 @@
1
- # © 2023 ooops404
1
+ # Copyright 2023 ooops404
2
2
  # Copyright 2023 Simone Rubino - Aion Tech
3
3
  # License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0.html
4
4
  from odoo import api, models
@@ -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:163032362b1420f26a24755c50985afa774a2d1243a187a5086948a14e65e74e
370
+ !! source digest: sha256:986f91d8b810eba0724dcd5163eb6cdeed3b1becb95d3329003e29d5c14d6593
370
371
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
371
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/sale_commission_product_criteria_domain"><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-sale_commission_product_criteria_domain"><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
373
  <p>This module allows to limit applied commission items for specific groups.</p>
@@ -438,7 +439,9 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
438
439
  <div class="section" id="maintainers">
439
440
  <h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
440
441
  <p>This module is maintained by the OCA.</p>
441
- <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
442
+ <a class="reference external image-reference" href="https://odoo-community.org">
443
+ <img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
444
+ </a>
442
445
  <p>OCA, or the Odoo Community Association, is a nonprofit organization whose
443
446
  mission is to support the collaborative development of Odoo features and
444
447
  promote its widespread use.</p>
@@ -1,12 +1,11 @@
1
1
  Metadata-Version: 2.1
2
- Name: odoo-addon-sale-commission-product-criteria-domain
3
- Version: 16.0.1.0.0.3
2
+ Name: odoo-addon-sale_commission_product_criteria_domain
3
+ Version: 16.0.1.0.2
4
4
  Summary: Sale Commission Product Criteria Domain
5
5
  Home-page: https://github.com/OCA/commission
6
6
  Author: Ilyas,Ooops404,Odoo Community Association (OCA)
7
7
  Author-email: support@odoo-community.org
8
8
  License: AGPL-3
9
- Platform: UNKNOWN
10
9
  Classifier: Programming Language :: Python
11
10
  Classifier: Framework :: Odoo
12
11
  Classifier: Framework :: Odoo :: 16.0
@@ -24,7 +23,7 @@ Sale Commission Product Criteria Domain
24
23
  !! This file is generated by oca-gen-addon-readme !!
25
24
  !! changes will be overwritten. !!
26
25
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
27
- !! source digest: sha256:163032362b1420f26a24755c50985afa774a2d1243a187a5086948a14e65e74e
26
+ !! source digest: sha256:986f91d8b810eba0724dcd5163eb6cdeed3b1becb95d3329003e29d5c14d6593
28
27
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
29
28
 
30
29
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -139,5 +138,3 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
139
138
  This module is part of the `OCA/commission <https://github.com/OCA/commission/tree/16.0/sale_commission_product_criteria_domain>`_ project on GitHub.
140
139
 
141
140
  You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
142
-
143
-
@@ -1,26 +1,26 @@
1
- odoo/addons/sale_commission_product_criteria_domain/README.rst,sha256=GHyoOwEKuZrvDR-C4vq_UGt6R-1fvuIzMMGZnNIB_rc,4815
1
+ odoo/addons/sale_commission_product_criteria_domain/README.rst,sha256=ozvfDjXYIcjnjoaM9THbtKZV8yYs99Y8Plrq8q96Md8,4815
2
2
  odoo/addons/sale_commission_product_criteria_domain/__init__.py,sha256=X9EJGOE2GtZbS0G82PtSXmWSZ_R8jEM0rlJTDliQjp4,21
3
- odoo/addons/sale_commission_product_criteria_domain/__manifest__.py,sha256=DBmhm8d3nx_5kxqIvHRKT-41CLmUj_xJjZ9WQpKBygQ,756
3
+ odoo/addons/sale_commission_product_criteria_domain/__manifest__.py,sha256=xWML_qpnH_Tcx_du_-vzuC15kNZ3gUwr-SaJvH0IyeI,763
4
4
  odoo/addons/sale_commission_product_criteria_domain/demo/demo_data.xml,sha256=Y7mgP_NPlkUzZKV6BIdlxtEQH1aq7vt2OJ7MGMWtp-Q,5541
5
5
  odoo/addons/sale_commission_product_criteria_domain/i18n/it.po,sha256=WNPmZTOBV7QRXv575PAxh2-JdY4xpBkq9gIwlFceB6w,14614
6
6
  odoo/addons/sale_commission_product_criteria_domain/i18n/sale_commission_product_criteria_domain.pot,sha256=lg-INIxe1wuWZIlQZP1Zae_fpZfhujRV9-aIU2x2EEo,11488
7
7
  odoo/addons/sale_commission_product_criteria_domain/models/__init__.py,sha256=GL9H4x5YPGZ2l_HamCvC4X7TzLx2oUAFQ0BF51YRs3Q,196
8
- odoo/addons/sale_commission_product_criteria_domain/models/account_invoice_line_agent.py,sha256=pJMiUbTpUmK4kCNYmC715jxzvyGos3XYJTOBsXTdiP4,966
9
- odoo/addons/sale_commission_product_criteria_domain/models/commission.py,sha256=3sjU9mqTI7JL_eBNeJwTEqwRkqdrhBylq-UyP2h9bFs,3118
10
- odoo/addons/sale_commission_product_criteria_domain/models/commission_group.py,sha256=A5TJi3NvQY5inbEVSHxlPQMcKvnZK37dbYIQ1bn9jZY,2380
11
- odoo/addons/sale_commission_product_criteria_domain/models/partner.py,sha256=9p4dNQMFYAyuGsd2uva8gUNWLs53uPJUF7XWqiMlanc,2773
12
- odoo/addons/sale_commission_product_criteria_domain/models/sale_commission_line_mixin.py,sha256=Wm0L02GDKczQbv1YWqSSeqJDdj12sT3SwlDjyVrJY8A,2306
13
- odoo/addons/sale_commission_product_criteria_domain/models/sale_order_line_agent.py,sha256=7oc3pleAuXwfZ_klyphNF7FRgMPH3JgNEQsCawWTteA,988
8
+ odoo/addons/sale_commission_product_criteria_domain/models/account_invoice_line_agent.py,sha256=sGvFIV4r8OdJu-vy6o_YpMM1fb-xU3YlqUmuqGhrOLs,973
9
+ odoo/addons/sale_commission_product_criteria_domain/models/commission.py,sha256=g9mdRGnTrqq32Lym3e5F3shvstTDjrRdelHhV4d0e9c,3125
10
+ odoo/addons/sale_commission_product_criteria_domain/models/commission_group.py,sha256=zV3N_6RaI4I3BFp4rt2Nhl2vJSLMLoaVIFAm6a43G-E,2387
11
+ odoo/addons/sale_commission_product_criteria_domain/models/partner.py,sha256=_xMZYcqAZb0H2zylniaHE8smkkLDXSh9o3ZrcFZNDwc,3267
12
+ odoo/addons/sale_commission_product_criteria_domain/models/sale_commission_line_mixin.py,sha256=JfmxcwkYq-zhRgjiatNgZ0i6e-_QAcq5Kk8BMyjsbo8,2313
13
+ odoo/addons/sale_commission_product_criteria_domain/models/sale_order_line_agent.py,sha256=YJQfTxz6vewckhj6Scv4mIq8wbEpdF9jTIxJgMoJKjY,995
14
14
  odoo/addons/sale_commission_product_criteria_domain/readme/CONTRIBUTORS.rst,sha256=QY6T07gmiPvozyM8CAFJN6IQBD0SFtwghoDU5fLIIjA,168
15
15
  odoo/addons/sale_commission_product_criteria_domain/readme/DESCRIPTION.rst,sha256=qsRXR_UvuOjbDPqTPItEm1gYwvJ0DvDbBCSG7R-zAXk,411
16
16
  odoo/addons/sale_commission_product_criteria_domain/readme/USAGE.rst,sha256=CnL3oaHfNgAOItbFzGR25ZLDv3KVG-qdqQq7QHnHTD4,1086
17
17
  odoo/addons/sale_commission_product_criteria_domain/security/ir.model.access.csv,sha256=-vtY9FSb3jQBI1HkDNVD0ej2Oy4AMkwCMnExdDkEXII,385
18
18
  odoo/addons/sale_commission_product_criteria_domain/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
19
- odoo/addons/sale_commission_product_criteria_domain/static/description/index.html,sha256=9mohxqpj7vaRSoa9tGyXMeQQrwNQtr2LrzA25geVTmo,14590
19
+ odoo/addons/sale_commission_product_criteria_domain/static/description/index.html,sha256=to-f6_oX2227ClmtOUyrti29_Zfk0cVvpvArUmP7WFo,14673
20
20
  odoo/addons/sale_commission_product_criteria_domain/tests/__init__.py,sha256=K_GPhvCh3bp_MHaPKdXSc0Wn5qBDFBUiMXKD5pQbc0E,59
21
21
  odoo/addons/sale_commission_product_criteria_domain/tests/test_sale_commission_product_criteria_domain.py,sha256=hnsSbveqMGByUjs3i4IoGxHARWF4lYq5zODvdqSY7Gw,14967
22
22
  odoo/addons/sale_commission_product_criteria_domain/views/views.xml,sha256=tidsdWjUfVy2pgMmmUFUzD1NrQFoKHC3B60uO0GHYw8,9168
23
- odoo_addon_sale_commission_product_criteria_domain-16.0.1.0.0.3.dist-info/METADATA,sha256=MlNLBl8THs3UqyabGvc4JPf9O1rXkyOGWDbObWXqrYU,5470
24
- odoo_addon_sale_commission_product_criteria_domain-16.0.1.0.0.3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
25
- odoo_addon_sale_commission_product_criteria_domain-16.0.1.0.0.3.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
26
- odoo_addon_sale_commission_product_criteria_domain-16.0.1.0.0.3.dist-info/RECORD,,
23
+ odoo_addon_sale_commission_product_criteria_domain-16.0.1.0.2.dist-info/METADATA,sha256=b3bXMlwFsYAAmStkwGLlbw48ZKhF439GRyp8HiNspdE,5448
24
+ odoo_addon_sale_commission_product_criteria_domain-16.0.1.0.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
25
+ odoo_addon_sale_commission_product_criteria_domain-16.0.1.0.2.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
26
+ odoo_addon_sale_commission_product_criteria_domain-16.0.1.0.2.dist-info/RECORD,,