odoo-addon-stock-request 16.0.1.0.0.2__py3-none-any.whl → 17.0.1.0.0.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- odoo/addons/stock_request/README.rst +41 -41
- odoo/addons/stock_request/__manifest__.py +1 -1
- odoo/addons/stock_request/i18n/de.po +48 -0
- odoo/addons/stock_request/i18n/es.po +3 -0
- odoo/addons/stock_request/i18n/stock_request.pot +14 -31
- odoo/addons/stock_request/i18n/zh_CN.po +48 -0
- odoo/addons/stock_request/models/stock_move.py +2 -2
- odoo/addons/stock_request/models/stock_move_line.py +4 -4
- odoo/addons/stock_request/models/stock_request.py +50 -43
- odoo/addons/stock_request/models/stock_request_abstract.py +2 -1
- odoo/addons/stock_request/models/stock_request_order.py +0 -13
- odoo/addons/stock_request/models/stock_rule.py +1 -1
- odoo/addons/stock_request/readme/CONFIGURE.md +16 -0
- odoo/addons/stock_request/readme/CONTRIBUTORS.md +13 -0
- odoo/addons/stock_request/readme/{DESCRIPTION.rst → DESCRIPTION.md} +2 -1
- odoo/addons/stock_request/readme/{ROADMAP.rst → ROADMAP.md} +3 -3
- odoo/addons/stock_request/readme/USAGE.md +16 -0
- odoo/addons/stock_request/security/stock_request_security.xml +5 -1
- odoo/addons/stock_request/static/description/index.html +17 -17
- odoo/addons/stock_request/tests/test_stock_request.py +171 -149
- odoo/addons/stock_request/views/res_config_settings_views.xml +72 -108
- odoo/addons/stock_request/views/stock_picking_views.xml +1 -1
- odoo/addons/stock_request/views/stock_request_order_views.xml +40 -36
- odoo/addons/stock_request/views/stock_request_views.xml +40 -39
- {odoo_addon_stock_request-16.0.1.0.0.2.dist-info → odoo_addon_stock_request-17.0.1.0.0.2.dist-info}/METADATA +47 -50
- {odoo_addon_stock_request-16.0.1.0.0.2.dist-info → odoo_addon_stock_request-17.0.1.0.0.2.dist-info}/RECORD +28 -28
- {odoo_addon_stock_request-16.0.1.0.0.2.dist-info → odoo_addon_stock_request-17.0.1.0.0.2.dist-info}/WHEEL +1 -1
- odoo_addon_stock_request-17.0.1.0.0.2.dist-info/top_level.txt +1 -0
- odoo/addons/stock_request/readme/CONFIGURE.rst +0 -17
- odoo/addons/stock_request/readme/CONTRIBUTORS.rst +0 -15
- odoo/addons/stock_request/readme/USAGE.rst +0 -16
- odoo_addon_stock_request-16.0.1.0.0.2.dist-info/top_level.txt +0 -1
@@ -39,7 +39,6 @@ class StockRequestOrder(models.Model):
|
|
39
39
|
copy=False,
|
40
40
|
required=True,
|
41
41
|
readonly=True,
|
42
|
-
states={"draft": [("readonly", False)]},
|
43
42
|
default="/",
|
44
43
|
)
|
45
44
|
state = fields.Selection(
|
@@ -63,20 +62,16 @@ class StockRequestOrder(models.Model):
|
|
63
62
|
comodel_name="stock.warehouse",
|
64
63
|
string="Warehouse",
|
65
64
|
check_company=True,
|
66
|
-
readonly=True,
|
67
65
|
ondelete="cascade",
|
68
66
|
required=True,
|
69
|
-
states={"draft": [("readonly", False)]},
|
70
67
|
)
|
71
68
|
location_id = fields.Many2one(
|
72
69
|
comodel_name="stock.location",
|
73
70
|
string="Location",
|
74
71
|
domain="not allow_virtual_location and "
|
75
72
|
"[('usage', 'in', ['internal', 'transit'])] or []",
|
76
|
-
readonly=True,
|
77
73
|
ondelete="cascade",
|
78
74
|
required=True,
|
79
|
-
states={"draft": [("readonly", False)]},
|
80
75
|
)
|
81
76
|
allow_virtual_location = fields.Boolean(
|
82
77
|
related="company_id.stock_request_allow_virtual_loc", readonly=True
|
@@ -84,8 +79,6 @@ class StockRequestOrder(models.Model):
|
|
84
79
|
procurement_group_id = fields.Many2one(
|
85
80
|
"procurement.group",
|
86
81
|
"Procurement Group",
|
87
|
-
readonly=True,
|
88
|
-
states={"draft": [("readonly", False)]},
|
89
82
|
help="Moves created through this stock request will be put in this "
|
90
83
|
"procurement group. If none is given, the moves generated by "
|
91
84
|
"procurement rules will be grouped into one big picking.",
|
@@ -94,16 +87,12 @@ class StockRequestOrder(models.Model):
|
|
94
87
|
"res.company",
|
95
88
|
"Company",
|
96
89
|
required=True,
|
97
|
-
readonly=True,
|
98
|
-
states={"draft": [("readonly", False)]},
|
99
90
|
default=lambda self: self.env.company,
|
100
91
|
)
|
101
92
|
expected_date = fields.Datetime(
|
102
93
|
default=fields.Datetime.now,
|
103
94
|
index=True,
|
104
95
|
required=True,
|
105
|
-
readonly=True,
|
106
|
-
states={"draft": [("readonly", False)]},
|
107
96
|
help="Date when you expect to receive the goods.",
|
108
97
|
)
|
109
98
|
picking_policy = fields.Selection(
|
@@ -113,8 +102,6 @@ class StockRequestOrder(models.Model):
|
|
113
102
|
],
|
114
103
|
string="Shipping Policy",
|
115
104
|
required=True,
|
116
|
-
readonly=True,
|
117
|
-
states={"draft": [("readonly", False)]},
|
118
105
|
default="direct",
|
119
106
|
)
|
120
107
|
move_ids = fields.One2many(
|
@@ -0,0 +1,16 @@
|
|
1
|
+
To configure this module:
|
2
|
+
|
3
|
+
- Go to Stock Requests \> Settings
|
4
|
+
|
5
|
+
Users should be assigned to the groups 'Stock Request / User' or 'Stock
|
6
|
+
Request / Manager'.
|
7
|
+
|
8
|
+
\## Group Stock Request / User
|
9
|
+
|
10
|
+
- Can see her/his own Stock Requests, and others that she/he's been
|
11
|
+
granted permission to follow.
|
12
|
+
- Can create/update only her/his Stock Requests.
|
13
|
+
|
14
|
+
\## Group Stock Request / Manager
|
15
|
+
|
16
|
+
- Can fully manage all Stock Requests
|
@@ -0,0 +1,13 @@
|
|
1
|
+
- Jordi Ballester (EFICENT) \<<jordi.ballester@forgeflow.com>\>.
|
2
|
+
- Enric Tobella \<<etobella@creublanca.es>\>
|
3
|
+
- Atte Isopuro \<<atte.isopuro@avoin.systems>\>
|
4
|
+
- Lois Rilo \<<lois.rilo@forgeflow.com>\>
|
5
|
+
- Raul Martin \<<raul.martin@braintec-group.com>\>
|
6
|
+
- Serpent Consulting Services Pvt. Ltd. \<<support@serpentcs.com>\>
|
7
|
+
- [Open Source Integrators](https://www.opensourceintegrators.com)
|
8
|
+
- Maxime Chambreuil \<<mchambreuil@opensourceintegrators.com>\>
|
9
|
+
- Steve Campbell \<<scampbell@opensourceintegrators.com>\>
|
10
|
+
- Héctor Villarreal \<<hector.villarreal@forgeflow.com>\>
|
11
|
+
- Kitti U. \<<kittiu@ecosoft.co.th>\>
|
12
|
+
- Bernat Puig \<<bernat.puig@forgeflow.com>\>
|
13
|
+
- Oriol Miranda \<<oriol.miranda@forgeflow.com>\>
|
@@ -1,5 +1,5 @@
|
|
1
|
-
There is no way to achieve Storck Request and Stock Request Orders.
|
2
|
-
|
3
|
-
|
1
|
+
There is no way to achieve Storck Request and Stock Request Orders. It
|
2
|
+
should be developed taking into account that only Cancel and Done stock
|
3
|
+
request can be archived.
|
4
4
|
|
5
5
|
It is also required to manage active field logically from Orders to SRs.
|
@@ -0,0 +1,16 @@
|
|
1
|
+
\## Creation
|
2
|
+
|
3
|
+
- Go to 'Stock Requests / Stock Requests' and create a new Request.
|
4
|
+
- Indicate a product, quantity and location.
|
5
|
+
- Press 'Confirm'.
|
6
|
+
|
7
|
+
Upon confirmation the request will be evaluated using the procurement
|
8
|
+
rules for the selected location.
|
9
|
+
|
10
|
+
In case that transfers are created, the user will be able to access to
|
11
|
+
them from the button 'Transfers' available in the Stock Request.
|
12
|
+
|
13
|
+
\## Cancel
|
14
|
+
|
15
|
+
When the user cancels a Stock Request, the related pending stock moves
|
16
|
+
will be also cancelled.
|
@@ -29,7 +29,11 @@
|
|
29
29
|
<data noupdate="1">
|
30
30
|
<record model="ir.rule" id="stock_picking_rule">
|
31
31
|
<field name="name">stock_request multi-company</field>
|
32
|
-
<field
|
32
|
+
<field
|
33
|
+
name="model_id"
|
34
|
+
search="[('model','=','stock.request')]"
|
35
|
+
model="ir.model"
|
36
|
+
/>
|
33
37
|
<field name="global" eval="True" />
|
34
38
|
<field
|
35
39
|
name="domain_force"
|
@@ -1,4 +1,3 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
2
1
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
2
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
3
|
<head>
|
@@ -367,11 +366,12 @@ ul.auto-toc {
|
|
367
366
|
!! This file is generated by oca-gen-addon-readme !!
|
368
367
|
!! changes will be overwritten. !!
|
369
368
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
370
|
-
!! source digest: sha256:
|
369
|
+
!! source digest: sha256:a6ad00aa5c7750ab61a1779781df12ad36dd4d825a469e9171796efb048ede46
|
371
370
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
372
|
-
<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/
|
371
|
+
<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&target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
373
372
|
<p>This module was written to allow users to request products that are
|
374
|
-
frequently stocked by the company, to be transferred to their chosen
|
373
|
+
frequently stocked by the company, to be transferred to their chosen
|
374
|
+
location.</p>
|
375
375
|
<p><strong>Table of contents</strong></p>
|
376
376
|
<div class="contents local topic" id="contents">
|
377
377
|
<ul class="simple">
|
@@ -397,8 +397,8 @@ frequently stocked by the company, to be transferred to their chosen location.</
|
|
397
397
|
Request / Manager’.</p>
|
398
398
|
<p>## Group Stock Request / User</p>
|
399
399
|
<ul class="simple">
|
400
|
-
<li>Can see her/his own Stock Requests, and others that she/he’s been
|
401
|
-
permission to follow.</li>
|
400
|
+
<li>Can see her/his own Stock Requests, and others that she/he’s been
|
401
|
+
granted permission to follow.</li>
|
402
402
|
<li>Can create/update only her/his Stock Requests.</li>
|
403
403
|
</ul>
|
404
404
|
<p>## Group Stock Request / Manager</p>
|
@@ -414,19 +414,19 @@ permission to follow.</li>
|
|
414
414
|
<li>Indicate a product, quantity and location.</li>
|
415
415
|
<li>Press ‘Confirm’.</li>
|
416
416
|
</ul>
|
417
|
-
<p>Upon confirmation the request will be evaluated using the procurement
|
418
|
-
for the selected location.</p>
|
419
|
-
<p>In case that transfers are created, the user will be able to access to
|
420
|
-
from the button ‘Transfers’ available in the Stock Request.</p>
|
417
|
+
<p>Upon confirmation the request will be evaluated using the procurement
|
418
|
+
rules for the selected location.</p>
|
419
|
+
<p>In case that transfers are created, the user will be able to access to
|
420
|
+
them from the button ‘Transfers’ available in the Stock Request.</p>
|
421
421
|
<p>## Cancel</p>
|
422
|
-
<p>When the user cancels a Stock Request, the related pending stock moves
|
423
|
-
also cancelled.</p>
|
422
|
+
<p>When the user cancels a Stock Request, the related pending stock moves
|
423
|
+
will be also cancelled.</p>
|
424
424
|
</div>
|
425
425
|
<div class="section" id="known-issues-roadmap">
|
426
426
|
<h1><a class="toc-backref" href="#toc-entry-3">Known issues / Roadmap</a></h1>
|
427
|
-
<p>There is no way to achieve Storck Request and Stock Request Orders.
|
428
|
-
|
429
|
-
|
427
|
+
<p>There is no way to achieve Storck Request and Stock Request Orders. It
|
428
|
+
should be developed taking into account that only Cancel and Done stock
|
429
|
+
request can be archived.</p>
|
430
430
|
<p>It is also required to manage active field logically from Orders to SRs.</p>
|
431
431
|
</div>
|
432
432
|
<div class="section" id="bug-tracker">
|
@@ -434,7 +434,7 @@ stock request can be archived.</p>
|
|
434
434
|
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/stock-logistics-request/issues">GitHub Issues</a>.
|
435
435
|
In case of trouble, please check there if your issue has already been reported.
|
436
436
|
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
437
|
-
<a class="reference external" href="https://github.com/OCA/stock-logistics-request/issues/new?body=module:%20stock_request%0Aversion:%
|
437
|
+
<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>
|
438
438
|
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
439
439
|
</div>
|
440
440
|
<div class="section" id="credits">
|
@@ -472,7 +472,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
|
472
472
|
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
|
473
473
|
mission is to support the collaborative development of Odoo features and
|
474
474
|
promote its widespread use.</p>
|
475
|
-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-request/tree/
|
475
|
+
<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>
|
476
476
|
<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>
|
477
477
|
</div>
|
478
478
|
</div>
|