From 8991fcb3cfe77b93abaf2a5318738281895601c1 Mon Sep 17 00:00:00 2001 From: Github GRAP Bot Date: Thu, 5 Dec 2024 11:01:55 +0000 Subject: [PATCH] [BOT] post-merge updates --- README.md | 3 + create_recursive_abstract/README.rst | 80 ++++++++++++++++++++ create_recursive_pos_category/README.rst | 35 +++++---- create_recursive_product_category/README.rst | 36 +++++---- 4 files changed, 125 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index 6116008b..ad7733f3 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,9 @@ Available addons ---------------- addon | version | maintainers | summary --- | --- | --- | --- +[create_recursive_abstract](create_recursive_abstract/) | 16.0.1.0.0 | | Create recursively parents item. +[create_recursive_pos_category](create_recursive_pos_category/) | 16.0.1.0.0 | | Extra GRAP Tools to import product data for Point of sale module +[create_recursive_product_category](create_recursive_product_category/) | 16.0.1.0.0 | | Create recursively parents item for the Product Categories model. [web_select_only_child_company](web_select_only_child_company/) | 16.0.1.0.0 | [![legalsylvain](https://github.com/legalsylvain.png?size=30px)](https://github.com/legalsylvain) | When selecting a company, automatically select all the child companies. [//]: # (end addons) diff --git a/create_recursive_abstract/README.rst b/create_recursive_abstract/README.rst index e69de29b..1165f5a9 100644 --- a/create_recursive_abstract/README.rst +++ b/create_recursive_abstract/README.rst @@ -0,0 +1,80 @@ +======================== +Recursive creation tools +======================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:0a570ece5ef722146c6ec61f48654bbea391d98c8f90c2b9597a45bd561c0593 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-grap%2Fgrap--odoo--incubator-lightgray.png?logo=github + :target: https://github.com/grap/grap-odoo-incubator/tree/16.0/create_recursive_abstract + :alt: grap/grap-odoo-incubator + +|badge1| |badge2| |badge3| + +This module is a technical tools to create recursively parents, +when creating items, if the name contains one or many **'/'** chars. + +See implementation in the following modules: + +- ``create_recursive_product_category`` +- ``create_recursive_pos_category`` + +**Table of contents** + +.. contents:: + :local: + +Development +=========== + +This module define a new mixin ``create.recursive.mixin`` that can be used +on any model that contains the following code. + +.. code:: python + + _parent_name = "parent_id" + _parent_store = True + _rec_name = "complete_name" + +(See example in the ``product.category`` model in the odoo ``product`` module) + +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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* GRAP + +Contributors +~~~~~~~~~~~~ + +* Sylvain LE GAL + +Maintainers +~~~~~~~~~~~ + +This module is part of the `grap/grap-odoo-incubator `_ project on GitHub. + +You are welcome to contribute. diff --git a/create_recursive_pos_category/README.rst b/create_recursive_pos_category/README.rst index d1df4681..c707cf41 100644 --- a/create_recursive_pos_category/README.rst +++ b/create_recursive_pos_category/README.rst @@ -1,13 +1,13 @@ -==================================================================== -GRAP - Custom Import Product Supplierinfo Quantity Multiplier Module -==================================================================== +=================================================== +GRAP - Custom Product Import - Point Of Sale Module +=================================================== .. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:9b8df078c1fb893b68650c2ee64e375d840edd6d1f8f7bfdb0f1a4da37012215 + !! source digest: sha256:4b6872c8b794f024b5e875c807221c54b45663942daa21fe31dc117977025d27 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png @@ -16,17 +16,26 @@ GRAP - Custom Import Product Supplierinfo Quantity Multiplier Module .. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 -.. |badge3| image:: https://img.shields.io/badge/github-grap%2Fgrap--odoo--import-lightgray.png?logo=github - :target: https://github.com/grap/grap-odoo-import/tree/16.0/grap_custom_import_product_supplierinfo_qty_multiplier - :alt: grap/grap-odoo-import +.. |badge3| image:: https://img.shields.io/badge/github-grap%2Fgrap--odoo--incubator-lightgray.png?logo=github + :target: https://github.com/grap/grap-odoo-incubator/tree/16.0/create_recursive_pos_category + :alt: grap/grap-odoo-incubator |badge1| |badge2| |badge3| -This module improve the "import" features provided by Odoo. +Implement the recursive creation of parent for the model PoS Categories. +(``pos.category``). -* ``product.product``: +In the product view, if a user enter in the PoS category field the name +**'Chairs / Little'**, it will not create a category with such name. +Instead, it will look for a category named **'Chairs'** (and create it if it +doesn't exists), then create a new category named **'Little'** with the category +**'Chairs'** as parent. - * Allow to recover ``multiplier_qty`` field in the supplier info level. +If a user create or update the name of a PoS category, any **'/'** char will +be replaced by the char **'-'**. + +At the installation, all **'/'** in the names of the PoS categories +will be replaced by **'-'**. **Table of contents** @@ -36,10 +45,10 @@ This module improve the "import" features provided by Odoo. Bug Tracker =========== -Bugs are tracked on `GitHub Issues `_. +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. @@ -59,6 +68,6 @@ Contributors Maintainers ~~~~~~~~~~~ -This module is part of the `grap/grap-odoo-import `_ project on GitHub. +This module is part of the `grap/grap-odoo-incubator `_ project on GitHub. You are welcome to contribute. diff --git a/create_recursive_product_category/README.rst b/create_recursive_product_category/README.rst index 403eb01a..e6fa2212 100644 --- a/create_recursive_product_category/README.rst +++ b/create_recursive_product_category/README.rst @@ -1,13 +1,13 @@ -=================================== -GRAP - Custom Import Product Module -=================================== +======================================= +Product Categories - Recursive creation +======================================= .. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:f1edf2e49664874548baa2a31b5a7f89fc363cfed20297f007038186bbc81142 + !! source digest: sha256:1922886058ccb1304aff77d9a4ac3a677b33576ad66f783bdcbe2587ef6dc9b6 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png @@ -16,21 +16,25 @@ GRAP - Custom Import Product Module .. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 -.. |badge3| image:: https://img.shields.io/badge/github-grap%2Fgrap--odoo--import-lightgray.png?logo=github - :target: https://github.com/grap/grap-odoo-import/tree/16.0/grap_custom_import_product - :alt: grap/grap-odoo-import +.. |badge3| image:: https://img.shields.io/badge/github-grap%2Fgrap--odoo--incubator-lightgray.png?logo=github + :target: https://github.com/grap/grap-odoo-incubator/tree/16.0/create_recursive_product_category + :alt: grap/grap-odoo-incubator |badge1| |badge2| |badge3| -This module improve the "import" features provided by Odoo. +Implement the recursive creation of parent for the model Product Categories. +(``product.category``). -It provides generic tools for that purpose, and improve imports for some models. +In the product view, if a user enter in the category field the name +**'All / New Category'**, it will not create a category with such name. +Instead, it will look for a category named **'All'** (and create it if it +doesn't exists), then create a new category named **'New Category'** with the category **'All'** as parent. -* ``product.product``: +If a user create or update the name of a category, any **'/'** char will +be replaced by the char **'-'**. - * Prevent to create duplicates regarding ``name`` and ``barcode`` fields. - - * Allow to create main ``seller_ids``, based on supplier information fields. +At the installation, all **'/'** in the names of the categories +will be replaced by **'-'**. **Table of contents** @@ -40,10 +44,10 @@ It provides generic tools for that purpose, and improve imports for some models. Bug Tracker =========== -Bugs are tracked on `GitHub Issues `_. +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. @@ -63,6 +67,6 @@ Contributors Maintainers ~~~~~~~~~~~ -This module is part of the `grap/grap-odoo-import `_ project on GitHub. +This module is part of the `grap/grap-odoo-incubator `_ project on GitHub. You are welcome to contribute.