odoo-addon-stock-request 17.0.1.1.2.4__py3-none-any.whl → 17.0.1.1.3__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 +1 -1
- odoo/addons/stock_request/__manifest__.py +1 -1
- odoo/addons/stock_request/i18n/stock_request.pot +8 -1
- odoo/addons/stock_request/models/stock_request.py +12 -0
- odoo/addons/stock_request/models/stock_request_abstract.py +0 -8
- odoo/addons/stock_request/static/description/index.html +1 -1
- {odoo_addon_stock_request-17.0.1.1.2.4.dist-info → odoo_addon_stock_request-17.0.1.1.3.dist-info}/METADATA +2 -2
- {odoo_addon_stock_request-17.0.1.1.2.4.dist-info → odoo_addon_stock_request-17.0.1.1.3.dist-info}/RECORD +10 -10
- {odoo_addon_stock_request-17.0.1.1.2.4.dist-info → odoo_addon_stock_request-17.0.1.1.3.dist-info}/WHEEL +0 -0
- {odoo_addon_stock_request-17.0.1.1.2.4.dist-info → odoo_addon_stock_request-17.0.1.1.3.dist-info}/top_level.txt +0 -0
@@ -7,7 +7,7 @@ Stock Request
|
|
7
7
|
!! This file is generated by oca-gen-addon-readme !!
|
8
8
|
!! changes will be overwritten. !!
|
9
9
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
10
|
-
!! source digest: sha256:
|
10
|
+
!! source digest: sha256:81609ee30a33c441cb1055814e9b5e270bc644fb69cfb04b3a9103a9a39e4e8e
|
11
11
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
12
12
|
|
13
13
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
@@ -4,7 +4,7 @@
|
|
4
4
|
{
|
5
5
|
"name": "Stock Request",
|
6
6
|
"summary": "Internal request for stock",
|
7
|
-
"version": "17.0.1.1.
|
7
|
+
"version": "17.0.1.1.3",
|
8
8
|
"license": "LGPL-3",
|
9
9
|
"website": "https://github.com/OCA/stock-logistics-request",
|
10
10
|
"author": "ForgeFlow, Odoo Community Association (OCA)",
|
@@ -866,7 +866,14 @@ msgstr ""
|
|
866
866
|
|
867
867
|
#. module: stock_request
|
868
868
|
#. odoo-python
|
869
|
-
#: code:addons/stock_request/models/
|
869
|
+
#: code:addons/stock_request/models/stock_request.py:0
|
870
|
+
#, python-format
|
871
|
+
msgid "Stock Request product quantity cannot be negative."
|
872
|
+
msgstr ""
|
873
|
+
|
874
|
+
#. module: stock_request
|
875
|
+
#. odoo-python
|
876
|
+
#: code:addons/stock_request/models/stock_request.py:0
|
870
877
|
#, python-format
|
871
878
|
msgid "Stock Request product quantity has to be strictly positive."
|
872
879
|
msgstr ""
|
@@ -111,6 +111,18 @@ class StockRequest(models.Model):
|
|
111
111
|
("name_uniq", "unique(name, company_id)", "Stock Request name must be unique")
|
112
112
|
]
|
113
113
|
|
114
|
+
@api.constrains("state", "product_qty")
|
115
|
+
def _check_qty(self):
|
116
|
+
for rec in self:
|
117
|
+
if rec.state == "draft" and rec.product_qty <= 0:
|
118
|
+
raise ValidationError(
|
119
|
+
_("Stock Request product quantity has to be strictly positive.")
|
120
|
+
)
|
121
|
+
elif rec.state != "draft" and rec.product_qty < 0:
|
122
|
+
raise ValidationError(
|
123
|
+
_("Stock Request product quantity cannot be negative.")
|
124
|
+
)
|
125
|
+
|
114
126
|
def _get_all_origin_moves(self, move):
|
115
127
|
all_moves = move
|
116
128
|
if move.move_orig_ids:
|
@@ -207,14 +207,6 @@ class StockRequest(models.AbstractModel):
|
|
207
207
|
)
|
208
208
|
)
|
209
209
|
|
210
|
-
@api.constrains("product_qty")
|
211
|
-
def _check_qty(self):
|
212
|
-
for rec in self:
|
213
|
-
if rec.product_qty <= 0:
|
214
|
-
raise ValidationError(
|
215
|
-
_("Stock Request product quantity has to be strictly positive.")
|
216
|
-
)
|
217
|
-
|
218
210
|
@api.onchange("warehouse_id")
|
219
211
|
def onchange_warehouse_id(self):
|
220
212
|
"""Finds location id for changed warehouse."""
|
@@ -367,7 +367,7 @@ ul.auto-toc {
|
|
367
367
|
!! This file is generated by oca-gen-addon-readme !!
|
368
368
|
!! changes will be overwritten. !!
|
369
369
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
370
|
-
!! source digest: sha256:
|
370
|
+
!! source digest: sha256:81609ee30a33c441cb1055814e9b5e270bc644fb69cfb04b3a9103a9a39e4e8e
|
371
371
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
372
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/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
373
|
<p>This module was written to allow users to request products that are
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: odoo-addon-stock_request
|
3
|
-
Version: 17.0.1.1.
|
3
|
+
Version: 17.0.1.1.3
|
4
4
|
Requires-Python: >=3.10
|
5
5
|
Requires-Dist: odoo>=17.0a,<17.1dev
|
6
6
|
Summary: Internal request for stock
|
@@ -22,7 +22,7 @@ Stock Request
|
|
22
22
|
!! This file is generated by oca-gen-addon-readme !!
|
23
23
|
!! changes will be overwritten. !!
|
24
24
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
25
|
-
!! source digest: sha256:
|
25
|
+
!! source digest: sha256:81609ee30a33c441cb1055814e9b5e270bc644fb69cfb04b3a9103a9a39e4e8e
|
26
26
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
27
27
|
|
28
28
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
@@ -1,6 +1,6 @@
|
|
1
|
-
odoo/addons/stock_request/README.rst,sha256=
|
1
|
+
odoo/addons/stock_request/README.rst,sha256=alwhkmmDfzmX6ErXJ0fd_lZ5tnP0ujqS7JMDXE1izZ0,4877
|
2
2
|
odoo/addons/stock_request/__init__.py,sha256=X9EJGOE2GtZbS0G82PtSXmWSZ_R8jEM0rlJTDliQjp4,21
|
3
|
-
odoo/addons/stock_request/__manifest__.py,sha256=
|
3
|
+
odoo/addons/stock_request/__manifest__.py,sha256=Yy3y_Yw4xDY5qma8syyuXSHvqKW8W8N5Sh5wmJNuRW8,949
|
4
4
|
odoo/addons/stock_request/data/stock_request_sequence_data.xml,sha256=MKvzK__cH1gecmyqWK6Vj7yJ0o1-oKbqy2ydNoTUhs0,683
|
5
5
|
odoo/addons/stock_request/i18n/ca.po,sha256=K7k2pKPgiT_f_hhiSuGqE5nKiuuTQfE52N1yZpdFoKc,43747
|
6
6
|
odoo/addons/stock_request/i18n/de.po,sha256=zFpQ3Zx1BibsrNT-4OAalUwJH7HPvj02tfgKbbXw-b0,49018
|
@@ -25,7 +25,7 @@ odoo/addons/stock_request/i18n/pt_BR.po,sha256=Bp0d7iYJS512KuJXUF2pdd88tCKBgoiMP
|
|
25
25
|
odoo/addons/stock_request/i18n/ro.po,sha256=l4lXi6Qwwso_vuo6PM4Qi-M7Dty5t3qzTrRTHKc6k3o,43790
|
26
26
|
odoo/addons/stock_request/i18n/ru.po,sha256=T-EKd7hI_45JzILBq4aw2WEf3LF57cL-xt07NBoDIro,43906
|
27
27
|
odoo/addons/stock_request/i18n/sl.po,sha256=K3S3gAJy5XOWyzbZzknlaV-pnSfqIfjwayx7bUGwD-8,43804
|
28
|
-
odoo/addons/stock_request/i18n/stock_request.pot,sha256=
|
28
|
+
odoo/addons/stock_request/i18n/stock_request.pot,sha256=PEnOU4Sx2iLKCQFctJWB0Tey5z4e36CvakfJhNY20gs,43616
|
29
29
|
odoo/addons/stock_request/i18n/tr.po,sha256=Ue8Edq20WQk8J-bHFvV26V3PHAWJ7DMY0sQYeCS3AzI,43744
|
30
30
|
odoo/addons/stock_request/i18n/tr_TR.po,sha256=qK1c4dZWh4xxoPFl8gGd4E3Jgsl-jKS9B4MUrowm-2w,43762
|
31
31
|
odoo/addons/stock_request/i18n/vi_VN.po,sha256=ayKYfR3h5mzt1j3IxLY5DXRgn48AsX0r5OzxrwnHfGs,43767
|
@@ -38,8 +38,8 @@ odoo/addons/stock_request/models/stock_location.py,sha256=ckie9pUiJ2r_pU_-ojYZie
|
|
38
38
|
odoo/addons/stock_request/models/stock_move.py,sha256=Pu8aIo3ydPuoUbUuBcKjCND_VRilp5Uh6AKnzQmbOhs,2782
|
39
39
|
odoo/addons/stock_request/models/stock_move_line.py,sha256=75R5LJjHZtU-fTHcC_vhnoMhgDEG-S9fYuUsD_vmzQ4,2765
|
40
40
|
odoo/addons/stock_request/models/stock_picking.py,sha256=XmdxMG-GNKJjF6RE8inj45TBy1eEhmRh4nzb-0bMQs0,1339
|
41
|
-
odoo/addons/stock_request/models/stock_request.py,sha256=
|
42
|
-
odoo/addons/stock_request/models/stock_request_abstract.py,sha256=
|
41
|
+
odoo/addons/stock_request/models/stock_request.py,sha256=E4ikDg5qmLE9k_ZowZzBIbDB4mw1lSzW7SJH0rR1khY,17183
|
42
|
+
odoo/addons/stock_request/models/stock_request_abstract.py,sha256=FavjvJjix1x8_uG6BOVmeFavMJCT6l4tq9Aj2CBUSME,9239
|
43
43
|
odoo/addons/stock_request/models/stock_request_allocation.py,sha256=Kqq6VcZgYSbw2OSooeWgzVLBlWyiVJbR71dyKciPzUg,2927
|
44
44
|
odoo/addons/stock_request/models/stock_request_order.py,sha256=jkNQT2dkocE9F_xT9zWYBHmvsI2GSHFUvTaaT8B5qw8,15146
|
45
45
|
odoo/addons/stock_request/models/stock_route.py,sha256=VFATxVyY7QGHjX3R83wSrST-EgXstJZY1QS0uALgbQw,853
|
@@ -54,7 +54,7 @@ odoo/addons/stock_request/security/ir.model.access.csv,sha256=dsUwAR79-qQNVwCZhv
|
|
54
54
|
odoo/addons/stock_request/security/stock_request_security.xml,sha256=VP0gCObFyM2wl0jcsO_J0vt2_jV0BQWtj4UMSqPellA,5978
|
55
55
|
odoo/addons/stock_request/static/description/icon.png,sha256=HZGM_z7Ta3zNQ2924BUiMfDuVSCWqrEwUQMWXBnK7yk,15218
|
56
56
|
odoo/addons/stock_request/static/description/icon.svg,sha256=e3qo4KGYRy7Mfzhb_bCfVA-73Rk2Lx1z9_kz7tTjdO0,9771
|
57
|
-
odoo/addons/stock_request/static/description/index.html,sha256=
|
57
|
+
odoo/addons/stock_request/static/description/index.html,sha256=pBE4LvMy8bMzFcNMogoH9GvxvXjTAuqqkS0f9zbLcIQ,16078
|
58
58
|
odoo/addons/stock_request/tests/__init__.py,sha256=3NQ2fafGprBbsMjR2Y__yzyvFX5Vio1r0j6tT3FTbas,33
|
59
59
|
odoo/addons/stock_request/tests/test_stock_request.py,sha256=-5F3qsypedUL8xu0FGIHzdtbGMBOwrZ0R1IXQwOmuwU,68366
|
60
60
|
odoo/addons/stock_request/views/product.xml,sha256=CJ6RE5uGQLlIMDCPKxw8nhodb_rR3jaj-mF5ozCFUKI,1517
|
@@ -65,7 +65,7 @@ odoo/addons/stock_request/views/stock_request_allocation_views.xml,sha256=NhoVR2
|
|
65
65
|
odoo/addons/stock_request/views/stock_request_menu.xml,sha256=S_3HPkmYcHC_xtPjusHiZX7RUW5CGrJW3w52ScnJFNw,1308
|
66
66
|
odoo/addons/stock_request/views/stock_request_order_views.xml,sha256=xVN0r-S1h9B4xg-duX00qNix3SM-4kTmDDP5JUzvA5s,11383
|
67
67
|
odoo/addons/stock_request/views/stock_request_views.xml,sha256=o_9aY_EOfHymmrg79uQJcVi4snCTUMt3CWacxmnIrxY,12136
|
68
|
-
odoo_addon_stock_request-17.0.1.1.
|
69
|
-
odoo_addon_stock_request-17.0.1.1.
|
70
|
-
odoo_addon_stock_request-17.0.1.1.
|
71
|
-
odoo_addon_stock_request-17.0.1.1.
|
68
|
+
odoo_addon_stock_request-17.0.1.1.3.dist-info/METADATA,sha256=0w68aPpsDuZ-ZlDPa4FhizN2X578v0Zj3qOtiracg1g,5410
|
69
|
+
odoo_addon_stock_request-17.0.1.1.3.dist-info/WHEEL,sha256=8Rd4enx1PCuyDWP4SABqO5Fv8rpaknqp3VzjoFFLa6c,83
|
70
|
+
odoo_addon_stock_request-17.0.1.1.3.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
71
|
+
odoo_addon_stock_request-17.0.1.1.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|