Skip to content

Commit

Permalink
[IMP] stock_request_mrp: pre-commit auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AnaisLForgeFlow committed May 20, 2024
1 parent 9f5822d commit 6c68f1f
Show file tree
Hide file tree
Showing 12 changed files with 39 additions and 36 deletions.
32 changes: 16 additions & 16 deletions stock_request_mrp/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ Stock Request MRP
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--request-lightgray.png?logo=github
:target: https://github.com/OCA/stock-logistics-request/tree/16.0/stock_request_mrp
:target: https://github.com/OCA/stock-logistics-request/tree/17.0/stock_request_mrp
:alt: OCA/stock-logistics-request
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/stock-logistics-request-16-0/stock-logistics-request-16-0-stock_request_mrp
:target: https://translation.odoo-community.org/projects/stock-logistics-request-17-0/stock-logistics-request-17-0-stock_request_mrp
: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/stock-logistics-request&target_branch=16.0
:target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-request&target_branch=17.0
:alt: Try me on Runboat

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

This module allows for users to be able to display manufacturing orders that have
been created as a consequence of Stock Requests.
This module allows for users to be able to display manufacturing orders
that have been created as a consequence of Stock Requests.

**Table of contents**

Expand All @@ -39,41 +39,41 @@ been created as a consequence of Stock Requests.
Usage
=====

In case that the confirmation of the Stock Request results in an immediate
Manufacturing Order, the user will be able to display the MO's from the Stock
Request form view.
In case that the confirmation of the Stock Request results in an
immediate Manufacturing Order, the user will be able to display the MO's
from the Stock Request form view.

Known issues / Roadmap
======================

* When a Stock Request is cancelled, it does not cancel the quantity included
in the Manufacturing Order.
- When a Stock Request is cancelled, it does not cancel the quantity
included in the Manufacturing Order.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-request/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/stock-logistics-request/issues/new?body=module:%20stock_request_mrp%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/stock-logistics-request/issues/new?body=module:%20stock_request_mrp%0Aversion:%2017.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
~~~~~~~~~~~~
------------

* Héctor Villarreal <hector.villarreal@forgeflow.com>.
- Héctor Villarreal <hector.villarreal@forgeflow.com>.

Maintainers
~~~~~~~~~~~
-----------

This module is maintained by the OCA.

Expand All @@ -85,6 +85,6 @@ 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/stock-logistics-request <https://github.com/OCA/stock-logistics-request/tree/16.0/stock_request_mrp>`_ project on GitHub.
This module is part of the `OCA/stock-logistics-request <https://github.com/OCA/stock-logistics-request/tree/17.0/stock_request_mrp>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 2 additions & 2 deletions stock_request_mrp/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ def link_existing_mos_to_stock_request(cr):
if stock_request:
# Link SR to MO
mo.stock_request_ids = [(6, 0, stock_request.ids)]
logger.info("MO {} linked to SR {}".format(mo.name, stock_request.name))
logger.info(f"MO {mo.name} linked to SR {stock_request.name}")
if (
not stock_request_allocation_obj.search(
[("stock_request_id", "=", stock_request.id)]
)
and mo.state != "cancel"
):
# Create allocation for finish move
logger.info("Create allocation for {}".format(stock_request.name))
logger.info(f"Create allocation for {stock_request.name}")
mo.move_finished_ids[0].allocation_ids = [
(
0,
Expand Down
3 changes: 3 additions & 0 deletions stock_request_mrp/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
1 change: 1 addition & 0 deletions stock_request_mrp/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Héctor Villarreal \<<hector.villarreal@forgeflow.com>\>.
1 change: 0 additions & 1 deletion stock_request_mrp/readme/CONTRIBUTORS.rst

This file was deleted.

2 changes: 2 additions & 0 deletions stock_request_mrp/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module allows for users to be able to display manufacturing orders
that have been created as a consequence of Stock Requests.
2 changes: 0 additions & 2 deletions stock_request_mrp/readme/DESCRIPTION.rst

This file was deleted.

2 changes: 2 additions & 0 deletions stock_request_mrp/readme/ROADMAP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- When a Stock Request is cancelled, it does not cancel the quantity
included in the Manufacturing Order.
2 changes: 0 additions & 2 deletions stock_request_mrp/readme/ROADMAP.rst

This file was deleted.

3 changes: 3 additions & 0 deletions stock_request_mrp/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
In case that the confirmation of the Stock Request results in an
immediate Manufacturing Order, the user will be able to display the MO's
from the Stock Request form view.
3 changes: 0 additions & 3 deletions stock_request_mrp/readme/USAGE.rst

This file was deleted.

20 changes: 10 additions & 10 deletions stock_request_mrp/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -368,9 +368,9 @@ <h1 class="title">Stock Request MRP</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:f6a1ec65a0741589dfbce1eedd9b245fcc1df92be32de0e1a87d92fe14e044d2
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.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/stock-logistics-request/tree/16.0/stock_request_mrp"><img alt="OCA/stock-logistics-request" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--request-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/stock-logistics-request-16-0/stock-logistics-request-16-0-stock_request_mrp"><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/stock-logistics-request&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module allows for users to be able to display manufacturing orders that have
been created as a consequence of Stock Requests.</p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.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/stock-logistics-request/tree/17.0/stock_request_mrp"><img alt="OCA/stock-logistics-request" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--request-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/stock-logistics-request-17-0/stock-logistics-request-17-0-stock_request_mrp"><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/stock-logistics-request&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>This module allows for users to be able to display manufacturing orders
that have been created as a consequence of Stock Requests.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand All @@ -387,23 +387,23 @@ <h1 class="title">Stock Request MRP</h1>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
<p>In case that the confirmation of the Stock Request results in an immediate
Manufacturing Order, the user will be able to display the MO’s from the Stock
Request form view.</p>
<p>In case that the confirmation of the Stock Request results in an
immediate Manufacturing Order, the user will be able to display the MO’s
from the Stock Request form view.</p>
</div>
<div class="section" id="known-issues-roadmap">
<h1><a class="toc-backref" href="#toc-entry-2">Known issues / Roadmap</a></h1>
<ul class="simple">
<li>When a Stock Request is cancelled, it does not cancel the quantity included
in the Manufacturing Order.</li>
<li>When a Stock Request is cancelled, it does not cancel the quantity
included in the Manufacturing Order.</li>
</ul>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/stock-logistics-request/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/stock-logistics-request/issues/new?body=module:%20stock_request_mrp%0Aversion:%2016.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/stock-logistics-request/issues/new?body=module:%20stock_request_mrp%0Aversion:%2017.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 All @@ -427,7 +427,7 @@ <h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
<p>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.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-request/tree/16.0/stock_request_mrp">OCA/stock-logistics-request</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-request/tree/17.0/stock_request_mrp">OCA/stock-logistics-request</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

0 comments on commit 6c68f1f

Please sign in to comment.