forked from OCA/stock-logistics-warehouse
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] stock_request: Add group to bypass submission (OCA#595)
- Loading branch information
Showing
18 changed files
with
219 additions
and
124 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 |
---|---|---|
@@ -1,93 +1,21 @@ | ||
.. image:: https://img.shields.io/badge/licence-LGPL--3-blue.svg | ||
:target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html | ||
:alt: License: LGPL-3 | ||
**This file is going to be generated by oca-gen-addon-readme.** | ||
|
||
============= | ||
Stock Request | ||
============= | ||
*Manual changes will be overwritten.* | ||
|
||
This module was written to allow users to request products that are | ||
frequently stocked by the company, to be transferred to their chosen location. | ||
Please provide content in the ``readme`` directory: | ||
|
||
* **DESCRIPTION.rst** (required) | ||
* INSTALL.rst (optional) | ||
* CONFIGURE.rst (optional) | ||
* **USAGE.rst** (optional, highly recommended) | ||
* DEVELOP.rst (optional) | ||
* ROADMAP.rst (optional) | ||
* HISTORY.rst (optional, recommended) | ||
* **CONTRIBUTORS.rst** (optional, highly recommended) | ||
* CREDITS.rst (optional) | ||
|
||
Configuration | ||
============= | ||
Content of this README will also be drawn from the addon manifest, | ||
from keys such as name, authors, maintainers, development_status, | ||
and license. | ||
|
||
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 | ||
|
||
|
||
Usage | ||
===== | ||
|
||
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. | ||
|
||
|
||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas | ||
:alt: Try me on Runbot | ||
:target: https://runbot.odoo-community.org/runbot/153/12.0 | ||
|
||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues | ||
<https://github.com/OCA/stock-logistics-warehouse/issues>`_. In case of | ||
trouble, please check there if your issue has already been reported. If you | ||
spotted it first, help us smash it by providing detailed and welcomed feedback. | ||
|
||
Credits | ||
======= | ||
|
||
Contributors | ||
------------ | ||
|
||
* Jordi Ballester (EFICENT) <jordi.ballester@eficent.com>. | ||
* Enric Tobella <etobella@creublanca.es> | ||
* Atte Isopuro <atte.isopuro@avoin.systems> | ||
* Lois Rilo <lois.rilo@eficent.com> | ||
* Raul Martin <raul.martin@braintec-group.com> | ||
* Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com> | ||
|
||
Maintainer | ||
---------- | ||
|
||
.. image:: https://odoo-community.org/logo.png | ||
:alt: Odoo Community Association | ||
:target: https://odoo-community.org | ||
|
||
This module is maintained by the OCA. | ||
|
||
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. | ||
|
||
To contribute to this module, please visit https://odoo-community.org. | ||
A good, one sentence summary in the manifest is also highly recommended. |
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
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,18 @@ | ||
# Copyright (C) 2019 - TODAY, Open Source Integrators | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
from odoo import api | ||
from odoo import SUPERUSER_ID | ||
|
||
|
||
def migrate(cr, version): | ||
if not version: | ||
return | ||
|
||
env = api.Environment(cr, SUPERUSER_ID, {}) | ||
settings = env['res.config.settings'].\ | ||
search([('group_bypass_submit_request', '=', True)]) | ||
if not settings: | ||
settings = env['res.config.settings'].create({ | ||
'group_bypass_submit_request': True, | ||
}) | ||
settings.execute() |
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
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
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
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,19 @@ | ||
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 |
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,8 @@ | ||
* Jordi Ballester (EFICENT) <jordi.ballester@eficent.com>. | ||
* Enric Tobella <etobella@creublanca.es> | ||
* Atte Isopuro <atte.isopuro@avoin.systems> | ||
* Lois Rilo <lois.rilo@eficent.com> | ||
* Raul Martin <raul.martin@braintec-group.com> | ||
* Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com> | ||
* Maxime Chambreuil <mchambreuil@opensourceintegrators.com> | ||
* Steve Campbell <scampbell@opensourceintegrators.com> |
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,2 @@ | ||
* Eficent <https://www.eficent.com> | ||
* Open Source Integrators <https://www.opensourceintegrators.com> |
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,2 @@ | ||
This module was written to allow users to request products that are | ||
frequently stocked by the company, to be transferred to their chosen location. |
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,18 @@ | ||
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. |
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
Oops, something went wrong.