Skip to content

Commit

Permalink
Merge PR #1192 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by rousseldenis
  • Loading branch information
OCA-git-bot committed Sep 18, 2023
2 parents f563a88 + 648cf39 commit ed2421a
Show file tree
Hide file tree
Showing 28 changed files with 2,584 additions and 0 deletions.
102 changes: 102 additions & 0 deletions product_abc_classification/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
==========================
Product Abc Classification
==========================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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-OCA%2Fproduct--attribute-lightgray.png?logo=github
:target: https://github.com/OCA/product-attribute/tree/16.0/product_abc_classification_base
:alt: OCA/product-attribute
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_abc_classification_base
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/135/16.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|

This modules provides the bases to build ABC analysis (or ABC classification)
addons. These classification are used by inventory management teams to help
identify the most important products in their portfolio and ensure they
prioritize managing them above those less valuable.

Managers will create a profile with several levels (percentages) and then the
profiled products will automatically get a corresponding level using the
ABC classification.

The addon *product_abc_classification_sale_stock* defines a computation profile
based on the number of sale order line delivered by product.

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module, you need to:

#. Go to Sales or Inventory menu, then to Configuration/Products/ABC Classification Profile
and create a profile with levels, knowing that the sum of all levels in the profile
should sum 100 and all the levels should be different.

#. Later you should go to product categories or product variants, and assign them a profile.
Then the cron classification will proceed to assign to these products one of the profile's levels.

NOTE: If you profile (or unprofile) a product category, then all its
child categories and products will be profiled (or unprofiled).

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/product-attribute/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 <https://github.com/OCA/product-attribute/issues/new?body=module:%20product_abc_classification_base%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
~~~~~~~

* ACSONE SA/NV
* ForgeFlow

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

* Miquel Raïch <miquel.raich@eficent.com>
* Lindsay Marion <lindsay.marion@acsone.eu>
* Laurent Mignon <laurent.mignon@acsone.eu>
* Denis Roussel <denis.roussel@acsone.eu>

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

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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/product-attribute <https://github.com/OCA/product-attribute/tree/16.0/product_abc_classification_base>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions product_abc_classification/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
22 changes: 22 additions & 0 deletions product_abc_classification/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2020 ForgeFlow
# Copyright 2021 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Product Abc Classification",
"summary": """
ABC classification for sales and warehouse management""",
"version": "16.0.1.0.0",
"license": "AGPL-3",
"author": "ACSONE SA/NV, ForgeFlow, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/product-attribute",
"depends": ["product", "stock"],
"data": [
"views/abc_classification_product_level.xml",
"views/abc_classification_profile.xml",
"views/product_template.xml",
"views/product_product.xml",
"security/ir.model.access.csv",
"data/ir_cron.xml",
],
}
14 changes: 14 additions & 0 deletions product_abc_classification/data/ir_cron.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="ir_cron_product_abc_classification" model="ir.cron">
<field name="name">Perform the product ABC Classification</field>
<field name="user_id" ref="base.user_root" />
<field name="interval_number">1</field>
<field name="interval_type">months</field>
<field name="numbercall">-1</field>
<field name="doall" eval="False" />
<field name="model_id" ref="model_abc_classification_profile" />
<field name="code">model._cron_compute_abc_classification()</field>
<field name="state">code</field>
</record>
</odoo>
Loading

0 comments on commit ed2421a

Please sign in to comment.