Skip to content

Commit

Permalink
[MIG] ddmrp_warning: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ThiagoMForgeFlow authored and LoisRForgeFlow committed Mar 10, 2025
1 parent bfedc62 commit 406e547
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 19 deletions.
10 changes: 5 additions & 5 deletions ddmrp_warning/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ DDMRP Warning
: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/17.0/ddmrp_warning
:target: https://github.com/OCA/ddmrp/tree/18.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-17-0/ddmrp-17-0-ddmrp_warning
:target: https://translation.odoo-community.org/projects/ddmrp-18-0/ddmrp-18-0-ddmrp_warning
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/ddmrp&target_branch=17.0
:target: https://runboat.odoo-community.org/builds?repo=OCA/ddmrp&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|
Expand Down Expand Up @@ -53,7 +53,7 @@ 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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/ddmrp/issues/new?body=module:%20ddmrp_warning%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/ddmrp/issues/new?body=module:%20ddmrp_warning%0Aversion:%2018.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 Down Expand Up @@ -91,6 +91,6 @@ 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/17.0/ddmrp_warning>`_ project on GitHub.
This module is part of the `OCA/ddmrp <https://github.com/OCA/ddmrp/tree/18.0/ddmrp_warning>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 1 addition & 1 deletion ddmrp_warning/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{
"name": "DDMRP Warning",
"version": "17.0.1.1.0",
"version": "18.0.1.0.0",
"summary": "Adds configuration warnings on stock buffers.",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"development_status": "Production/Stable",
Expand Down
2 changes: 0 additions & 2 deletions ddmrp_warning/data/ir_cron.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@
<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>
Expand Down
6 changes: 3 additions & 3 deletions ddmrp_warning/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ <h1 class="title">DDMRP Warning</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:240345518730147b09a315032c9d0927c752878192b8a90582a9abb427837d3d
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/ddmrp/tree/17.0/ddmrp_warning"><img alt="OCA/ddmrp" src="https://img.shields.io/badge/github-OCA%2Fddmrp-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/ddmrp-17-0/ddmrp-17-0-ddmrp_warning"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/ddmrp&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/ddmrp/tree/18.0/ddmrp_warning"><img alt="OCA/ddmrp" src="https://img.shields.io/badge/github-OCA%2Fddmrp-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/ddmrp-18-0/ddmrp-18-0-ddmrp_warning"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/ddmrp&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>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.</p>
Expand Down Expand Up @@ -401,7 +401,7 @@ <h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/ddmrp/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/ddmrp/issues/new?body=module:%20ddmrp_warning%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/ddmrp/issues/new?body=module:%20ddmrp_warning%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
Expand Down Expand Up @@ -429,7 +429,7 @@ <h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
<p><a class="reference external image-reference" href="https://github.com/LoisRForgeFlow"><img alt="LoisRForgeFlow" src="https://github.com/LoisRForgeFlow.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/ddmrp/tree/17.0/ddmrp_warning">OCA/ddmrp</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/ddmrp/tree/18.0/ddmrp_warning">OCA/ddmrp</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions ddmrp_warning/views/ddmrp_buffer_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
colspan="2"
/>
<field name="ddmrp_warning_item_ids" nolabel="1" colspan="2">
<tree
<list
decoration-info="severity == '1_low'"
decoration-warning="severity == '2_mid'"
decoration-danger="severity == '3_high'"
>
<field name="name" />
<field name="severity" />
</tree>
</list>
</field>
</page>
</notebook>
Expand Down
6 changes: 3 additions & 3 deletions ddmrp_warning/views/ddmrp_warning_definition_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<field name="name">ddmrp.warning.definition.tree</field>
<field name="model">ddmrp.warning.definition</field>
<field name="arch" type="xml">
<tree>
<list>
<field name="name" />
<field name="severity" />
<field name="active" />
</tree>
</list>
</field>
</record>
<record id="view_ddmrp_warning_definition_form" model="ir.ui.view">
Expand Down Expand Up @@ -64,7 +64,7 @@
<record id="action_ddmrp_warning_definition" model="ir.actions.act_window">
<field name="name">DDMRP Warning Definitions</field>
<field name="res_model">ddmrp.warning.definition</field>
<field name="view_mode">tree,form</field>
<field name="view_mode">list,form</field>
</record>
<menuitem
name="Warning Definitions"
Expand Down
6 changes: 3 additions & 3 deletions ddmrp_warning/views/ddmrp_warning_item_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<field name="name">ddmrp.warning.item.tree</field>
<field name="model">ddmrp.warning.item</field>
<field name="arch" type="xml">
<tree
<list
decoration-info="severity == '1_low'"
decoration-warning="severity == '2_mid'"
decoration-danger="severity == '3_high'"
Expand All @@ -17,7 +17,7 @@
<field name="severity" />
<field name="location_id" groups="stock.group_stock_multi_locations" />
<field name="company_id" groups="base.group_multi_company" />
</tree>
</list>
</field>
</record>
<record id="view_ddmrp_warning_item_form" model="ir.ui.view">
Expand Down Expand Up @@ -84,7 +84,7 @@
<record id="action_ddmrp_warning_item" model="ir.actions.act_window">
<field name="name">DDMRP Warning Items</field>
<field name="res_model">ddmrp.warning.item</field>
<field name="view_mode">tree,form</field>
<field name="view_mode">list,form</field>
</record>
<menuitem
name="DDMRP Warnings"
Expand Down

0 comments on commit 406e547

Please sign in to comment.