-
-
Notifications
You must be signed in to change notification settings - Fork 91
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 LoisRForgeFlow
- Loading branch information
Showing
25 changed files
with
1,502 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,92 @@ | ||
============= | ||
DDMRP Warning | ||
============= | ||
|
||
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! 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-LGPL--3-blue.png | ||
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html | ||
:alt: License: LGPL-3 | ||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fddmrp-lightgray.png?logo=github | ||
:target: https://github.com/OCA/ddmrp/tree/15.0/ddmrp_warning | ||
:alt: OCA/ddmrp | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/ddmrp-15-0/ddmrp-15-0-ddmrp_warning | ||
:alt: Translate me on Weblate | ||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png | ||
:target: https://runbot.odoo-community.org/runbot/255/15.0 | ||
:alt: Try me on Runbot | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
Adds configuration warnings on stock buffers based on different definitions. | ||
This modules include some basic warnings but you can create your own based on | ||
your environment. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Usage | ||
===== | ||
|
||
To use this module you can proceed as follows: | ||
|
||
#. Use the filter *Has Warnings* in stock buffers. | ||
#. In a buffer form view go to the *Warnings* tab and check the active warnings. | ||
#. Fix the issues, and click on *Refresh Warnings*. | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/ddmrp/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/ddmrp/issues/new?body=module:%20ddmrp_warning%0Aversion:%2015.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 | ||
~~~~~~~ | ||
|
||
* ForgeFlow | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* Lois Rilo Antelo <[email protected]> | ||
|
||
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-LoisRForgeFlow| image:: https://github.com/LoisRForgeFlow.png?size=40px | ||
:target: https://github.com/LoisRForgeFlow | ||
:alt: LoisRForgeFlow | ||
|
||
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__: | ||
|
||
|maintainer-LoisRForgeFlow| | ||
|
||
This module is part of the `OCA/ddmrp <https://github.com/OCA/ddmrp/tree/15.0/ddmrp_warning>`_ 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,25 @@ | ||
# Copyright 2021 ForgeFlow S.L. (https://www.forgeflow.com) | ||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). | ||
|
||
{ | ||
"name": "DDMRP Warning", | ||
"version": "16.0.1.0.0", | ||
"summary": "Adds configuration warnings on stock buffers.", | ||
"author": "ForgeFlow, Odoo Community Association (OCA)", | ||
"development_status": "Beta", | ||
"maintainers": ["LoisRForgeFlow"], | ||
"website": "https://github.com/OCA/ddmrp", | ||
"category": "Warehouse Management", | ||
"depends": ["ddmrp"], | ||
"data": [ | ||
"security/ir.model.access.csv", | ||
"security/ddmrp_warning_rules.xml", | ||
"views/ddmrp_buffer_view.xml", | ||
"views/ddmrp_warning_definition_views.xml", | ||
"views/ddmrp_warning_item_views.xml", | ||
"data/ir_cron.xml", | ||
"data/ddmrp_warning_definition_data.xml", | ||
], | ||
"license": "LGPL-3", | ||
"installable": True, | ||
} |
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 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<record | ||
id="ddmrp_warning_definition_dlt_and_spike_horizon" | ||
model="ddmrp.warning.definition" | ||
> | ||
<field name="name">Spike horizon is smaller than DLT</field> | ||
<field name="python_code">buffer.order_spike_horizon < buffer.dlt</field> | ||
<field name="severity">3_high</field> | ||
</record> | ||
<record | ||
id="ddmrp_warning_definition_moq_and_qty_multiple" | ||
model="ddmrp.warning.definition" | ||
> | ||
<field name="name">Quantity multiple bigger than MOQ</field> | ||
<field | ||
name="python_code" | ||
>buffer.minimum_order_quantity < buffer.qty_multiple</field> | ||
<field name="severity">2_mid</field> | ||
</record> | ||
<record | ||
id="ddmrp_warning_definition_moq_and_procure_min_qty" | ||
model="ddmrp.warning.definition" | ||
> | ||
<field name="name">Minimum Procure Batch bigger than MOQ</field> | ||
<field | ||
name="python_code" | ||
>buffer.minimum_order_quantity < buffer.procure_min_qty</field> | ||
<field name="severity">2_mid</field> | ||
</record> | ||
<record id="ddmrp_warning_definition_adu_zero" model="ddmrp.warning.definition"> | ||
<field name="name">ADU is zero</field> | ||
<field name="python_code">buffer.adu == 0.0</field> | ||
<field name="severity">1_low</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,23 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo noupdate="1"> | ||
<record | ||
id="ir_cron_ddmrp_warning_calculation_scheduler_action" | ||
model="ir.cron" | ||
forcecreate="True" | ||
> | ||
<field name="name">DDMRP Buffer Warning calculation</field> | ||
<field name="state">code</field> | ||
<field name="user_id" ref="base.user_root" /> | ||
<field name="interval_number">1</field> | ||
<field name="interval_type">days</field> | ||
<field name="numbercall">-1</field> | ||
<field name="priority">5</field> | ||
<field | ||
name="mutually_exclusive_cron_ids" | ||
eval="[(6, 0, [ref('ddmrp.ir_cron_ddmrp_calculation_scheduler_action'),])]" | ||
/> | ||
<field eval="False" name="doall" /> | ||
<field name="model_id" ref="ddmrp.model_stock_buffer" /> | ||
<field name="code">model.cron_generate_ddmrp_warnings(True)</field> | ||
</record> | ||
</odoo> |
Oops, something went wrong.