-
-
Notifications
You must be signed in to change notification settings - Fork 703
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by simahawk
- Loading branch information
Showing
33 changed files
with
1,405 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
=================== | ||
Product Stock State | ||
=================== | ||
|
||
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! 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/12.0/product_stock_state | ||
: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-12-0/product-attribute-12-0-product_stock_state | ||
: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/12.0 | ||
:alt: Try me on Runbot | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This module adds a "stock state" field on the product in order to inform the user of its general stock state at a glance. | ||
|
||
The state value can be : | ||
|
||
* In Stock | ||
* In Limited Stock (if qty available is under a threshold) | ||
* Resupplying (if qty forcasted is > 0) | ||
* Out of Stock (otherwise) | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Configuration | ||
============= | ||
|
||
You can configure thresholds : | ||
|
||
* Globally, for a company, in the Sale Settings. It will be used for all | ||
the products of the company. | ||
|
||
* On product category form. It will be used for all the products of this | ||
category, or of the child categories. (User should be part of the new group | ||
'Stock State Threshold by Category'.) | ||
|
||
* On product template form, for a specific product. (User should be part of | ||
the new group 'Stock State Threshold by Product'.) | ||
|
||
Usage | ||
===== | ||
|
||
Open product tree view and observe the stock state | ||
|
||
.. image:: https://raw.githubusercontent.com/product_stock_state/static/description/product_product_tree.png | ||
:width: 800 px | ||
|
||
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_stock_state%0Aversion:%2012.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 | ||
~~~~~~~ | ||
|
||
* Akretion | ||
* GRAP | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* Sebastien Beau <sebastien.beau@akretion.com> | ||
* Sylvain LE GAL <https://www.twitter.com/legalsylvain> | ||
* Kevin Khao <kevin.khao@akretion.com> | ||
|
||
Other credits | ||
~~~~~~~~~~~~~ | ||
|
||
The development of this module has been financially supported by: | ||
|
||
* Akretion R&D | ||
* Adaptoo | ||
* GRAP, Groupement Régional Alimentaire de Proximité <http://www.grap.coop> | ||
|
||
|
||
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. | ||
|
||
.. |maintainer-sebastienbeau| image:: https://github.com/sebastienbeau.png?size=40px | ||
:target: https://github.com/sebastienbeau | ||
:alt: sebastienbeau | ||
.. |maintainer-legalsylvain| image:: https://github.com/legalsylvain.png?size=40px | ||
:target: https://github.com/legalsylvain | ||
:alt: legalsylvain | ||
.. |maintainer-kevinkhao| image:: https://github.com/kevinkhao.png?size=40px | ||
:target: https://github.com/kevinkhao | ||
:alt: kevinkhao | ||
|
||
Current `maintainers <https://odoo-community.org/page/maintainer-role>`__: | ||
|
||
|maintainer-sebastienbeau| |maintainer-legalsylvain| |maintainer-kevinkhao| | ||
|
||
This module is part of the `OCA/product-attribute <https://github.com/OCA/product-attribute/tree/12.0/product_stock_state>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Copyright 2017 Akretion (http://www.akretion.com). | ||
# Copyright 2017-Today GRAP (http://www.grap.coop). | ||
# @author Sébastien BEAU <sebastien.beau@akretion.com> | ||
# @author Sylvain LE GAL <https://twitter.com/legalsylvain> | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
|
||
{ | ||
"name": "Product Stock State", | ||
"summary": "Compute the state of a product's stock" | ||
"the stock level and sale_ok field", | ||
"version": "13.0.1.0.0", | ||
"website": "https://github.com/oca/product-attribute", | ||
"author": " Akretion, GRAP, Odoo Community Association (OCA)", | ||
"license": "AGPL-3", | ||
"application": False, | ||
"installable": True, | ||
"depends": ["sale_stock"], | ||
"data": [ | ||
"security/res_groups.xml", | ||
"views/product_template_view.xml", | ||
"views/product_product_view.xml", | ||
"views/product_category_view.xml", | ||
"views/res_config_settings_view.xml", | ||
"views/res_company_view.xml", | ||
"data/data.xml", | ||
], | ||
"demo": [ | ||
"demo/res_groups.xml", | ||
"demo/product_category.xml", | ||
"demo/product_product.xml", | ||
"demo/product_category.xml", | ||
], | ||
"qweb": [], | ||
"maintainers": ["sebastienbeau", "legalsylvain", "kevinkhao"], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!--License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> | ||
<odoo> | ||
<data noupdate="1"> | ||
<record | ||
forcecreate="True" | ||
id="decimal_stock_threshold" | ||
model="decimal.precision" | ||
> | ||
<field name="name">Stock Threshold</field> | ||
<field name="digits">2</field> | ||
</record> | ||
</data> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<odoo> | ||
<record id="product.product_category_1" model="product.category"> | ||
<field name="manual_stock_state_threshold">20</field> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<odoo> | ||
<record id="product_setting_by_company" model="product.product"> | ||
<field name="name">Product with threshold set on the company</field> | ||
<field name="categ_id" ref="product.product_category_all" /> | ||
<field name="company_id" ref="base.main_company" /> | ||
</record> | ||
<record id="product_setting_by_product" model="product.product"> | ||
<field name="name">Product with threshold set on the product</field> | ||
<field name="categ_id" ref="product.product_category_all" /> | ||
<field name="manual_stock_state_threshold">30</field> | ||
</record> | ||
<record id="base.main_company" model="res.company"> | ||
<field name="stock_state_threshold">66</field> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<odoo> | ||
<record id="group_stock_state_by_product" model="res.groups"> | ||
<field name="users" eval="[(4, ref('base.user_admin'))]" /> | ||
</record> | ||
<record id="group_stock_state_by_category" model="res.groups"> | ||
<field name="users" eval="[(4, ref('base.user_admin'))]" /> | ||
</record> | ||
<record id="product.group_product_variant" model="res.groups"> | ||
<field name="users" eval="[(4, ref('base.user_admin'))]" /> | ||
</record> | ||
</odoo> |
Oops, something went wrong.