Skip to content

Commit

Permalink
[BOT] post-merge updates
Browse files Browse the repository at this point in the history
  • Loading branch information
github-grap-bot committed Dec 5, 2024
1 parent 579e280 commit 8991fcb
Show file tree
Hide file tree
Showing 4 changed files with 125 additions and 29 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
80 changes: 80 additions & 0 deletions create_recursive_abstract/README.rst
Original file line number Diff line number Diff line change
@@ -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 <https://github.com/grap/grap-odoo-incubator/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 <https://github.com/grap/grap-odoo-incubator/issues/new?body=module:%20create_recursive_abstract%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
~~~~~~~

* GRAP

Contributors
~~~~~~~~~~~~

* Sylvain LE GAL <https://twitter.com/legalsylvain>

Maintainers
~~~~~~~~~~~

This module is part of the `grap/grap-odoo-incubator <https://github.com/grap/grap-odoo-incubator/tree/16.0/create_recursive_abstract>`_ project on GitHub.

You are welcome to contribute.
35 changes: 22 additions & 13 deletions create_recursive_pos_category/README.rst
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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**

Expand All @@ -36,10 +45,10 @@ This module improve the "import" features provided by Odoo.
Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/grap/grap-odoo-import/issues>`_.
Bugs are tracked on `GitHub Issues <https://github.com/grap/grap-odoo-incubator/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 <https://github.com/grap/grap-odoo-import/issues/new?body=module:%20grap_custom_import_product_supplierinfo_qty_multiplier%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/grap/grap-odoo-incubator/issues/new?body=module:%20create_recursive_pos_category%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Expand All @@ -59,6 +68,6 @@ Contributors
Maintainers
~~~~~~~~~~~

This module is part of the `grap/grap-odoo-import <https://github.com/grap/grap-odoo-import/tree/16.0/grap_custom_import_product_supplierinfo_qty_multiplier>`_ project on GitHub.
This module is part of the `grap/grap-odoo-incubator <https://github.com/grap/grap-odoo-incubator/tree/16.0/create_recursive_pos_category>`_ project on GitHub.

You are welcome to contribute.
36 changes: 20 additions & 16 deletions create_recursive_product_category/README.rst
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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**

Expand All @@ -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 <https://github.com/grap/grap-odoo-import/issues>`_.
Bugs are tracked on `GitHub Issues <https://github.com/grap/grap-odoo-incubator/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 <https://github.com/grap/grap-odoo-import/issues/new?body=module:%20grap_custom_import_product%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/grap/grap-odoo-incubator/issues/new?body=module:%20create_recursive_product_category%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Expand All @@ -63,6 +67,6 @@ Contributors
Maintainers
~~~~~~~~~~~

This module is part of the `grap/grap-odoo-import <https://github.com/grap/grap-odoo-import/tree/16.0/grap_custom_import_product>`_ project on GitHub.
This module is part of the `grap/grap-odoo-incubator <https://github.com/grap/grap-odoo-incubator/tree/16.0/create_recursive_product_category>`_ project on GitHub.

You are welcome to contribute.

0 comments on commit 8991fcb

Please sign in to comment.