odoo-addon-stock-request 17.0.1.1.4__py3-none-any.whl → 18.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.
@@ -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:1cb4dde73ccf1b2695a5d8e96c3b1041a9f5e1cd57bf38db63dc05870df6f8bd
10
+ !! source digest: sha256:7cd221a4bb7987a1b01edadc34e303112d18db83d309d806120c74b523fb48ad
11
11
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
12
 
13
13
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -17,13 +17,13 @@ Stock Request
17
17
  :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
18
18
  :alt: License: LGPL-3
19
19
  .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--request-lightgray.png?logo=github
20
- :target: https://github.com/OCA/stock-logistics-request/tree/17.0/stock_request
20
+ :target: https://github.com/OCA/stock-logistics-request/tree/18.0/stock_request
21
21
  :alt: OCA/stock-logistics-request
22
22
  .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23
- :target: https://translation.odoo-community.org/projects/stock-logistics-request-17-0/stock-logistics-request-17-0-stock_request
23
+ :target: https://translation.odoo-community.org/projects/stock-logistics-request-18-0/stock-logistics-request-18-0-stock_request
24
24
  :alt: Translate me on Weblate
25
25
  .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26
- :target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-request&target_branch=17.0
26
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-request&target_branch=18.0
27
27
  :alt: Try me on Runboat
28
28
 
29
29
  |badge1| |badge2| |badge3| |badge4| |badge5|
@@ -92,7 +92,7 @@ Bug Tracker
92
92
  Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-request/issues>`_.
93
93
  In case of trouble, please check there if your issue has already been reported.
94
94
  If you spotted it first, help us to smash it by providing a detailed and welcomed
95
- `feedback <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**>`_.
95
+ `feedback <https://github.com/OCA/stock-logistics-request/issues/new?body=module:%20stock_request%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
96
96
 
97
97
  Do not contact contributors directly about support or help with technical issues.
98
98
 
@@ -147,6 +147,6 @@ Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:
147
147
 
148
148
  |maintainer-LoisRForgeFlow| |maintainer-etobella|
149
149
 
150
- This module is part of the `OCA/stock-logistics-request <https://github.com/OCA/stock-logistics-request/tree/17.0/stock_request>`_ project on GitHub.
150
+ This module is part of the `OCA/stock-logistics-request <https://github.com/OCA/stock-logistics-request/tree/18.0/stock_request>`_ project on GitHub.
151
151
 
152
152
  You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
@@ -4,7 +4,7 @@
4
4
  {
5
5
  "name": "Stock Request",
6
6
  "summary": "Internal request for stock",
7
- "version": "17.0.1.1.4",
7
+ "version": "18.0.1.0.0",
8
8
  "license": "LGPL-3",
9
9
  "website": "https://github.com/OCA/stock-logistics-request",
10
10
  "author": "ForgeFlow, Odoo Community Association (OCA)",
@@ -4,7 +4,7 @@
4
4
  #
5
5
  msgid ""
6
6
  msgstr ""
7
- "Project-Id-Version: Odoo Server 17.0\n"
7
+ "Project-Id-Version: Odoo Server 18.0\n"
8
8
  "Report-Msgid-Bugs-To: \n"
9
9
  "Last-Translator: \n"
10
10
  "Language-Team: \n"
@@ -16,10 +16,8 @@ msgstr ""
16
16
  #. module: stock_request
17
17
  #. odoo-python
18
18
  #: code:addons/stock_request/models/stock_move_line.py:0
19
- #, python-format
20
19
  msgid ""
21
- "<li><b>%(product_name)s</b>: Transferred quantity "
22
- "%(product_qty)s%(product_uom)s</li>"
20
+ "%(product_name)s : Transferred quantity %(product_qty)s %(product_uom)s"
23
21
  msgstr ""
24
22
 
25
23
  #. module: stock_request
@@ -162,7 +160,6 @@ msgstr ""
162
160
  #. module: stock_request
163
161
  #. odoo-python
164
162
  #: code:addons/stock_request/models/stock_request.py:0
165
- #, python-format
166
163
  msgid "Company must be equal to the order"
167
164
  msgstr ""
168
165
 
@@ -275,7 +272,6 @@ msgstr ""
275
272
  #. module: stock_request
276
273
  #. odoo-python
277
274
  #: code:addons/stock_request/models/stock_request.py:0
278
- #, python-format
279
275
  msgid "Expected date must be equal to the order"
280
276
  msgstr ""
281
277
 
@@ -354,8 +350,11 @@ msgstr ""
354
350
 
355
351
  #. module: stock_request
356
352
  #: model:ir.model.fields,help:stock_request.field_stock_request__message_has_error
353
+ #: model:ir.model.fields,help:stock_request.field_stock_request__message_has_sms_error
357
354
  #: model:ir.model.fields,help:stock_request.field_stock_request_abstract__message_has_error
355
+ #: model:ir.model.fields,help:stock_request.field_stock_request_abstract__message_has_sms_error
358
356
  #: model:ir.model.fields,help:stock_request.field_stock_request_order__message_has_error
357
+ #: model:ir.model.fields,help:stock_request.field_stock_request_order__message_has_sms_error
359
358
  msgid "If checked, some messages have a delivery error."
360
359
  msgstr ""
361
360
 
@@ -423,7 +422,6 @@ msgstr ""
423
422
  #. module: stock_request
424
423
  #. odoo-python
425
424
  #: code:addons/stock_request/models/stock_request.py:0
426
- #, python-format
427
425
  msgid "Location must be equal to the order"
428
426
  msgstr ""
429
427
 
@@ -477,7 +475,6 @@ msgstr ""
477
475
 
478
476
  #. module: stock_request
479
477
  #: model:ir.model.constraint,message:stock_request.constraint_stock_request_abstract_name_uniq
480
- #: model:ir.model.constraint,message:stock_request.constraint_stock_request_kanban_name_uniq
481
478
  msgid "Name must be unique"
482
479
  msgstr ""
483
480
 
@@ -533,14 +530,12 @@ msgstr ""
533
530
  #. module: stock_request
534
531
  #. odoo-python
535
532
  #: code:addons/stock_request/models/stock_request_order.py:0
536
- #, python-format
537
533
  msgid "Only orders on draft state can be unlinked"
538
534
  msgstr ""
539
535
 
540
536
  #. module: stock_request
541
537
  #. odoo-python
542
538
  #: code:addons/stock_request/models/stock_request.py:0
543
- #, python-format
544
539
  msgid "Only requests on draft state can be unlinked"
545
540
  msgstr ""
546
541
 
@@ -581,7 +576,6 @@ msgstr ""
581
576
  #. module: stock_request
582
577
  #. odoo-python
583
578
  #: code:addons/stock_request/models/stock_request.py:0
584
- #, python-format
585
579
  msgid "Procurement group must be equal to the order"
586
580
  msgstr ""
587
581
 
@@ -681,7 +675,6 @@ msgstr ""
681
675
  #. module: stock_request
682
676
  #. odoo-python
683
677
  #: code:addons/stock_request/models/stock_move_line.py:0
684
- #, python-format
685
678
  msgid ""
686
679
  "Receipt confirmation %(picking_name)s for your Request %(request_name)s"
687
680
  msgstr ""
@@ -723,7 +716,6 @@ msgstr ""
723
716
  #. module: stock_request
724
717
  #. odoo-python
725
718
  #: code:addons/stock_request/models/stock_request.py:0
726
- #, python-format
727
719
  msgid "Requested by must be equal to the order"
728
720
  msgstr ""
729
721
 
@@ -749,6 +741,13 @@ msgstr ""
749
741
  msgid "Routes"
750
742
  msgstr ""
751
743
 
744
+ #. module: stock_request
745
+ #: model:ir.model.fields,field_description:stock_request.field_stock_request__message_has_sms_error
746
+ #: model:ir.model.fields,field_description:stock_request.field_stock_request_abstract__message_has_sms_error
747
+ #: model:ir.model.fields,field_description:stock_request.field_stock_request_order__message_has_sms_error
748
+ msgid "SMS Delivery error"
749
+ msgstr ""
750
+
752
751
  #. module: stock_request
753
752
  #: model_terms:ir.ui.view,arch_db:stock_request.stock_request_order_form
754
753
  #: model_terms:ir.ui.view,arch_db:stock_request.view_stock_request_form
@@ -867,14 +866,12 @@ msgstr ""
867
866
  #. module: stock_request
868
867
  #. odoo-python
869
868
  #: code:addons/stock_request/models/stock_request.py:0
870
- #, python-format
871
869
  msgid "Stock Request product quantity cannot be negative."
872
870
  msgstr ""
873
871
 
874
872
  #. module: stock_request
875
873
  #. odoo-python
876
874
  #: code:addons/stock_request/models/stock_request.py:0
877
- #, python-format
878
875
  msgid "Stock Request product quantity has to be strictly positive."
879
876
  msgstr ""
880
877
 
@@ -929,14 +926,12 @@ msgstr ""
929
926
  #. odoo-python
930
927
  #: code:addons/stock_request/models/stock_move.py:0
931
928
  #: code:addons/stock_request/models/stock_request_order.py:0
932
- #, python-format
933
929
  msgid "The company of the stock request must match with that of the location."
934
930
  msgstr ""
935
931
 
936
932
  #. module: stock_request
937
933
  #. odoo-python
938
934
  #: code:addons/stock_request/models/stock_request_order.py:0
939
- #, python-format
940
935
  msgid ""
941
936
  "The company of the stock request must match with that of the warehouse."
942
937
  msgstr ""
@@ -944,7 +939,6 @@ msgstr ""
944
939
  #. module: stock_request
945
940
  #. odoo-python
946
941
  #: code:addons/stock_request/models/stock_move_line.py:0
947
- #, python-format
948
942
  msgid ""
949
943
  "The following requested items from Stock Request %(request_name)s have now "
950
944
  "been received in %(location_name)s using Picking %(picking_name)s:"
@@ -953,7 +947,6 @@ msgstr ""
953
947
  #. module: stock_request
954
948
  #. odoo-python
955
949
  #: code:addons/stock_request/models/stock_request.py:0
956
- #, python-format
957
950
  msgid "The picking policy must be equal to the order"
958
951
  msgstr ""
959
952
 
@@ -965,14 +958,12 @@ msgstr ""
965
958
  #. module: stock_request
966
959
  #. odoo-python
967
960
  #: code:addons/stock_request/models/stock_request_order.py:0
968
- #, python-format
969
961
  msgid "There should be at least one request item for confirming the order."
970
962
  msgstr ""
971
963
 
972
964
  #. module: stock_request
973
965
  #. odoo-python
974
966
  #: code:addons/stock_request/models/stock_request_order.py:0
975
- #, python-format
976
967
  msgid "This action only works in the context of products"
977
968
  msgstr ""
978
969
 
@@ -1027,7 +1018,6 @@ msgstr ""
1027
1018
  #. module: stock_request
1028
1019
  #. odoo-python
1029
1020
  #: code:addons/stock_request/models/stock_request.py:0
1030
- #, python-format
1031
1021
  msgid "Warehouse must be equal to the order"
1032
1022
  msgstr ""
1033
1023
 
@@ -1048,7 +1038,6 @@ msgstr ""
1048
1038
  #. module: stock_request
1049
1039
  #. odoo-python
1050
1040
  #: code:addons/stock_request/models/stock_location.py:0
1051
- #, python-format
1052
1041
  msgid ""
1053
1042
  "You cannot change the company of the location, as it is already assigned to "
1054
1043
  "stock request orders that belong to another company."
@@ -1057,7 +1046,6 @@ msgstr ""
1057
1046
  #. module: stock_request
1058
1047
  #. odoo-python
1059
1048
  #: code:addons/stock_request/models/stock_location.py:0
1060
- #, python-format
1061
1049
  msgid ""
1062
1050
  "You cannot change the company of the location, as it is already assigned to "
1063
1051
  "stock requests that belong to another company."
@@ -1066,7 +1054,6 @@ msgstr ""
1066
1054
  #. module: stock_request
1067
1055
  #. odoo-python
1068
1056
  #: code:addons/stock_request/models/stock_route.py:0
1069
- #, python-format
1070
1057
  msgid ""
1071
1058
  "You cannot change the company of the route, as it is already assigned to "
1072
1059
  "stock requests that belong to another company."
@@ -1075,7 +1062,6 @@ msgstr ""
1075
1062
  #. module: stock_request
1076
1063
  #. odoo-python
1077
1064
  #: code:addons/stock_request/models/stock_warehouse.py:0
1078
- #, python-format
1079
1065
  msgid ""
1080
1066
  "You cannot change the company of the warehouse, as it is already assigned to"
1081
1067
  " stock request orders that belong to another company."
@@ -1084,7 +1070,6 @@ msgstr ""
1084
1070
  #. module: stock_request
1085
1071
  #. odoo-python
1086
1072
  #: code:addons/stock_request/models/stock_warehouse.py:0
1087
- #, python-format
1088
1073
  msgid ""
1089
1074
  "You cannot change the company of the warehouse, as it is already assigned to"
1090
1075
  " stock requests that belong to another company."
@@ -1093,35 +1078,30 @@ msgstr ""
1093
1078
  #. module: stock_request
1094
1079
  #. odoo-python
1095
1080
  #: code:addons/stock_request/models/stock_request_abstract.py:0
1096
- #, python-format
1097
1081
  msgid "You have entered a location that is assigned to another company."
1098
1082
  msgstr ""
1099
1083
 
1100
1084
  #. module: stock_request
1101
1085
  #. odoo-python
1102
1086
  #: code:addons/stock_request/models/stock_request_abstract.py:0
1103
- #, python-format
1104
1087
  msgid "You have entered a product that is assigned to another company."
1105
1088
  msgstr ""
1106
1089
 
1107
1090
  #. module: stock_request
1108
1091
  #. odoo-python
1109
1092
  #: code:addons/stock_request/models/stock_request_abstract.py:0
1110
- #, python-format
1111
1093
  msgid "You have entered a route that is assigned to another company."
1112
1094
  msgstr ""
1113
1095
 
1114
1096
  #. module: stock_request
1115
1097
  #. odoo-python
1116
1098
  #: code:addons/stock_request/models/stock_request_abstract.py:0
1117
- #, python-format
1118
1099
  msgid "You have entered a warehouse that is assigned to another company."
1119
1100
  msgstr ""
1120
1101
 
1121
1102
  #. module: stock_request
1122
1103
  #. odoo-python
1123
1104
  #: code:addons/stock_request/models/stock_request_abstract.py:0
1124
- #, python-format
1125
1105
  msgid ""
1126
1106
  "You have to select a product unit of measure in the same category than the "
1127
1107
  "default unit of measure of the product"
@@ -1,6 +1,8 @@
1
1
  # Copyright 2017 ForgeFlow S.L.
2
2
  # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0).
3
3
 
4
+ from markupsafe import Markup
5
+
4
6
  from odoo import _, api, models
5
7
 
6
8
 
@@ -9,28 +11,31 @@ class StockMoveLine(models.Model):
9
11
 
10
12
  @api.model
11
13
  def _stock_request_confirm_done_message_content(self, message_data):
12
- title = (
13
- _("Receipt confirmation %(picking_name)s for your Request %(request_name)s")
14
- % message_data
14
+ title = Markup("<h3>%s</h3>") % _(
15
+ "Receipt confirmation %(picking_name)s for your Request "
16
+ "%(request_name)s",
17
+ picking_name=message_data["picking_name"],
18
+ request_name=message_data["request_name"],
15
19
  )
16
- message = "<h3>%s</h3>" % title
17
- message += (
18
- _(
19
- "The following requested items from Stock Request %(request_name)s "
20
- "have now been received in %(location_name)s using Picking "
21
- "%(picking_name)s:"
22
- )
23
- % message_data
20
+
21
+ body = Markup("<p>%s</p>") % _(
22
+ "The following requested items from Stock Request %(request_name)s "
23
+ "have now been received in %(location_name)s using Picking "
24
+ "%(picking_name)s:",
25
+ request_name=message_data["request_name"],
26
+ location_name=message_data["location_name"],
27
+ picking_name=message_data["picking_name"],
24
28
  )
25
- message += "<ul>"
26
- message += (
27
- _(
28
- "<li><b>%(product_name)s</b>: Transferred quantity %(product_qty)s"
29
- "%(product_uom)s</li>"
30
- )
31
- % message_data
29
+
30
+ items = Markup("<ul><li><b>%s</b></li></ul>") % _(
31
+ "%(product_name)s : Transferred quantity %(product_qty)s %(product_uom)s",
32
+ product_name=message_data["product_name"],
33
+ product_qty=message_data["product_qty"],
34
+ product_uom=message_data["product_uom"],
32
35
  )
33
- message += "</ul>"
36
+
37
+ message = title + body + items
38
+
34
39
  return message
35
40
 
36
41
  def _prepare_message_data(self, ml, request, allocated_qty):
@@ -367,9 +367,9 @@ 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:1cb4dde73ccf1b2695a5d8e96c3b1041a9f5e1cd57bf38db63dc05870df6f8bd
370
+ !! source digest: sha256:7cd221a4bb7987a1b01edadc34e303112d18db83d309d806120c74b523fb48ad
371
371
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
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&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
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/18.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-18-0/stock-logistics-request-18-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=18.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
374
374
  frequently stocked by the company, to be transferred to their chosen
375
375
  location.</p>
@@ -435,7 +435,7 @@ request can be archived.</p>
435
435
  <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/stock-logistics-request/issues">GitHub Issues</a>.
436
436
  In case of trouble, please check there if your issue has already been reported.
437
437
  If you spotted it first, help us to smash it by providing a detailed and welcomed
438
- <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
+ <a class="reference external" href="https://github.com/OCA/stock-logistics-request/issues/new?body=module:%20stock_request%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
439
439
  <p>Do not contact contributors directly about support or help with technical issues.</p>
440
440
  </div>
441
441
  <div class="section" id="credits">
@@ -477,7 +477,7 @@ mission is to support the collaborative development of Odoo features and
477
477
  promote its widespread use.</p>
478
478
  <p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainers</a>:</p>
479
479
  <p><a class="reference external image-reference" href="https://github.com/LoisRForgeFlow"><img alt="LoisRForgeFlow" src="https://github.com/LoisRForgeFlow.png?size=40px" /></a> <a class="reference external image-reference" href="https://github.com/etobella"><img alt="etobella" src="https://github.com/etobella.png?size=40px" /></a></p>
480
- <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>
480
+ <p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-request/tree/18.0/stock_request">OCA/stock-logistics-request</a> project on GitHub.</p>
481
481
  <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>
482
482
  </div>
483
483
  </div>
@@ -118,7 +118,8 @@ class TestStockRequest(BaseCommon):
118
118
  default_code=default_code,
119
119
  uom_id=cls.env.ref("uom.product_uom_unit").id,
120
120
  company_id=company_id,
121
- type="product",
121
+ type="consu",
122
+ is_storable=True,
122
123
  **vals,
123
124
  )
124
125
  )
@@ -970,41 +971,42 @@ class TestStockRequestBase(TestStockRequest):
970
971
  stock_request.route_id = self.route_2
971
972
 
972
973
  def test_stock_request_order_from_products(self):
974
+ # Setup for Product Template and Attributes
973
975
  template_a = self.env["product.template"].create({"name": "ProductTemplate"})
974
976
  product_attribute = self._create_product_attribute("Attribute")
975
- product_att_value = self._create_product_attribute_value(
977
+
978
+ product_att_value1 = self._create_product_attribute_value(
976
979
  "Name-1", product_attribute.id
977
980
  )
981
+ product_att_value2 = self._create_product_attribute_value(
982
+ "Name-2", product_attribute.id
983
+ )
984
+ product_att_value3 = self._create_product_attribute_value(
985
+ "Name-3", product_attribute.id
986
+ )
987
+
978
988
  product_tmpl_att_line = self._create_product_template_attribute_line(
979
- template_a.id, product_attribute.id, product_att_value
989
+ template_a.id,
990
+ product_attribute.id,
991
+ product_att_value1 | product_att_value2 | product_att_value3,
980
992
  )
981
993
  template_a.attribute_line_ids |= product_tmpl_att_line
982
- product_tmpl_att_value = self.env["product.template.attribute.value"].search(
983
- []
984
- )[-1]
994
+
995
+ # Trigger the creation of all possible variants
996
+ template_a._create_variant_ids()
997
+
998
+ # Search for the the generated variants
985
999
  product_a1 = self.env["product.product"].search(
986
- [
987
- (
988
- "product_template_variant_value_ids.name",
989
- "=",
990
- product_tmpl_att_value.name,
991
- )
992
- ]
993
- )
994
- product_att_value = self._create_product_attribute_value(
995
- "Name-2", product_attribute.id
1000
+ [("product_template_variant_value_ids.name", "=", "Name-1")]
996
1001
  )
997
- template_a.attribute_line_ids.value_ids |= product_att_value
998
1002
  product_a2 = self.env["product.product"].search(
999
- [("product_template_variant_value_ids.name", "=", product_att_value.name)]
1003
+ [("product_template_variant_value_ids.name", "=", "Name-2")]
1000
1004
  )
1001
- product_att_value = self._create_product_attribute_value(
1002
- "Name-3", product_attribute.id
1003
- )
1004
- template_a.attribute_line_ids.value_ids |= product_att_value
1005
1005
  product_a3 = self.env["product.product"].search(
1006
- [("product_template_variant_value_ids.name", "=", product_att_value.name)]
1006
+ [("product_template_variant_value_ids.name", "=", "Name-3")]
1007
1007
  )
1008
+
1009
+ # Setup for Product B with one inactive variant
1008
1010
  product_b1 = self._create_product("CODEB1", "Product B1", self.main_company.id)
1009
1011
  template_b = product_b1.product_tmpl_id
1010
1012
  # One archived variant of B
@@ -1015,6 +1017,7 @@ class TestStockRequestBase(TestStockRequest):
1015
1017
  product_tmpl_id=template_b.id,
1016
1018
  active=False,
1017
1019
  )
1020
+
1018
1021
  order = self.request_order
1019
1022
 
1020
1023
  # Selecting some variants and creating an order
@@ -1137,9 +1140,9 @@ class TestStockRequestBase(TestStockRequest):
1137
1140
  group = self.env["procurement.group"].create({"name": "Procurement group"})
1138
1141
  product2 = self._create_product("SH2", "Shoes2", False)
1139
1142
  product3 = self._create_product("SH3", "Shoes3", False)
1140
- self.product.detailed_type = "consu"
1141
- product2.detailed_type = "consu"
1142
- product3.detailed_type = "consu"
1143
+ self.product.type = "consu"
1144
+ product2.type = "consu"
1145
+ product3.type = "consu"
1143
1146
  vals = {
1144
1147
  "company_id": self.main_company.id,
1145
1148
  "warehouse_id": self.warehouse.id,
@@ -1659,7 +1662,8 @@ class TestStockRequestOrderChainedTransfers(common.TransactionCase):
1659
1662
  default_code=default_code,
1660
1663
  uom_id=self.uom_unit.id,
1661
1664
  uom_po_id=self.uom_dozen.id,
1662
- type="product",
1665
+ type="consu",
1666
+ is_storable=True,
1663
1667
  **vals,
1664
1668
  )
1665
1669
  )
@@ -127,6 +127,7 @@
127
127
  <field name="name">Settings</field>
128
128
  <field name="type">ir.actions.act_window</field>
129
129
  <field name="res_model">res.config.settings</field>
130
+ <field name="path">stock-request-settings</field>
130
131
  <field name="view_mode">form</field>
131
132
  <field name="target">inline</field>
132
133
  <field name="context">{'module' : 'stock_request'}</field>
@@ -6,7 +6,7 @@
6
6
  <field name="name">stock.request.allocation.tree</field>
7
7
  <field name="model">stock.request.allocation</field>
8
8
  <field name="arch" type="xml">
9
- <tree>
9
+ <list>
10
10
  <field name="stock_request_id" />
11
11
  <field name="stock_move_id" />
12
12
  <field name="product_id" />
@@ -20,7 +20,7 @@
20
20
  <field name="allocated_product_qty" />
21
21
  <field name="open_product_qty" />
22
22
  <field name="company_id" groups="base.group_multi_company" />
23
- </tree>
23
+ </list>
24
24
  </field>
25
25
  </record>
26
26
  <record id="view_stock_request_allocation_form" model="ir.ui.view">
@@ -4,12 +4,12 @@
4
4
  <field name="name">stock.request.order.tree</field>
5
5
  <field name="model">stock.request.order</field>
6
6
  <field name="arch" type="xml">
7
- <tree>
7
+ <list>
8
8
  <field name="name" />
9
9
  <field name="warehouse_id" groups="stock.group_stock_multi_locations" />
10
10
  <field name="location_id" groups="stock.group_stock_multi_locations" />
11
11
  <field name="state" />
12
- </tree>
12
+ </list>
13
13
  </field>
14
14
  </record>
15
15
  <record model="ir.ui.view" id="stock_request_order_form">
@@ -134,7 +134,7 @@
134
134
  }"
135
135
  readonly="state != 'draft'"
136
136
  >
137
- <tree editable="bottom">
137
+ <list editable="bottom">
138
138
  <field name="name" readonly="1" optional="show" />
139
139
  <field name="product_id" />
140
140
  <field
@@ -170,16 +170,12 @@
170
170
  />
171
171
  <field name="company_id" column_invisible="1" />
172
172
  <field name="state" optional="show" />
173
- </tree>
173
+ </list>
174
174
  </field>
175
175
  </page>
176
176
  </notebook>
177
177
  </sheet>
178
- <div class="oe_chatter">
179
- <field name="message_follower_ids" widget="mail_followers" />
180
- <field name="activity_ids" widget="mail_activity" />
181
- <field name="message_ids" widget="mail_thread" />
182
- </div>
178
+ <chatter />
183
179
  </form>
184
180
  </field>
185
181
  </record>
@@ -227,6 +223,7 @@
227
223
  <field name="name">Stock Request Orders</field>
228
224
  <field name="type">ir.actions.act_window</field>
229
225
  <field name="res_model">stock.request.order</field>
230
- <field name="view_mode">tree,form</field>
226
+ <field name="path">stock-request-orders</field>
227
+ <field name="view_mode">list,form</field>
231
228
  </record>
232
229
  </odoo>
@@ -6,7 +6,7 @@
6
6
  <field name="name">stock.request.tree</field>
7
7
  <field name="model">stock.request</field>
8
8
  <field name="arch" type="xml">
9
- <tree
9
+ <list
10
10
  decoration-muted="state == 'cancel'"
11
11
  decoration-bf="message_needaction==True"
12
12
  >
@@ -32,7 +32,7 @@
32
32
  <field name="qty_done" optional="show" />
33
33
  <field name="qty_cancelled" optional="show" />
34
34
  <field name="state" optional="show" />
35
- </tree>
35
+ </list>
36
36
  </field>
37
37
  </record>
38
38
  <record model="ir.ui.view" id="stock_request_search">
@@ -233,11 +233,7 @@
233
233
  <!--Empty notebook to inherit pages from other related modules-->
234
234
  </notebook>
235
235
  </sheet>
236
- <div class="oe_chatter">
237
- <field name="message_follower_ids" widget="mail_followers" />
238
- <field name="activity_ids" widget="mail_activity" />
239
- <field name="message_ids" widget="mail_thread" />
240
- </div>
236
+ <chatter />
241
237
  </form>
242
238
  </field>
243
239
  </record>
@@ -245,7 +241,8 @@
245
241
  <field name="name">Stock Requests</field>
246
242
  <field name="res_model">stock.request</field>
247
243
  <field name="type">ir.actions.act_window</field>
248
- <field name="view_mode">tree,form,pivot</field>
244
+ <field name="path">stock-requests</field>
245
+ <field name="view_mode">list,form,pivot</field>
249
246
  <field name="context">{
250
247
  'search_default_current_requests': 1,
251
248
  'pivot_column_groupby': ['location_id'], 'pivot_row_groupby': ['product_id'], 'pivot_measures': ['product_uom_qty', 'qty_done'],
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-stock_request
3
- Version: 17.0.1.1.4
3
+ Version: 18.0.1.0.0.2
4
4
  Requires-Python: >=3.10
5
- Requires-Dist: odoo>=17.0a,<17.1dev
5
+ Requires-Dist: odoo==18.0.*
6
6
  Summary: Internal request for stock
7
7
  Home-page: https://github.com/OCA/stock-logistics-request
8
8
  License: LGPL-3
@@ -10,7 +10,7 @@ Author: ForgeFlow, Odoo Community Association (OCA)
10
10
  Author-email: support@odoo-community.org
11
11
  Classifier: Programming Language :: Python
12
12
  Classifier: Framework :: Odoo
13
- Classifier: Framework :: Odoo :: 17.0
13
+ Classifier: Framework :: Odoo :: 18.0
14
14
  Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
15
15
 
16
16
  =============
@@ -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:1cb4dde73ccf1b2695a5d8e96c3b1041a9f5e1cd57bf38db63dc05870df6f8bd
25
+ !! source digest: sha256:7cd221a4bb7987a1b01edadc34e303112d18db83d309d806120c74b523fb48ad
26
26
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
27
27
 
28
28
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -32,13 +32,13 @@ Stock Request
32
32
  :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
33
33
  :alt: License: LGPL-3
34
34
  .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--request-lightgray.png?logo=github
35
- :target: https://github.com/OCA/stock-logistics-request/tree/17.0/stock_request
35
+ :target: https://github.com/OCA/stock-logistics-request/tree/18.0/stock_request
36
36
  :alt: OCA/stock-logistics-request
37
37
  .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
38
- :target: https://translation.odoo-community.org/projects/stock-logistics-request-17-0/stock-logistics-request-17-0-stock_request
38
+ :target: https://translation.odoo-community.org/projects/stock-logistics-request-18-0/stock-logistics-request-18-0-stock_request
39
39
  :alt: Translate me on Weblate
40
40
  .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
41
- :target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-request&target_branch=17.0
41
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-request&target_branch=18.0
42
42
  :alt: Try me on Runboat
43
43
 
44
44
  |badge1| |badge2| |badge3| |badge4| |badge5|
@@ -107,7 +107,7 @@ Bug Tracker
107
107
  Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-request/issues>`_.
108
108
  In case of trouble, please check there if your issue has already been reported.
109
109
  If you spotted it first, help us to smash it by providing a detailed and welcomed
110
- `feedback <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**>`_.
110
+ `feedback <https://github.com/OCA/stock-logistics-request/issues/new?body=module:%20stock_request%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
111
111
 
112
112
  Do not contact contributors directly about support or help with technical issues.
113
113
 
@@ -162,6 +162,6 @@ Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:
162
162
 
163
163
  |maintainer-LoisRForgeFlow| |maintainer-etobella|
164
164
 
165
- This module is part of the `OCA/stock-logistics-request <https://github.com/OCA/stock-logistics-request/tree/17.0/stock_request>`_ project on GitHub.
165
+ This module is part of the `OCA/stock-logistics-request <https://github.com/OCA/stock-logistics-request/tree/18.0/stock_request>`_ project on GitHub.
166
166
 
167
167
  You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
@@ -1,6 +1,6 @@
1
- odoo/addons/stock_request/README.rst,sha256=PM25JVUe0m_AtPtkxDO0UgGFt_8GH8EwfPEqrbsNNOc,5300
1
+ odoo/addons/stock_request/README.rst,sha256=5NWGG7MkIkY2sptDQW2bb9RA0484yLdHwl05p3wqm2I,5300
2
2
  odoo/addons/stock_request/__init__.py,sha256=X9EJGOE2GtZbS0G82PtSXmWSZ_R8jEM0rlJTDliQjp4,21
3
- odoo/addons/stock_request/__manifest__.py,sha256=YlXcATG89BjhfUE1FO0vjtoj4ZQ9_r-6tm7r3kG9SKY,1000
3
+ odoo/addons/stock_request/__manifest__.py,sha256=UfSc7l1QoVGTkPXLnBMAuVgq_LQ8oriS2f41rISLUTo,1000
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=FPyaKzxp739G8uJiIH6ROU8AMlPanj-HM2X8Kv0RI5w,43920
6
6
  odoo/addons/stock_request/i18n/de.po,sha256=GaMFkJO5fxyJxXWvTn17zPv868Gxus6cEWBxpE4lerU,49191
@@ -25,7 +25,7 @@ odoo/addons/stock_request/i18n/pt_BR.po,sha256=sssAgXthWvQnL19Uu6QZfTr1tCO1ctz5F
25
25
  odoo/addons/stock_request/i18n/ro.po,sha256=p0N6zoadMnxCQ6cWLL5lc_Y9Vf8wCpIeRM9roZkUTtk,43963
26
26
  odoo/addons/stock_request/i18n/ru.po,sha256=ZySxlwq4T5brFoPm_BBiq3xR8MeRpnY5jKc-w5X8KnE,44079
27
27
  odoo/addons/stock_request/i18n/sl.po,sha256=bxvT4VXzK0zHBzPRrW8XxduJ34DeA8pmUGKqcTdTbgM,43977
28
- odoo/addons/stock_request/i18n/stock_request.pot,sha256=PEnOU4Sx2iLKCQFctJWB0Tey5z4e36CvakfJhNY20gs,43616
28
+ odoo/addons/stock_request/i18n/stock_request.pot,sha256=fc3Z7sV4NTuo7ywrCCPahFqNEAVrWVuymfQsiLRpoSc,43684
29
29
  odoo/addons/stock_request/i18n/tr.po,sha256=QyRSmIFfRmmH68JIjwJLUvXIzHDkxOjhWieXOlMMC1A,43917
30
30
  odoo/addons/stock_request/i18n/tr_TR.po,sha256=C_wurEzrIhottrTBirg3hUsgnlCMyJSE9_zaAWY02lU,43935
31
31
  odoo/addons/stock_request/i18n/vi_VN.po,sha256=JMZ59EleFnMKk4awxo_wH2QUDx397Ng_A-mzHKp3YiA,43940
@@ -36,7 +36,7 @@ odoo/addons/stock_request/models/res_company.py,sha256=j7vyh8MZNBDWtNyUxAc-HYP2X
36
36
  odoo/addons/stock_request/models/res_config_settings.py,sha256=pOiuN_Vyoj1j0rwfjgxWutL-Iyljcj0v-7Fjil90R74,1379
37
37
  odoo/addons/stock_request/models/stock_location.py,sha256=ckie9pUiJ2r_pU_-ojYZieaObCD3F2m1Xv4p3KYDGww,1474
38
38
  odoo/addons/stock_request/models/stock_move.py,sha256=Pu8aIo3ydPuoUbUuBcKjCND_VRilp5Uh6AKnzQmbOhs,2782
39
- odoo/addons/stock_request/models/stock_move_line.py,sha256=75R5LJjHZtU-fTHcC_vhnoMhgDEG-S9fYuUsD_vmzQ4,2765
39
+ odoo/addons/stock_request/models/stock_move_line.py,sha256=U1BoTUTAesJo4mVMN9Q4amNUzmpPMFcPA9ztjv7mem4,3093
40
40
  odoo/addons/stock_request/models/stock_picking.py,sha256=XmdxMG-GNKJjF6RE8inj45TBy1eEhmRh4nzb-0bMQs0,1339
41
41
  odoo/addons/stock_request/models/stock_request.py,sha256=E4ikDg5qmLE9k_ZowZzBIbDB4mw1lSzW7SJH0rR1khY,17183
42
42
  odoo/addons/stock_request/models/stock_request_abstract.py,sha256=FavjvJjix1x8_uG6BOVmeFavMJCT6l4tq9Aj2CBUSME,9239
@@ -54,18 +54,18 @@ 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=2mwE-0Dwhhcx-ErC4EtfgG8UWQmalzD7AMuVIXjEUuE,16532
57
+ odoo/addons/stock_request/static/description/index.html,sha256=ZJ-tmAG5FNhmz-B7tEfVQIoIGx92APoQTy94PM1Al90,16532
58
58
  odoo/addons/stock_request/tests/__init__.py,sha256=3NQ2fafGprBbsMjR2Y__yzyvFX5Vio1r0j6tT3FTbas,33
59
- odoo/addons/stock_request/tests/test_stock_request.py,sha256=-5F3qsypedUL8xu0FGIHzdtbGMBOwrZ0R1IXQwOmuwU,68366
59
+ odoo/addons/stock_request/tests/test_stock_request.py,sha256=B33IDxLyWBb9_mXyGlLUQNJCPGEbwkoW2os4pyWFPkE,68324
60
60
  odoo/addons/stock_request/views/product.xml,sha256=CJ6RE5uGQLlIMDCPKxw8nhodb_rR3jaj-mF5ozCFUKI,1517
61
- odoo/addons/stock_request/views/res_config_settings_views.xml,sha256=kE05fmV2drjepSISURc67R7Uk_62zayWtncGSxzKTBo,6260
61
+ odoo/addons/stock_request/views/res_config_settings_views.xml,sha256=kS2uUi-igOF-ZE_mvLE1w2TH8G8S9pF4aBk-4xgLSaw,6318
62
62
  odoo/addons/stock_request/views/stock_move_views.xml,sha256=Z5pNG0WfYz-CTlxgB-rma0BoT08VQDHnm3J_Ksu9BxA,1072
63
63
  odoo/addons/stock_request/views/stock_picking_views.xml,sha256=fmOupY9n5FFuFZtYz1C5wy77OpX-7DmIBVrGJ2uEAVw,1017
64
- odoo/addons/stock_request/views/stock_request_allocation_views.xml,sha256=NhoVR2RSOx_OuiKP34g5yzc4U0jNHbVwHySZsIF9BOc,2615
64
+ odoo/addons/stock_request/views/stock_request_allocation_views.xml,sha256=hCuaX7ExnDS4J1PRZyu6k3B_CK28oTiIenm_3ysNFLQ,2615
65
65
  odoo/addons/stock_request/views/stock_request_menu.xml,sha256=S_3HPkmYcHC_xtPjusHiZX7RUW5CGrJW3w52ScnJFNw,1308
66
- odoo/addons/stock_request/views/stock_request_order_views.xml,sha256=xVN0r-S1h9B4xg-duX00qNix3SM-4kTmDDP5JUzvA5s,11383
67
- odoo/addons/stock_request/views/stock_request_views.xml,sha256=o_9aY_EOfHymmrg79uQJcVi4snCTUMt3CWacxmnIrxY,12136
68
- odoo_addon_stock_request-17.0.1.1.4.dist-info/METADATA,sha256=KwADsH_psWGpM2HT9Y7NW4A6_ed2_8A8lz8RCraqh6A,5833
69
- odoo_addon_stock_request-17.0.1.1.4.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
70
- odoo_addon_stock_request-17.0.1.1.4.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
71
- odoo_addon_stock_request-17.0.1.1.4.dist-info/RECORD,,
66
+ odoo/addons/stock_request/views/stock_request_order_views.xml,sha256=t9HoDmCmTknQx6YyF74ZC7PhxDG97TQ5tHs8XIbhCcI,11178
67
+ odoo/addons/stock_request/views/stock_request_views.xml,sha256=EA5yJR1OTqEH3hl6b3S0R7pqIfH-HCkMZgBmezozmB4,11925
68
+ odoo_addon_stock_request-18.0.1.0.0.2.dist-info/METADATA,sha256=QpBrRk1P0py-uTvLs9gVvq2XZ8Kze3tCHoMAmq-U8yI,5827
69
+ odoo_addon_stock_request-18.0.1.0.0.2.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
70
+ odoo_addon_stock_request-18.0.1.0.0.2.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
71
+ odoo_addon_stock_request-18.0.1.0.0.2.dist-info/RECORD,,