Skip to content

Commit

Permalink
[IMP] stock_request: pre-commit auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
celm1990 committed Dec 10, 2023
1 parent a068069 commit 11866e0
Show file tree
Hide file tree
Showing 14 changed files with 116 additions and 115 deletions.
86 changes: 43 additions & 43 deletions stock_request/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,21 @@ Stock Request
.. |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%2Fstock--logistics--warehouse-lightgray.png?logo=github
:target: https://github.com/OCA/stock-logistics-warehouse/tree/15.0/stock_request
:alt: OCA/stock-logistics-warehouse
.. |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/17.0/stock_request
: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-warehouse-15-0/stock-logistics-warehouse-15-0-stock_request
:target: https://translation.odoo-community.org/projects/stock-logistics-request-17-0/stock-logistics-request-17-0-stock_request
: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-warehouse&target_branch=15.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 was written to allow users to request products that are
frequently stocked by the company, to be transferred to their chosen location.
frequently stocked by the company, to be transferred to their chosen
location.

**Table of contents**

Expand All @@ -41,90 +42,89 @@ Configuration

To configure this module:

* Go to Stock Requests > Settings
- Go to Stock Requests > Settings

Users should be assigned to the groups 'Stock Request / User' or 'Stock
Request / Manager'.

## Group Stock Request / User

* Can see her/his own Stock Requests, and others that she/he's been granted
permission to follow.

* Can create/update only her/his Stock Requests.
- Can see her/his own Stock Requests, and others that she/he's been
granted permission to follow.
- Can create/update only her/his Stock Requests.

## Group Stock Request / Manager

* Can fully manage all Stock Requests
- Can fully manage all Stock Requests

Usage
=====

## Creation

* Go to 'Stock Requests / Stock Requests' and create a new Request.
* Indicate a product, quantity and location.
* Press 'Confirm'.
- Go to 'Stock Requests / Stock Requests' and create a new Request.
- Indicate a product, quantity and location.
- Press 'Confirm'.

Upon confirmation the request will be evaluated using the procurement rules
for the selected location.
Upon confirmation the request will be evaluated using the procurement
rules for the selected location.

In case that transfers are created, the user will be able to access to them
from the button 'Transfers' available in the Stock Request.
In case that transfers are created, the user will be able to access to
them from the button 'Transfers' available in the Stock Request.

## Cancel

When the user cancels a Stock Request, the related pending stock moves will be
also cancelled.
When the user cancels a Stock Request, the related pending stock moves
will be also cancelled.

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

There is no way to achieve Storck Request and Stock Request Orders.
It should be developed taking into account that only Cancel and Done
stock request can be archived.
There is no way to achieve Storck Request and Stock Request Orders. It
should be developed taking into account that only Cancel and Done stock
request can be archived.

It is also required to manage active field logically from Orders to SRs.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-warehouse/issues>`_.
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-warehouse/issues/new?body=module:%20stock_request%0Aversion:%2015.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%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
~~~~~~~~~~~~
------------

* Jordi Ballester (EFICENT) <jordi.ballester@forgeflow.com>.
* Enric Tobella <etobella@creublanca.es>
* Atte Isopuro <atte.isopuro@avoin.systems>
* Lois Rilo <lois.rilo@forgeflow.com>
* Raul Martin <raul.martin@braintec-group.com>
* Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com>
* `Open Source Integrators <https://www.opensourceintegrators.com>`_
- Jordi Ballester (EFICENT) <jordi.ballester@forgeflow.com>.
- Enric Tobella <etobella@creublanca.es>
- Atte Isopuro <atte.isopuro@avoin.systems>
- Lois Rilo <lois.rilo@forgeflow.com>
- Raul Martin <raul.martin@braintec-group.com>
- Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com>
- `Open Source Integrators <https://www.opensourceintegrators.com>`__

* Maxime Chambreuil <mchambreuil@opensourceintegrators.com>
* Steve Campbell <scampbell@opensourceintegrators.com>
- Maxime Chambreuil <mchambreuil@opensourceintegrators.com>
- Steve Campbell <scampbell@opensourceintegrators.com>

* Héctor Villarreal <hector.villarreal@forgeflow.com>
* Kitti U. <kittiu@ecosoft.co.th>
* Bernat Puig <bernat.puig@forgeflow.com>
* Oriol Miranda <oriol.miranda@forgeflow.com>
- Héctor Villarreal <hector.villarreal@forgeflow.com>
- Kitti U. <kittiu@ecosoft.co.th>
- Bernat Puig <bernat.puig@forgeflow.com>
- Oriol Miranda <oriol.miranda@forgeflow.com>

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

This module is maintained by the OCA.

Expand All @@ -136,6 +136,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-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/15.0/stock_request>`_ 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>`_ 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 stock_request/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"summary": "Internal request for stock",
"version": "15.0.1.7.0",
"license": "LGPL-3",
"website": "https://github.com/OCA/stock-logistics-warehouse",
"website": "https://github.com/OCA/stock-logistics-request",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"category": "Warehouse Management",
"depends": ["stock"],
Expand Down
1 change: 0 additions & 1 deletion stock_request/models/stock_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,6 @@ def _check_cancel_allocation(self):
)

def _prepare_procurement_values(self, group_id=False):

"""Prepare specific key for moves or other components that
will be created from a procurement rule
coming from a stock request. This method could be override
Expand Down
3 changes: 3 additions & 0 deletions stock_request/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
16 changes: 16 additions & 0 deletions stock_request/readme/CONFIGURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
To configure this module:

- Go to Stock Requests \> Settings

Users should be assigned to the groups 'Stock Request / User' or 'Stock
Request / Manager'.

\## Group Stock Request / User

- Can see her/his own Stock Requests, and others that she/he's been
granted permission to follow.
- Can create/update only her/his Stock Requests.

\## Group Stock Request / Manager

- Can fully manage all Stock Requests
17 changes: 0 additions & 17 deletions stock_request/readme/CONFIGURE.rst

This file was deleted.

13 changes: 13 additions & 0 deletions stock_request/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
- Jordi Ballester (EFICENT) \<<jordi.ballester@forgeflow.com>\>.
- Enric Tobella \<<etobella@creublanca.es>\>
- Atte Isopuro \<<atte.isopuro@avoin.systems>\>
- Lois Rilo \<<lois.rilo@forgeflow.com>\>
- Raul Martin \<<raul.martin@braintec-group.com>\>
- Serpent Consulting Services Pvt. Ltd. \<<support@serpentcs.com>\>
- [Open Source Integrators](https://www.opensourceintegrators.com)
- Maxime Chambreuil \<<mchambreuil@opensourceintegrators.com>\>
- Steve Campbell \<<scampbell@opensourceintegrators.com>\>
- Héctor Villarreal \<<hector.villarreal@forgeflow.com>\>
- Kitti U. \<<kittiu@ecosoft.co.th>\>
- Bernat Puig \<<bernat.puig@forgeflow.com>\>
- Oriol Miranda \<<oriol.miranda@forgeflow.com>\>
15 changes: 0 additions & 15 deletions stock_request/readme/CONTRIBUTORS.rst

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
This module was written to allow users to request products that are
frequently stocked by the company, to be transferred to their chosen location.
frequently stocked by the company, to be transferred to their chosen
location.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
There is no way to achieve Storck Request and Stock Request Orders.
It should be developed taking into account that only Cancel and Done
stock request can be archived.
There is no way to achieve Storck Request and Stock Request Orders. It
should be developed taking into account that only Cancel and Done stock
request can be archived.

It is also required to manage active field logically from Orders to SRs.
16 changes: 16 additions & 0 deletions stock_request/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
\## Creation

- Go to 'Stock Requests / Stock Requests' and create a new Request.
- Indicate a product, quantity and location.
- Press 'Confirm'.

Upon confirmation the request will be evaluated using the procurement
rules for the selected location.

In case that transfers are created, the user will be able to access to
them from the button 'Transfers' available in the Stock Request.

\## Cancel

When the user cancels a Stock Request, the related pending stock moves
will be also cancelled.
16 changes: 0 additions & 16 deletions stock_request/readme/USAGE.rst

This file was deleted.

33 changes: 17 additions & 16 deletions stock_request/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,10 @@ <h1 class="title">Stock Request</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:f7abc85838ce009026d931feb4eeef8b5d7c9fc791db18affe7a3e6e7dcec1ea
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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-warehouse/tree/15.0/stock_request"><img alt="OCA/stock-logistics-warehouse" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/stock-logistics-warehouse-15-0/stock-logistics-warehouse-15-0-stock_request"><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-warehouse&amp;target_branch=15.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="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"><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"><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 was written to allow users to request products that are
frequently stocked by the company, to be transferred to their chosen location.</p>
frequently stocked by the company, to be transferred to their chosen
location.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand All @@ -397,8 +398,8 @@ <h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
Request / Manager’.</p>
<p>## Group Stock Request / User</p>
<ul class="simple">
<li>Can see her/his own Stock Requests, and others that she/he’s been granted
permission to follow.</li>
<li>Can see her/his own Stock Requests, and others that she/he’s been
granted permission to follow.</li>
<li>Can create/update only her/his Stock Requests.</li>
</ul>
<p>## Group Stock Request / Manager</p>
Expand All @@ -414,27 +415,27 @@ <h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
<li>Indicate a product, quantity and location.</li>
<li>Press ‘Confirm’.</li>
</ul>
<p>Upon confirmation the request will be evaluated using the procurement rules
for the selected location.</p>
<p>In case that transfers are created, the user will be able to access to them
from the button ‘Transfers’ available in the Stock Request.</p>
<p>Upon confirmation the request will be evaluated using the procurement
rules for the selected location.</p>
<p>In case that transfers are created, the user will be able to access to
them from the button ‘Transfers’ available in the Stock Request.</p>
<p>## Cancel</p>
<p>When the user cancels a Stock Request, the related pending stock moves will be
also cancelled.</p>
<p>When the user cancels a Stock Request, the related pending stock moves
will be also cancelled.</p>
</div>
<div class="section" id="known-issues-roadmap">
<h1><a class="toc-backref" href="#toc-entry-3">Known issues / Roadmap</a></h1>
<p>There is no way to achieve Storck Request and Stock Request Orders.
It should be developed taking into account that only Cancel and Done
stock request can be archived.</p>
<p>There is no way to achieve Storck Request and Stock Request Orders. It
should be developed taking into account that only Cancel and Done stock
request can be archived.</p>
<p>It is also required to manage active field logically from Orders to SRs.</p>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-4">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues">GitHub Issues</a>.
<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-warehouse/issues/new?body=module:%20stock_request%0Aversion:%2015.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%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 Down Expand Up @@ -472,7 +473,7 @@ <h2><a class="toc-backref" href="#toc-entry-8">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-warehouse/tree/15.0/stock_request">OCA/stock-logistics-warehouse</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">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
4 changes: 2 additions & 2 deletions stock_request/tests/test_stock_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def _create_product(self, default_code, name, company_id, **vals):
uom_id=self.env.ref("uom.product_uom_unit").id,
company_id=company_id,
type="product",
**vals
**vals,
)
)

Expand Down Expand Up @@ -156,7 +156,7 @@ def _create_location_route(self, **vals):
product_categ_selectable=False,
product_selectable=True,
sequence=10,
**vals
**vals,
)
)

Expand Down

0 comments on commit 11866e0

Please sign in to comment.