odoo-addon-stock-request 16.0.1.1.1__py3-none-any.whl → 16.0.1.1.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.
@@ -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:4debc7ac713fab61310ff8c78411ee14b640b3fc1b8950ce4360388e03bb6f90
10
+ !! source digest: sha256:0367d84dd491deef6c2a13a02b3b4f9275b939fa89e9c82f926a14a2e374452a
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": "16.0.1.1.1",
7
+ "version": "16.0.1.1.2",
8
8
  "license": "LGPL-3",
9
9
  "website": "https://github.com/OCA/stock-logistics-request",
10
10
  "author": "ForgeFlow, Odoo Community Association (OCA)",
@@ -881,7 +881,14 @@ msgstr ""
881
881
 
882
882
  #. module: stock_request
883
883
  #. odoo-python
884
- #: code:addons/stock_request/models/stock_request_abstract.py:0
884
+ #: code:addons/stock_request/models/stock_request.py:0
885
+ #, python-format
886
+ msgid "Stock Request product quantity cannot be negative."
887
+ msgstr ""
888
+
889
+ #. module: stock_request
890
+ #. odoo-python
891
+ #: code:addons/stock_request/models/stock_request.py:0
885
892
  #, python-format
886
893
  msgid "Stock Request product quantity has to be strictly positive."
887
894
  msgstr ""
@@ -125,6 +125,18 @@ class StockRequest(models.Model):
125
125
  ("name_uniq", "unique(name, company_id)", "Stock Request name must be unique")
126
126
  ]
127
127
 
128
+ @api.constrains("state", "product_qty")
129
+ def _check_qty(self):
130
+ for rec in self:
131
+ if rec.state == "draft" and rec.product_qty <= 0:
132
+ raise ValidationError(
133
+ _("Stock Request product quantity has to be strictly positive.")
134
+ )
135
+ elif rec.state != "draft" and rec.product_qty < 0:
136
+ raise ValidationError(
137
+ _("Stock Request product quantity cannot be negative.")
138
+ )
139
+
128
140
  def _get_all_origin_moves(self, move):
129
141
  all_moves = move
130
142
  if move.move_orig_ids:
@@ -206,14 +206,6 @@ class StockRequest(models.AbstractModel):
206
206
  )
207
207
  )
208
208
 
209
- @api.constrains("product_qty")
210
- def _check_qty(self):
211
- for rec in self:
212
- if rec.product_qty <= 0:
213
- raise ValidationError(
214
- _("Stock Request product quantity has to be strictly positive.")
215
- )
216
-
217
209
  @api.onchange("warehouse_id")
218
210
  def onchange_warehouse_id(self):
219
211
  """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:4debc7ac713fab61310ff8c78411ee14b640b3fc1b8950ce4360388e03bb6f90
370
+ !! source digest: sha256:0367d84dd491deef6c2a13a02b3b4f9275b939fa89e9c82f926a14a2e374452a
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/16.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-16-0/stock-logistics-request-16-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=16.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: 16.0.1.1.1
3
+ Version: 16.0.1.1.2
4
4
  Summary: Internal request for stock
5
5
  Home-page: https://github.com/OCA/stock-logistics-request
6
6
  Author: ForgeFlow, Odoo Community Association (OCA)
@@ -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:4debc7ac713fab61310ff8c78411ee14b640b3fc1b8950ce4360388e03bb6f90
25
+ !! source digest: sha256:0367d84dd491deef6c2a13a02b3b4f9275b939fa89e9c82f926a14a2e374452a
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=t25w1ZXiw0-ZIUQa4AexUMY-U1k8IcIcSTmzcTIU7ok,4854
1
+ odoo/addons/stock_request/README.rst,sha256=lBe_3XAIzSSRjtA-OTIpNbeYNv4No2A5n8ZGHUqQPRQ,4854
2
2
  odoo/addons/stock_request/__init__.py,sha256=X9EJGOE2GtZbS0G82PtSXmWSZ_R8jEM0rlJTDliQjp4,21
3
- odoo/addons/stock_request/__manifest__.py,sha256=RggoYHVr46AeL-eaAPfi2R11mi4kUvnlmHZCX4DYzqY,949
3
+ odoo/addons/stock_request/__manifest__.py,sha256=xZl-ZVU0f5-yqQgIPNmrxq5vFOWyaVGqiczjkxTNdTA,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=i9BK-xndT2QgHC1JTssjLLzsWjUjUM2qOCN4EVvw89M,44832
6
6
  odoo/addons/stock_request/i18n/de.po,sha256=rPGmSY_eVqkA5FXZ83-gN3DNOOauO2pKwszZe5N0Pyw,49000
@@ -25,7 +25,7 @@ odoo/addons/stock_request/i18n/pt_BR.po,sha256=inK8GJw2VqcyEa6IEvap66lPQ5VWtRsGo
25
25
  odoo/addons/stock_request/i18n/ro.po,sha256=gJ3bopVurSIlYWs1MX1n5LeDMHHAgjeEhSH2-wZ0a08,44875
26
26
  odoo/addons/stock_request/i18n/ru.po,sha256=ULkGnplUXyWrIkPTtUngihB9N4ejAc1iN5nYfkpC3rA,44991
27
27
  odoo/addons/stock_request/i18n/sl.po,sha256=cMysT5Fo3WvFSY0vluaAtJDe_B3ze49ElC1TuNfGo2c,44889
28
- odoo/addons/stock_request/i18n/stock_request.pot,sha256=ds57NmOZMweKqSlaObw929cTrWhOepRQ562otIGRofA,44528
28
+ odoo/addons/stock_request/i18n/stock_request.pot,sha256=dQq_jxmFlHrAq6sJfAUT4EsxudE0VZmfMxzX7O4egc4,44701
29
29
  odoo/addons/stock_request/i18n/tr.po,sha256=2EZKLmQ2FsWICtJt85HRBQpt9T44uG2UDSp7CCD_4lc,44829
30
30
  odoo/addons/stock_request/i18n/tr_TR.po,sha256=23CO1KRkr8xQDLp-2DbRmNPgMbI57NrUktdBU-fNt6I,44847
31
31
  odoo/addons/stock_request/i18n/vi_VN.po,sha256=cP8mbK8i22JLxP5tJoJv6URc3KRya7e9M5yu93mbmgw,44852
@@ -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=hDQhoO9GHD_-64C0VEcR9csAbldXHI_UtbbEVqVEyfQ,2812
39
39
  odoo/addons/stock_request/models/stock_move_line.py,sha256=yG9lnTjfAdUBdcclnrsB5bzvpItmpV0wrCHIh7hdJDQ,2773
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=Xn5gyULXY6m3rMi8kiW5QW6-quLEBJ2_R9K8ut_pld0,16754
42
- odoo/addons/stock_request/models/stock_request_abstract.py,sha256=HiMezc9W7V1N59gPf7hTXepOvsDcaw7FDlKpbE7kVq0,9492
41
+ odoo/addons/stock_request/models/stock_request.py,sha256=vT8cD1dEYWAmehfkL2ZUFGBRmoEVl4-5kb9U_5aL1yU,17250
42
+ odoo/addons/stock_request/models/stock_request_abstract.py,sha256=rpmbgEfV_pVb8AeYhE0dKRNrvZpXbhlfyKMy0p5MC8w,9226
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=ksl2Ab9NyGxO-I8UZwbxQd2y07nnYZfrhHOsHRD1KsE,15500
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=4nM10OVzHSG11_H2WsQ5HeIcPyGzceGq93qtJue1r0M,5886
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=XPZFlJomGfHo1Um5kiSUgZGzE4w6X4jiw741CfdMKJI,16078
57
+ odoo/addons/stock_request/static/description/index.html,sha256=5fS1kDWG2FelDyjj8urB7HiUychwF-76yq6Jvpgumok,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=qiUF5Vz17sX8vF4Aej81N6vMqdNSBPjAeEiXiwJct-M,67992
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=TChohKvG0MFc7K5TBNXAkQUU6CbJKdYBQea5gO6IbNg,10843
67
67
  odoo/addons/stock_request/views/stock_request_views.xml,sha256=zs_4N_VAskigIJp9i-kkG40QEqkxeteK-qcJ6MQqeqU,11757
68
- odoo_addon_stock_request-16.0.1.1.1.dist-info/METADATA,sha256=c4yMXYC32_M0--bScYOtuYSvN67ZohGUNS0LyM4Hx4c,5388
69
- odoo_addon_stock_request-16.0.1.1.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
70
- odoo_addon_stock_request-16.0.1.1.1.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
71
- odoo_addon_stock_request-16.0.1.1.1.dist-info/RECORD,,
68
+ odoo_addon_stock_request-16.0.1.1.2.dist-info/METADATA,sha256=XqiQ6TvN0G2CgyQET9ndJMlQaT8ioKv7xyBBpA2AVqs,5388
69
+ odoo_addon_stock_request-16.0.1.1.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
70
+ odoo_addon_stock_request-16.0.1.1.2.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
71
+ odoo_addon_stock_request-16.0.1.1.2.dist-info/RECORD,,