Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIG][16.0] product_abc_classification #1192

Merged
merged 21 commits into from
Sep 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
959040b
[ADD] product_abc_classification
MiquelRForgeFlow May 28, 2020
9b4a0a4
[IMP] product_abc_classification: Makes the classification computatio…
lmarion-source Jan 26, 2021
8d6e150
[IMP] product_abc_classification: Add sale_stock classification profile
lmignon Jan 26, 2021
a90db80
[IMP] product_abc_classification_sale_stock: Store collected data use…
lmignon Feb 4, 2021
cad78fe
[IMP] product_abc_classification: Take into a account the expected di…
lmignon Feb 15, 2021
3b67534
[FIX] product_abc_classification_base: Fix bug in views
lmignon Mar 11, 2021
b18269c
[IMP] Add flag to automatically set manual value of level_id to compu…
lmarion-source Jan 25, 2022
4870379
[FIX] Trigger the auto compute if flag changes but not the computed_v…
lmarion-source Jan 28, 2022
02ca4dc
[FIX] Set flag to false if manual = computed
lmarion-source Jan 31, 2022
0a01fce
[FIX] Propagate recompute level info to all computed values (abc stor…
lmarion-source Feb 7, 2022
99edc77
[IMP] product_abc_classification_base: pre-commit stuff
rousseldenis Nov 10, 2022
6de35e5
[MIG][16.0] product_abc_classification_base
rousseldenis Nov 10, 2022
26040ec
[IMP] product_abc_classification_base: Remove web_m2x_options dependency
rousseldenis Nov 10, 2022
ae7e0a5
[IMP] product_abc_classification/base: Restore module name
rousseldenis Nov 10, 2022
67d62bd
[IMP] product_abc_classification: add product smart button in profile
MiquelRForgeFlow Feb 2, 2022
217adcc
[FIX] product_abc_classification: Remove not working context attributes
rousseldenis Nov 15, 2022
b636e38
[FIX] product_abc_classification: Use the good _for_xml_id() and add …
rousseldenis Nov 17, 2022
91a0fcb
[FIX] product_abc_classification: Adapt write() for a multi recordset
rousseldenis Nov 22, 2022
8cfa5f2
[IMP] product_abc_classification: Improve profile view + help
rousseldenis Feb 15, 2023
fdb1105
[FIX] product_abc_classification: Translated terms into views
lmignon Apr 5, 2023
70beefc
[FIX] product_abc_classification: Fix tests
rousseldenis Sep 18, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading