diff --git a/stock_orderpoint_generator/README.rst b/stock_orderpoint_generator/README.rst index 084d4fc80..6d6951dc9 100644 --- a/stock_orderpoint_generator/README.rst +++ b/stock_orderpoint_generator/README.rst @@ -7,7 +7,7 @@ Order point generator !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:fcdb2559141140bd1a694cf0030735e0404fba6b98444419ada9d1459ba28d37 + !! source digest: sha256:7a12702fc7eacda2115540625b6160b3c78cf9b3a90a2f6f9b96f171a01f4f39 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png @@ -17,13 +17,13 @@ Order point generator :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github - :target: https://github.com/OCA/stock-logistics-warehouse/tree/13.0/stock_orderpoint_generator + :target: https://github.com/OCA/stock-logistics-warehouse/tree/14.0/stock_orderpoint_generator :alt: OCA/stock-logistics-warehouse .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-stock_orderpoint_generator + :target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-14-0/stock-logistics-warehouse-14-0-stock_orderpoint_generator :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png - :target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&target_branch=13.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&target_branch=14.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -83,7 +83,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 to smash it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -122,6 +122,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/stock-logistics-warehouse `_ project on GitHub. +This module is part of the `OCA/stock-logistics-warehouse `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/stock_orderpoint_generator/__manifest__.py b/stock_orderpoint_generator/__manifest__.py index f10ecce00..510dd2ad8 100644 --- a/stock_orderpoint_generator/__manifest__.py +++ b/stock_orderpoint_generator/__manifest__.py @@ -5,7 +5,7 @@ { "name": "Order point generator", "summary": "Mass configuration of stock order points", - "version": "13.0.2.0.0", + "version": "14.0.1.0.0", "author": "Camptocamp, " "Tecnativa, " "Odoo Community Association (OCA)", "category": "Warehouse", "license": "AGPL-3", diff --git a/stock_orderpoint_generator/models/orderpoint_template.py b/stock_orderpoint_generator/models/orderpoint_template.py index cc0f0d753..5c4425f5c 100644 --- a/stock_orderpoint_generator/models/orderpoint_template.py +++ b/stock_orderpoint_generator/models/orderpoint_template.py @@ -36,7 +36,7 @@ class OrderpointTemplate(models.Model): auto_min_qty = fields.Boolean( string="Auto Minimum", - help="Auto compute minimum quantity " "per product for a given a date range", + help="Auto compute minimum quantity per product for a given a date range", ) auto_min_date_start = fields.Datetime() auto_min_date_end = fields.Datetime() @@ -53,7 +53,7 @@ class OrderpointTemplate(models.Model): ) auto_max_qty = fields.Boolean( string="Auto Maximum", - help="Auto compute maximum quantity " "per product for a given a date range", + help="Auto compute maximum quantity per product for a given a date range", ) auto_max_qty_criteria = fields.Selection( selection=[ diff --git a/stock_orderpoint_generator/models/product.py b/stock_orderpoint_generator/models/product.py index 981654a0b..c9d7928ac 100644 --- a/stock_orderpoint_generator/models/product.py +++ b/stock_orderpoint_generator/models/product.py @@ -31,8 +31,7 @@ class ProductProduct(models.Model): def write(self, vals): result = super().write(vals) if vals.get("auto_orderpoint_template_ids"): - orderpoint_templates = self.mapped("auto_orderpoint_template_ids") - orderpoint_templates.create_orderpoints(self) + self.auto_orderpoint_template_ids.create_orderpoints(self) return result def _get_stock_move_domain(self, domain_move=False, from_date=False, to_date=False): diff --git a/stock_orderpoint_generator/security/ir.model.access.csv b/stock_orderpoint_generator/security/ir.model.access.csv index d6a748cc2..3ed5c7464 100644 --- a/stock_orderpoint_generator/security/ir.model.access.csv +++ b/stock_orderpoint_generator/security/ir.model.access.csv @@ -1,2 +1,3 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink access_stock_warehouse_orderpoint_template,stock.warehouse.manage,model_stock_warehouse_orderpoint_template,stock.group_stock_manager,1,1,1,1 +access_stock_warehouse_orderpoint_generator,stock.warehouse.manage.generator,model_stock_warehouse_orderpoint_generator,base.group_user,1,1,1,1 diff --git a/stock_orderpoint_generator/static/description/index.html b/stock_orderpoint_generator/static/description/index.html index 56bc09d47..4992116fe 100644 --- a/stock_orderpoint_generator/static/description/index.html +++ b/stock_orderpoint_generator/static/description/index.html @@ -367,9 +367,9 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:fcdb2559141140bd1a694cf0030735e0404fba6b98444419ada9d1459ba28d37 +!! source digest: sha256:7a12702fc7eacda2115540625b6160b3c78cf9b3a90a2f6f9b96f171a01f4f39 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/stock-logistics-warehouse Translate me on Weblate Try me on Runboat

+

Beta License: AGPL-3 OCA/stock-logistics-warehouse Translate me on Weblate Try me on Runboat

Add a wizard to configure reordering rules for multiple products in one go, and allow to automatically update reordering rules from rule templates.

Table of contents

@@ -429,7 +429,7 @@ feature on products that have Automatic Reordering Rules Templates.

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 to smash it by providing a detailed and welcomed -feedback.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -463,7 +463,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

-

This module is part of the OCA/stock-logistics-warehouse project on GitHub.

+

This module is part of the OCA/stock-logistics-warehouse project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

diff --git a/stock_orderpoint_generator/views/orderpoint_template_views.xml b/stock_orderpoint_generator/views/orderpoint_template_views.xml index fee18bc47..ec9b38c65 100644 --- a/stock_orderpoint_generator/views/orderpoint_template_views.xml +++ b/stock_orderpoint_generator/views/orderpoint_template_views.xml @@ -5,17 +5,17 @@ stock.warehouse.orderpoint.template primary - + @@ -104,11 +104,6 @@ -