diff --git a/sales_team_security_sale/README.rst b/sales_team_security_sale/README.rst index 70717e596ae..dbb5f2e1ef7 100644 --- a/sales_team_security_sale/README.rst +++ b/sales_team_security_sale/README.rst @@ -14,13 +14,13 @@ Sale documents permissions by teams :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github - :target: https://github.com/OCA/sale-workflow/tree/15.0/sales_team_security_sale + :target: https://github.com/OCA/sale-workflow/tree/16.0/sales_team_security_sale :alt: OCA/sale-workflow .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sales_team_security_sale + :target: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sales_team_security_sale :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/167/15.0 + :target: https://runbot.odoo-community.org/runbot/167/16.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -51,7 +51,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -79,6 +79,10 @@ Contributors * Iván Todorovich +* `Pesol `__: + + * Jonathan Oscategui Taza + Maintainers ~~~~~~~~~~~ @@ -100,6 +104,6 @@ Current `maintainer `__: |maintainer-ivantodorovich| -This module is part of the `OCA/sale-workflow `_ project on GitHub. +This module is part of the `OCA/sale-workflow `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/sales_team_security_sale/__manifest__.py b/sales_team_security_sale/__manifest__.py index 383dc7624bd..8f2edc4bd3c 100644 --- a/sales_team_security_sale/__manifest__.py +++ b/sales_team_security_sale/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Sale documents permissions by teams", "summary": "Integrates sales_team_security with sale", - "version": "15.0.1.0.0", + "version": "16.0.1.0.0", "category": "Sales", "website": "https://github.com/OCA/sale-workflow", "author": "Tecnativa, Iván Todorovich, Odoo Community Association (OCA)", diff --git a/sales_team_security_sale/migrations/14.0.2.0.0/pre-migration.py b/sales_team_security_sale/migrations/14.0.2.0.0/pre-migration.py deleted file mode 100644 index 13b99a59531..00000000000 --- a/sales_team_security_sale/migrations/14.0.2.0.0/pre-migration.py +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright 2021 Tecnativa - Víctor Martínez -# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html -from odoo import SUPERUSER_ID, api - - -def migrate(cr, version): - """Adjust record rules according new definition.""" - if not version: - return - env = api.Environment(cr, SUPERUSER_ID, {}) - record = env.ref("sales_team_security_sale.sale_order_team_rule", False) - if record: - record.domain_force = ( - "['|', '|', ('user_id','=',user.id), ('user_id','=',False), '|', " - "('team_id', '=', user.sale_team_id.id), ('team_id', '=', False)]" - ) - record = env.ref("sales_team_security_sale.sale_order_report_team_rule", False) - if record: - record.domain_force = ( - "['|', '|', ('user_id','=',user.id), ('user_id','=',False), '|', " - "('team_id', '=', user.sale_team_id.id), ('team_id', '=', False)]" - ) - record = env.ref("sales_team_security_sale.sale_order_line_team_rule", False) - if record: - record.domain_force = ( - "['|', '|', ('salesman_id','=',user.id), ('salesman_id','=',False), '|', " - "('order_id.team_id', '=', user.sale_team_id.id), " - "('order_id.team_id', '=', False)]" - ) diff --git a/sales_team_security_sale/readme/CONTRIBUTORS.rst b/sales_team_security_sale/readme/CONTRIBUTORS.rst index 85e8bff3eac..b2e58bb4429 100644 --- a/sales_team_security_sale/readme/CONTRIBUTORS.rst +++ b/sales_team_security_sale/readme/CONTRIBUTORS.rst @@ -9,3 +9,7 @@ * Ramón Bajona * Iván Todorovich + +* `Pesol `__: + + * Jonathan Oscategui Taza diff --git a/sales_team_security_sale/static/description/index.html b/sales_team_security_sale/static/description/index.html index 670e48f9986..6a9568b50d9 100644 --- a/sales_team_security_sale/static/description/index.html +++ b/sales_team_security_sale/static/description/index.html @@ -3,7 +3,7 @@ - + Sale documents permissions by teams