diff --git a/stock_request/README.rst b/stock_request/README.rst index 4c0d3df9..7318aeea 100644 --- a/stock_request/README.rst +++ b/stock_request/README.rst @@ -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** @@ -41,58 +42,57 @@ 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 `_. +Bugs are tracked on `GitHub 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -100,31 +100,31 @@ Credits ======= Authors -~~~~~~~ +------- * ForgeFlow Contributors -~~~~~~~~~~~~ +------------ -* Jordi Ballester (EFICENT) . -* Enric Tobella -* Atte Isopuro -* Lois Rilo -* Raul Martin -* Serpent Consulting Services Pvt. Ltd. -* `Open Source Integrators `_ +- Jordi Ballester (EFICENT) . +- Enric Tobella +- Atte Isopuro +- Lois Rilo +- Raul Martin +- Serpent Consulting Services Pvt. Ltd. +- `Open Source Integrators `__ - * Maxime Chambreuil - * Steve Campbell + - Maxime Chambreuil + - Steve Campbell -* Héctor Villarreal -* Kitti U. -* Bernat Puig -* Oriol Miranda +- Héctor Villarreal +- Kitti U. +- Bernat Puig +- Oriol Miranda Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -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 `_ project on GitHub. +This module is part of the `OCA/stock-logistics-request `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/stock_request/__manifest__.py b/stock_request/__manifest__.py index a84aa9d7..48ade0a0 100644 --- a/stock_request/__manifest__.py +++ b/stock_request/__manifest__.py @@ -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"], diff --git a/stock_request/models/stock_request.py b/stock_request/models/stock_request.py index f6f6fecc..376bcd78 100644 --- a/stock_request/models/stock_request.py +++ b/stock_request/models/stock_request.py @@ -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 diff --git a/stock_request/pyproject.toml b/stock_request/pyproject.toml new file mode 100644 index 00000000..4231d0cc --- /dev/null +++ b/stock_request/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/stock_request/readme/CONFIGURE.md b/stock_request/readme/CONFIGURE.md new file mode 100644 index 00000000..bd38c9a1 --- /dev/null +++ b/stock_request/readme/CONFIGURE.md @@ -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 diff --git a/stock_request/readme/CONFIGURE.rst b/stock_request/readme/CONFIGURE.rst deleted file mode 100644 index 4cbc55ff..00000000 --- a/stock_request/readme/CONFIGURE.rst +++ /dev/null @@ -1,17 +0,0 @@ -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 diff --git a/stock_request/readme/CONTRIBUTORS.md b/stock_request/readme/CONTRIBUTORS.md new file mode 100644 index 00000000..80afc9ce --- /dev/null +++ b/stock_request/readme/CONTRIBUTORS.md @@ -0,0 +1,13 @@ +- Jordi Ballester (EFICENT) \<\>. +- Enric Tobella \<\> +- Atte Isopuro \<\> +- Lois Rilo \<\> +- Raul Martin \<\> +- Serpent Consulting Services Pvt. Ltd. \<\> +- [Open Source Integrators](https://www.opensourceintegrators.com) + - Maxime Chambreuil \<\> + - Steve Campbell \<\> +- Héctor Villarreal \<\> +- Kitti U. \<\> +- Bernat Puig \<\> +- Oriol Miranda \<\> diff --git a/stock_request/readme/CONTRIBUTORS.rst b/stock_request/readme/CONTRIBUTORS.rst deleted file mode 100644 index 7e33d3da..00000000 --- a/stock_request/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,15 +0,0 @@ -* Jordi Ballester (EFICENT) . -* Enric Tobella -* Atte Isopuro -* Lois Rilo -* Raul Martin -* Serpent Consulting Services Pvt. Ltd. -* `Open Source Integrators `_ - - * Maxime Chambreuil - * Steve Campbell - -* Héctor Villarreal -* Kitti U. -* Bernat Puig -* Oriol Miranda diff --git a/stock_request/readme/DESCRIPTION.rst b/stock_request/readme/DESCRIPTION.md similarity index 89% rename from stock_request/readme/DESCRIPTION.rst rename to stock_request/readme/DESCRIPTION.md index e797cff9..3cc0e2c7 100644 --- a/stock_request/readme/DESCRIPTION.rst +++ b/stock_request/readme/DESCRIPTION.md @@ -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. diff --git a/stock_request/readme/ROADMAP.rst b/stock_request/readme/ROADMAP.md similarity index 57% rename from stock_request/readme/ROADMAP.rst rename to stock_request/readme/ROADMAP.md index cb301652..d7432d56 100644 --- a/stock_request/readme/ROADMAP.rst +++ b/stock_request/readme/ROADMAP.md @@ -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. diff --git a/stock_request/readme/USAGE.md b/stock_request/readme/USAGE.md new file mode 100644 index 00000000..fd9a120d --- /dev/null +++ b/stock_request/readme/USAGE.md @@ -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. diff --git a/stock_request/readme/USAGE.rst b/stock_request/readme/USAGE.rst deleted file mode 100644 index 3d65e7a6..00000000 --- a/stock_request/readme/USAGE.rst +++ /dev/null @@ -1,16 +0,0 @@ -## 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. diff --git a/stock_request/static/description/index.html b/stock_request/static/description/index.html index 3f9147b4..dffe8b68 100644 --- a/stock_request/static/description/index.html +++ b/stock_request/static/description/index.html @@ -369,9 +369,10 @@

Stock Request

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:f7abc85838ce009026d931feb4eeef8b5d7c9fc791db18affe7a3e6e7dcec1ea !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: LGPL-3 OCA/stock-logistics-warehouse Translate me on Weblate Try me on Runboat

+

Beta License: LGPL-3 OCA/stock-logistics-request Translate me on Weblate Try me on Runboat

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

    @@ -397,8 +398,8 @@

    Configuration

    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 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

    @@ -414,27 +415,27 @@

    Usage

  • 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.

+

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.

+

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. +

Bugs are tracked on GitHub 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.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -472,7 +473,7 @@

Maintainers

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 project on GitHub.

+

This module is part of the OCA/stock-logistics-request project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

diff --git a/stock_request/tests/test_stock_request.py b/stock_request/tests/test_stock_request.py index ed53a69b..d7486395 100644 --- a/stock_request/tests/test_stock_request.py +++ b/stock_request/tests/test_stock_request.py @@ -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, ) ) @@ -156,7 +156,7 @@ def _create_location_route(self, **vals): product_categ_selectable=False, product_selectable=True, sequence=10, - **vals + **vals, ) )