odoo-addon-stock-request 17.0.1.1.4__py3-none-any.whl → 17.0.1.1.5.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 +27 -24
- odoo/addons/stock_request/__manifest__.py +1 -1
- odoo/addons/stock_request/i18n/ca.po +18 -0
- odoo/addons/stock_request/i18n/de.po +18 -0
- odoo/addons/stock_request/i18n/el_GR.po +18 -0
- odoo/addons/stock_request/i18n/es.po +20 -1
- odoo/addons/stock_request/i18n/es_ES.po +18 -0
- odoo/addons/stock_request/i18n/eu.po +18 -0
- odoo/addons/stock_request/i18n/fi.po +18 -0
- odoo/addons/stock_request/i18n/fr.po +18 -0
- odoo/addons/stock_request/i18n/fr_CH.po +18 -0
- odoo/addons/stock_request/i18n/fr_FR.po +18 -0
- odoo/addons/stock_request/i18n/gl.po +18 -0
- odoo/addons/stock_request/i18n/hr.po +18 -0
- odoo/addons/stock_request/i18n/hr_HR.po +18 -0
- odoo/addons/stock_request/i18n/it.po +24 -2
- odoo/addons/stock_request/i18n/ja.po +18 -0
- odoo/addons/stock_request/i18n/ja_JP.po +18 -0
- odoo/addons/stock_request/i18n/nl.po +18 -0
- odoo/addons/stock_request/i18n/nl_NL.po +18 -0
- odoo/addons/stock_request/i18n/pt.po +18 -0
- odoo/addons/stock_request/i18n/pt_BR.po +18 -0
- odoo/addons/stock_request/i18n/ro.po +18 -0
- odoo/addons/stock_request/i18n/ru.po +18 -0
- odoo/addons/stock_request/i18n/sl.po +18 -0
- odoo/addons/stock_request/i18n/stock_request.pot +18 -0
- odoo/addons/stock_request/i18n/tr.po +18 -0
- odoo/addons/stock_request/i18n/tr_TR.po +18 -0
- odoo/addons/stock_request/i18n/vi_VN.po +18 -0
- odoo/addons/stock_request/i18n/zh_CN.po +18 -0
- odoo/addons/stock_request/models/res_company.py +4 -0
- odoo/addons/stock_request/models/res_config_settings.py +4 -0
- odoo/addons/stock_request/models/stock_request.py +5 -0
- odoo/addons/stock_request/readme/CONTRIBUTORS.md +2 -0
- odoo/addons/stock_request/static/description/index.html +5 -1
- odoo/addons/stock_request/tests/test_stock_request.py +49 -0
- odoo/addons/stock_request/views/res_config_settings_views.xml +11 -0
- {odoo_addon_stock_request-17.0.1.1.4.dist-info → odoo_addon_stock_request-17.0.1.1.5.2.dist-info}/METADATA +28 -25
- odoo_addon_stock_request-17.0.1.1.5.2.dist-info/RECORD +71 -0
- odoo_addon_stock_request-17.0.1.1.4.dist-info/RECORD +0 -71
- {odoo_addon_stock_request-17.0.1.1.4.dist-info → odoo_addon_stock_request-17.0.1.1.5.2.dist-info}/WHEEL +0 -0
- {odoo_addon_stock_request-17.0.1.1.4.dist-info → odoo_addon_stock_request-17.0.1.1.5.2.dist-info}/top_level.txt +0 -0
@@ -135,6 +135,11 @@ msgstr ""
|
|
135
135
|
msgid "Category"
|
136
136
|
msgstr ""
|
137
137
|
|
138
|
+
#. module: stock_request
|
139
|
+
#: model_terms:ir.ui.view,arch_db:stock_request.res_config_settings_view_form
|
140
|
+
msgid "Check Stock Request Order requested by"
|
141
|
+
msgstr ""
|
142
|
+
|
138
143
|
#. module: stock_request
|
139
144
|
#: model:ir.model.fields,field_description:stock_request.field_res_company__stock_request_check_available_first
|
140
145
|
#: model:ir.model.fields,field_description:stock_request.field_res_config_settings__stock_request_check_available_first
|
@@ -531,6 +536,12 @@ msgstr ""
|
|
531
536
|
msgid "Number of messages with delivery error"
|
532
537
|
msgstr ""
|
533
538
|
|
539
|
+
#. module: stock_request
|
540
|
+
#: model:ir.model.fields,field_description:stock_request.field_res_company__stock_request_check_order_requested_by
|
541
|
+
#: model:ir.model.fields,field_description:stock_request.field_res_config_settings__check_order_requested_by
|
542
|
+
msgid "Only allow edit stock request orders if requested by the same user"
|
543
|
+
msgstr ""
|
544
|
+
|
534
545
|
#. module: stock_request
|
535
546
|
#. odoo-python
|
536
547
|
#: code:addons/stock_request/models/stock_request_order.py:0
|
@@ -545,6 +556,13 @@ msgstr ""
|
|
545
556
|
msgid "Only requests on draft state can be unlinked"
|
546
557
|
msgstr ""
|
547
558
|
|
559
|
+
#. module: stock_request
|
560
|
+
#: model_terms:ir.ui.view,arch_db:stock_request.res_config_settings_view_form
|
561
|
+
msgid ""
|
562
|
+
"Only the user who submitted the request will be able to edit the stock "
|
563
|
+
"request order."
|
564
|
+
msgstr ""
|
565
|
+
|
548
566
|
#. module: stock_request
|
549
567
|
#: model:ir.model.fields,field_description:stock_request.field_stock_request_allocation__open_product_qty
|
550
568
|
msgid "Open Quantity"
|
@@ -135,6 +135,11 @@ msgstr ""
|
|
135
135
|
msgid "Category"
|
136
136
|
msgstr ""
|
137
137
|
|
138
|
+
#. module: stock_request
|
139
|
+
#: model_terms:ir.ui.view,arch_db:stock_request.res_config_settings_view_form
|
140
|
+
msgid "Check Stock Request Order requested by"
|
141
|
+
msgstr ""
|
142
|
+
|
138
143
|
#. module: stock_request
|
139
144
|
#: model:ir.model.fields,field_description:stock_request.field_res_company__stock_request_check_available_first
|
140
145
|
#: model:ir.model.fields,field_description:stock_request.field_res_config_settings__stock_request_check_available_first
|
@@ -531,6 +536,12 @@ msgstr ""
|
|
531
536
|
msgid "Number of messages with delivery error"
|
532
537
|
msgstr ""
|
533
538
|
|
539
|
+
#. module: stock_request
|
540
|
+
#: model:ir.model.fields,field_description:stock_request.field_res_company__stock_request_check_order_requested_by
|
541
|
+
#: model:ir.model.fields,field_description:stock_request.field_res_config_settings__check_order_requested_by
|
542
|
+
msgid "Only allow edit stock request orders if requested by the same user"
|
543
|
+
msgstr ""
|
544
|
+
|
534
545
|
#. module: stock_request
|
535
546
|
#. odoo-python
|
536
547
|
#: code:addons/stock_request/models/stock_request_order.py:0
|
@@ -545,6 +556,13 @@ msgstr ""
|
|
545
556
|
msgid "Only requests on draft state can be unlinked"
|
546
557
|
msgstr ""
|
547
558
|
|
559
|
+
#. module: stock_request
|
560
|
+
#: model_terms:ir.ui.view,arch_db:stock_request.res_config_settings_view_form
|
561
|
+
msgid ""
|
562
|
+
"Only the user who submitted the request will be able to edit the stock "
|
563
|
+
"request order."
|
564
|
+
msgstr ""
|
565
|
+
|
548
566
|
#. module: stock_request
|
549
567
|
#: model:ir.model.fields,field_description:stock_request.field_stock_request_allocation__open_product_qty
|
550
568
|
msgid "Open Quantity"
|
@@ -139,6 +139,11 @@ msgstr ""
|
|
139
139
|
msgid "Category"
|
140
140
|
msgstr ""
|
141
141
|
|
142
|
+
#. module: stock_request
|
143
|
+
#: model_terms:ir.ui.view,arch_db:stock_request.res_config_settings_view_form
|
144
|
+
msgid "Check Stock Request Order requested by"
|
145
|
+
msgstr ""
|
146
|
+
|
142
147
|
#. module: stock_request
|
143
148
|
#: model:ir.model.fields,field_description:stock_request.field_res_company__stock_request_check_available_first
|
144
149
|
#: model:ir.model.fields,field_description:stock_request.field_res_config_settings__stock_request_check_available_first
|
@@ -535,6 +540,12 @@ msgstr ""
|
|
535
540
|
msgid "Number of messages with delivery error"
|
536
541
|
msgstr ""
|
537
542
|
|
543
|
+
#. module: stock_request
|
544
|
+
#: model:ir.model.fields,field_description:stock_request.field_res_company__stock_request_check_order_requested_by
|
545
|
+
#: model:ir.model.fields,field_description:stock_request.field_res_config_settings__check_order_requested_by
|
546
|
+
msgid "Only allow edit stock request orders if requested by the same user"
|
547
|
+
msgstr ""
|
548
|
+
|
538
549
|
#. module: stock_request
|
539
550
|
#. odoo-python
|
540
551
|
#: code:addons/stock_request/models/stock_request_order.py:0
|
@@ -549,6 +560,13 @@ msgstr ""
|
|
549
560
|
msgid "Only requests on draft state can be unlinked"
|
550
561
|
msgstr ""
|
551
562
|
|
563
|
+
#. module: stock_request
|
564
|
+
#: model_terms:ir.ui.view,arch_db:stock_request.res_config_settings_view_form
|
565
|
+
msgid ""
|
566
|
+
"Only the user who submitted the request will be able to edit the stock "
|
567
|
+
"request order."
|
568
|
+
msgstr ""
|
569
|
+
|
552
570
|
#. module: stock_request
|
553
571
|
#: model:ir.model.fields,field_description:stock_request.field_stock_request_allocation__open_product_qty
|
554
572
|
msgid "Open Quantity"
|
@@ -140,6 +140,11 @@ msgstr ""
|
|
140
140
|
msgid "Category"
|
141
141
|
msgstr ""
|
142
142
|
|
143
|
+
#. module: stock_request
|
144
|
+
#: model_terms:ir.ui.view,arch_db:stock_request.res_config_settings_view_form
|
145
|
+
msgid "Check Stock Request Order requested by"
|
146
|
+
msgstr ""
|
147
|
+
|
143
148
|
#. module: stock_request
|
144
149
|
#: model:ir.model.fields,field_description:stock_request.field_res_company__stock_request_check_available_first
|
145
150
|
#: model:ir.model.fields,field_description:stock_request.field_res_config_settings__stock_request_check_available_first
|
@@ -536,6 +541,12 @@ msgstr ""
|
|
536
541
|
msgid "Number of messages with delivery error"
|
537
542
|
msgstr ""
|
538
543
|
|
544
|
+
#. module: stock_request
|
545
|
+
#: model:ir.model.fields,field_description:stock_request.field_res_company__stock_request_check_order_requested_by
|
546
|
+
#: model:ir.model.fields,field_description:stock_request.field_res_config_settings__check_order_requested_by
|
547
|
+
msgid "Only allow edit stock request orders if requested by the same user"
|
548
|
+
msgstr ""
|
549
|
+
|
539
550
|
#. module: stock_request
|
540
551
|
#. odoo-python
|
541
552
|
#: code:addons/stock_request/models/stock_request_order.py:0
|
@@ -550,6 +561,13 @@ msgstr ""
|
|
550
561
|
msgid "Only requests on draft state can be unlinked"
|
551
562
|
msgstr ""
|
552
563
|
|
564
|
+
#. module: stock_request
|
565
|
+
#: model_terms:ir.ui.view,arch_db:stock_request.res_config_settings_view_form
|
566
|
+
msgid ""
|
567
|
+
"Only the user who submitted the request will be able to edit the stock "
|
568
|
+
"request order."
|
569
|
+
msgstr ""
|
570
|
+
|
553
571
|
#. module: stock_request
|
554
572
|
#: model:ir.model.fields,field_description:stock_request.field_stock_request_allocation__open_product_qty
|
555
573
|
msgid "Open Quantity"
|
@@ -139,6 +139,11 @@ msgstr ""
|
|
139
139
|
msgid "Category"
|
140
140
|
msgstr ""
|
141
141
|
|
142
|
+
#. module: stock_request
|
143
|
+
#: model_terms:ir.ui.view,arch_db:stock_request.res_config_settings_view_form
|
144
|
+
msgid "Check Stock Request Order requested by"
|
145
|
+
msgstr ""
|
146
|
+
|
142
147
|
#. module: stock_request
|
143
148
|
#: model:ir.model.fields,field_description:stock_request.field_res_company__stock_request_check_available_first
|
144
149
|
#: model:ir.model.fields,field_description:stock_request.field_res_config_settings__stock_request_check_available_first
|
@@ -535,6 +540,12 @@ msgstr ""
|
|
535
540
|
msgid "Number of messages with delivery error"
|
536
541
|
msgstr ""
|
537
542
|
|
543
|
+
#. module: stock_request
|
544
|
+
#: model:ir.model.fields,field_description:stock_request.field_res_company__stock_request_check_order_requested_by
|
545
|
+
#: model:ir.model.fields,field_description:stock_request.field_res_config_settings__check_order_requested_by
|
546
|
+
msgid "Only allow edit stock request orders if requested by the same user"
|
547
|
+
msgstr ""
|
548
|
+
|
538
549
|
#. module: stock_request
|
539
550
|
#. odoo-python
|
540
551
|
#: code:addons/stock_request/models/stock_request_order.py:0
|
@@ -549,6 +560,13 @@ msgstr ""
|
|
549
560
|
msgid "Only requests on draft state can be unlinked"
|
550
561
|
msgstr ""
|
551
562
|
|
563
|
+
#. module: stock_request
|
564
|
+
#: model_terms:ir.ui.view,arch_db:stock_request.res_config_settings_view_form
|
565
|
+
msgid ""
|
566
|
+
"Only the user who submitted the request will be able to edit the stock "
|
567
|
+
"request order."
|
568
|
+
msgstr ""
|
569
|
+
|
552
570
|
#. module: stock_request
|
553
571
|
#: model:ir.model.fields,field_description:stock_request.field_stock_request_allocation__open_product_qty
|
554
572
|
msgid "Open Quantity"
|
@@ -140,6 +140,11 @@ msgstr ""
|
|
140
140
|
msgid "Category"
|
141
141
|
msgstr ""
|
142
142
|
|
143
|
+
#. module: stock_request
|
144
|
+
#: model_terms:ir.ui.view,arch_db:stock_request.res_config_settings_view_form
|
145
|
+
msgid "Check Stock Request Order requested by"
|
146
|
+
msgstr ""
|
147
|
+
|
143
148
|
#. module: stock_request
|
144
149
|
#: model:ir.model.fields,field_description:stock_request.field_res_company__stock_request_check_available_first
|
145
150
|
#: model:ir.model.fields,field_description:stock_request.field_res_config_settings__stock_request_check_available_first
|
@@ -536,6 +541,12 @@ msgstr ""
|
|
536
541
|
msgid "Number of messages with delivery error"
|
537
542
|
msgstr ""
|
538
543
|
|
544
|
+
#. module: stock_request
|
545
|
+
#: model:ir.model.fields,field_description:stock_request.field_res_company__stock_request_check_order_requested_by
|
546
|
+
#: model:ir.model.fields,field_description:stock_request.field_res_config_settings__check_order_requested_by
|
547
|
+
msgid "Only allow edit stock request orders if requested by the same user"
|
548
|
+
msgstr ""
|
549
|
+
|
539
550
|
#. module: stock_request
|
540
551
|
#. odoo-python
|
541
552
|
#: code:addons/stock_request/models/stock_request_order.py:0
|
@@ -550,6 +561,13 @@ msgstr ""
|
|
550
561
|
msgid "Only requests on draft state can be unlinked"
|
551
562
|
msgstr ""
|
552
563
|
|
564
|
+
#. module: stock_request
|
565
|
+
#: model_terms:ir.ui.view,arch_db:stock_request.res_config_settings_view_form
|
566
|
+
msgid ""
|
567
|
+
"Only the user who submitted the request will be able to edit the stock "
|
568
|
+
"request order."
|
569
|
+
msgstr ""
|
570
|
+
|
553
571
|
#. module: stock_request
|
554
572
|
#: model:ir.model.fields,field_description:stock_request.field_stock_request_allocation__open_product_qty
|
555
573
|
msgid "Open Quantity"
|
@@ -140,6 +140,11 @@ msgstr ""
|
|
140
140
|
msgid "Category"
|
141
141
|
msgstr ""
|
142
142
|
|
143
|
+
#. module: stock_request
|
144
|
+
#: model_terms:ir.ui.view,arch_db:stock_request.res_config_settings_view_form
|
145
|
+
msgid "Check Stock Request Order requested by"
|
146
|
+
msgstr ""
|
147
|
+
|
143
148
|
#. module: stock_request
|
144
149
|
#: model:ir.model.fields,field_description:stock_request.field_res_company__stock_request_check_available_first
|
145
150
|
#: model:ir.model.fields,field_description:stock_request.field_res_config_settings__stock_request_check_available_first
|
@@ -536,6 +541,12 @@ msgstr ""
|
|
536
541
|
msgid "Number of messages with delivery error"
|
537
542
|
msgstr ""
|
538
543
|
|
544
|
+
#. module: stock_request
|
545
|
+
#: model:ir.model.fields,field_description:stock_request.field_res_company__stock_request_check_order_requested_by
|
546
|
+
#: model:ir.model.fields,field_description:stock_request.field_res_config_settings__check_order_requested_by
|
547
|
+
msgid "Only allow edit stock request orders if requested by the same user"
|
548
|
+
msgstr ""
|
549
|
+
|
539
550
|
#. module: stock_request
|
540
551
|
#. odoo-python
|
541
552
|
#: code:addons/stock_request/models/stock_request_order.py:0
|
@@ -550,6 +561,13 @@ msgstr ""
|
|
550
561
|
msgid "Only requests on draft state can be unlinked"
|
551
562
|
msgstr ""
|
552
563
|
|
564
|
+
#. module: stock_request
|
565
|
+
#: model_terms:ir.ui.view,arch_db:stock_request.res_config_settings_view_form
|
566
|
+
msgid ""
|
567
|
+
"Only the user who submitted the request will be able to edit the stock "
|
568
|
+
"request order."
|
569
|
+
msgstr ""
|
570
|
+
|
553
571
|
#. module: stock_request
|
554
572
|
#: model:ir.model.fields,field_description:stock_request.field_stock_request_allocation__open_product_qty
|
555
573
|
msgid "Open Quantity"
|
@@ -141,6 +141,11 @@ msgstr ""
|
|
141
141
|
msgid "Category"
|
142
142
|
msgstr ""
|
143
143
|
|
144
|
+
#. module: stock_request
|
145
|
+
#: model_terms:ir.ui.view,arch_db:stock_request.res_config_settings_view_form
|
146
|
+
msgid "Check Stock Request Order requested by"
|
147
|
+
msgstr ""
|
148
|
+
|
144
149
|
#. module: stock_request
|
145
150
|
#: model:ir.model.fields,field_description:stock_request.field_res_company__stock_request_check_available_first
|
146
151
|
#: model:ir.model.fields,field_description:stock_request.field_res_config_settings__stock_request_check_available_first
|
@@ -537,6 +542,12 @@ msgstr ""
|
|
537
542
|
msgid "Number of messages with delivery error"
|
538
543
|
msgstr ""
|
539
544
|
|
545
|
+
#. module: stock_request
|
546
|
+
#: model:ir.model.fields,field_description:stock_request.field_res_company__stock_request_check_order_requested_by
|
547
|
+
#: model:ir.model.fields,field_description:stock_request.field_res_config_settings__check_order_requested_by
|
548
|
+
msgid "Only allow edit stock request orders if requested by the same user"
|
549
|
+
msgstr ""
|
550
|
+
|
540
551
|
#. module: stock_request
|
541
552
|
#. odoo-python
|
542
553
|
#: code:addons/stock_request/models/stock_request_order.py:0
|
@@ -551,6 +562,13 @@ msgstr ""
|
|
551
562
|
msgid "Only requests on draft state can be unlinked"
|
552
563
|
msgstr ""
|
553
564
|
|
565
|
+
#. module: stock_request
|
566
|
+
#: model_terms:ir.ui.view,arch_db:stock_request.res_config_settings_view_form
|
567
|
+
msgid ""
|
568
|
+
"Only the user who submitted the request will be able to edit the stock "
|
569
|
+
"request order."
|
570
|
+
msgstr ""
|
571
|
+
|
554
572
|
#. module: stock_request
|
555
573
|
#: model:ir.model.fields,field_description:stock_request.field_stock_request_allocation__open_product_qty
|
556
574
|
msgid "Open Quantity"
|
@@ -140,6 +140,11 @@ msgstr ""
|
|
140
140
|
msgid "Category"
|
141
141
|
msgstr ""
|
142
142
|
|
143
|
+
#. module: stock_request
|
144
|
+
#: model_terms:ir.ui.view,arch_db:stock_request.res_config_settings_view_form
|
145
|
+
msgid "Check Stock Request Order requested by"
|
146
|
+
msgstr ""
|
147
|
+
|
143
148
|
#. module: stock_request
|
144
149
|
#: model:ir.model.fields,field_description:stock_request.field_res_company__stock_request_check_available_first
|
145
150
|
#: model:ir.model.fields,field_description:stock_request.field_res_config_settings__stock_request_check_available_first
|
@@ -536,6 +541,12 @@ msgstr ""
|
|
536
541
|
msgid "Number of messages with delivery error"
|
537
542
|
msgstr ""
|
538
543
|
|
544
|
+
#. module: stock_request
|
545
|
+
#: model:ir.model.fields,field_description:stock_request.field_res_company__stock_request_check_order_requested_by
|
546
|
+
#: model:ir.model.fields,field_description:stock_request.field_res_config_settings__check_order_requested_by
|
547
|
+
msgid "Only allow edit stock request orders if requested by the same user"
|
548
|
+
msgstr ""
|
549
|
+
|
539
550
|
#. module: stock_request
|
540
551
|
#. odoo-python
|
541
552
|
#: code:addons/stock_request/models/stock_request_order.py:0
|
@@ -550,6 +561,13 @@ msgstr ""
|
|
550
561
|
msgid "Only requests on draft state can be unlinked"
|
551
562
|
msgstr ""
|
552
563
|
|
564
|
+
#. module: stock_request
|
565
|
+
#: model_terms:ir.ui.view,arch_db:stock_request.res_config_settings_view_form
|
566
|
+
msgid ""
|
567
|
+
"Only the user who submitted the request will be able to edit the stock "
|
568
|
+
"request order."
|
569
|
+
msgstr ""
|
570
|
+
|
553
571
|
#. module: stock_request
|
554
572
|
#: model:ir.model.fields,field_description:stock_request.field_stock_request_allocation__open_product_qty
|
555
573
|
msgid "Open Quantity"
|
@@ -134,6 +134,11 @@ msgstr ""
|
|
134
134
|
msgid "Category"
|
135
135
|
msgstr ""
|
136
136
|
|
137
|
+
#. module: stock_request
|
138
|
+
#: model_terms:ir.ui.view,arch_db:stock_request.res_config_settings_view_form
|
139
|
+
msgid "Check Stock Request Order requested by"
|
140
|
+
msgstr ""
|
141
|
+
|
137
142
|
#. module: stock_request
|
138
143
|
#: model:ir.model.fields,field_description:stock_request.field_res_company__stock_request_check_available_first
|
139
144
|
#: model:ir.model.fields,field_description:stock_request.field_res_config_settings__stock_request_check_available_first
|
@@ -530,6 +535,12 @@ msgstr ""
|
|
530
535
|
msgid "Number of messages with delivery error"
|
531
536
|
msgstr ""
|
532
537
|
|
538
|
+
#. module: stock_request
|
539
|
+
#: model:ir.model.fields,field_description:stock_request.field_res_company__stock_request_check_order_requested_by
|
540
|
+
#: model:ir.model.fields,field_description:stock_request.field_res_config_settings__check_order_requested_by
|
541
|
+
msgid "Only allow edit stock request orders if requested by the same user"
|
542
|
+
msgstr ""
|
543
|
+
|
533
544
|
#. module: stock_request
|
534
545
|
#. odoo-python
|
535
546
|
#: code:addons/stock_request/models/stock_request_order.py:0
|
@@ -544,6 +555,13 @@ msgstr ""
|
|
544
555
|
msgid "Only requests on draft state can be unlinked"
|
545
556
|
msgstr ""
|
546
557
|
|
558
|
+
#. module: stock_request
|
559
|
+
#: model_terms:ir.ui.view,arch_db:stock_request.res_config_settings_view_form
|
560
|
+
msgid ""
|
561
|
+
"Only the user who submitted the request will be able to edit the stock "
|
562
|
+
"request order."
|
563
|
+
msgstr ""
|
564
|
+
|
547
565
|
#. module: stock_request
|
548
566
|
#: model:ir.model.fields,field_description:stock_request.field_stock_request_allocation__open_product_qty
|
549
567
|
msgid "Open Quantity"
|
@@ -139,6 +139,11 @@ msgstr ""
|
|
139
139
|
msgid "Category"
|
140
140
|
msgstr ""
|
141
141
|
|
142
|
+
#. module: stock_request
|
143
|
+
#: model_terms:ir.ui.view,arch_db:stock_request.res_config_settings_view_form
|
144
|
+
msgid "Check Stock Request Order requested by"
|
145
|
+
msgstr ""
|
146
|
+
|
142
147
|
#. module: stock_request
|
143
148
|
#: model:ir.model.fields,field_description:stock_request.field_res_company__stock_request_check_available_first
|
144
149
|
#: model:ir.model.fields,field_description:stock_request.field_res_config_settings__stock_request_check_available_first
|
@@ -535,6 +540,12 @@ msgstr ""
|
|
535
540
|
msgid "Number of messages with delivery error"
|
536
541
|
msgstr ""
|
537
542
|
|
543
|
+
#. module: stock_request
|
544
|
+
#: model:ir.model.fields,field_description:stock_request.field_res_company__stock_request_check_order_requested_by
|
545
|
+
#: model:ir.model.fields,field_description:stock_request.field_res_config_settings__check_order_requested_by
|
546
|
+
msgid "Only allow edit stock request orders if requested by the same user"
|
547
|
+
msgstr ""
|
548
|
+
|
538
549
|
#. module: stock_request
|
539
550
|
#. odoo-python
|
540
551
|
#: code:addons/stock_request/models/stock_request_order.py:0
|
@@ -549,6 +560,13 @@ msgstr ""
|
|
549
560
|
msgid "Only requests on draft state can be unlinked"
|
550
561
|
msgstr ""
|
551
562
|
|
563
|
+
#. module: stock_request
|
564
|
+
#: model_terms:ir.ui.view,arch_db:stock_request.res_config_settings_view_form
|
565
|
+
msgid ""
|
566
|
+
"Only the user who submitted the request will be able to edit the stock "
|
567
|
+
"request order."
|
568
|
+
msgstr ""
|
569
|
+
|
552
570
|
#. module: stock_request
|
553
571
|
#: model:ir.model.fields,field_description:stock_request.field_stock_request_allocation__open_product_qty
|
554
572
|
msgid "Open Quantity"
|
@@ -140,6 +140,11 @@ msgstr ""
|
|
140
140
|
msgid "Category"
|
141
141
|
msgstr ""
|
142
142
|
|
143
|
+
#. module: stock_request
|
144
|
+
#: model_terms:ir.ui.view,arch_db:stock_request.res_config_settings_view_form
|
145
|
+
msgid "Check Stock Request Order requested by"
|
146
|
+
msgstr ""
|
147
|
+
|
143
148
|
#. module: stock_request
|
144
149
|
#: model:ir.model.fields,field_description:stock_request.field_res_company__stock_request_check_available_first
|
145
150
|
#: model:ir.model.fields,field_description:stock_request.field_res_config_settings__stock_request_check_available_first
|
@@ -536,6 +541,12 @@ msgstr ""
|
|
536
541
|
msgid "Number of messages with delivery error"
|
537
542
|
msgstr ""
|
538
543
|
|
544
|
+
#. module: stock_request
|
545
|
+
#: model:ir.model.fields,field_description:stock_request.field_res_company__stock_request_check_order_requested_by
|
546
|
+
#: model:ir.model.fields,field_description:stock_request.field_res_config_settings__check_order_requested_by
|
547
|
+
msgid "Only allow edit stock request orders if requested by the same user"
|
548
|
+
msgstr ""
|
549
|
+
|
539
550
|
#. module: stock_request
|
540
551
|
#. odoo-python
|
541
552
|
#: code:addons/stock_request/models/stock_request_order.py:0
|
@@ -550,6 +561,13 @@ msgstr ""
|
|
550
561
|
msgid "Only requests on draft state can be unlinked"
|
551
562
|
msgstr ""
|
552
563
|
|
564
|
+
#. module: stock_request
|
565
|
+
#: model_terms:ir.ui.view,arch_db:stock_request.res_config_settings_view_form
|
566
|
+
msgid ""
|
567
|
+
"Only the user who submitted the request will be able to edit the stock "
|
568
|
+
"request order."
|
569
|
+
msgstr ""
|
570
|
+
|
553
571
|
#. module: stock_request
|
554
572
|
#: model:ir.model.fields,field_description:stock_request.field_stock_request_allocation__open_product_qty
|
555
573
|
msgid "Open Quantity"
|
@@ -140,6 +140,11 @@ msgstr ""
|
|
140
140
|
msgid "Category"
|
141
141
|
msgstr ""
|
142
142
|
|
143
|
+
#. module: stock_request
|
144
|
+
#: model_terms:ir.ui.view,arch_db:stock_request.res_config_settings_view_form
|
145
|
+
msgid "Check Stock Request Order requested by"
|
146
|
+
msgstr ""
|
147
|
+
|
143
148
|
#. module: stock_request
|
144
149
|
#: model:ir.model.fields,field_description:stock_request.field_res_company__stock_request_check_available_first
|
145
150
|
#: model:ir.model.fields,field_description:stock_request.field_res_config_settings__stock_request_check_available_first
|
@@ -536,6 +541,12 @@ msgstr ""
|
|
536
541
|
msgid "Number of messages with delivery error"
|
537
542
|
msgstr ""
|
538
543
|
|
544
|
+
#. module: stock_request
|
545
|
+
#: model:ir.model.fields,field_description:stock_request.field_res_company__stock_request_check_order_requested_by
|
546
|
+
#: model:ir.model.fields,field_description:stock_request.field_res_config_settings__check_order_requested_by
|
547
|
+
msgid "Only allow edit stock request orders if requested by the same user"
|
548
|
+
msgstr ""
|
549
|
+
|
539
550
|
#. module: stock_request
|
540
551
|
#. odoo-python
|
541
552
|
#: code:addons/stock_request/models/stock_request_order.py:0
|
@@ -550,6 +561,13 @@ msgstr ""
|
|
550
561
|
msgid "Only requests on draft state can be unlinked"
|
551
562
|
msgstr ""
|
552
563
|
|
564
|
+
#. module: stock_request
|
565
|
+
#: model_terms:ir.ui.view,arch_db:stock_request.res_config_settings_view_form
|
566
|
+
msgid ""
|
567
|
+
"Only the user who submitted the request will be able to edit the stock "
|
568
|
+
"request order."
|
569
|
+
msgstr ""
|
570
|
+
|
553
571
|
#. module: stock_request
|
554
572
|
#: model:ir.model.fields,field_description:stock_request.field_stock_request_allocation__open_product_qty
|
555
573
|
msgid "Open Quantity"
|
@@ -141,6 +141,11 @@ msgstr "已取消"
|
|
141
141
|
msgid "Category"
|
142
142
|
msgstr ""
|
143
143
|
|
144
|
+
#. module: stock_request
|
145
|
+
#: model_terms:ir.ui.view,arch_db:stock_request.res_config_settings_view_form
|
146
|
+
msgid "Check Stock Request Order requested by"
|
147
|
+
msgstr ""
|
148
|
+
|
144
149
|
#. module: stock_request
|
145
150
|
#: model:ir.model.fields,field_description:stock_request.field_res_company__stock_request_check_available_first
|
146
151
|
#: model:ir.model.fields,field_description:stock_request.field_res_config_settings__stock_request_check_available_first
|
@@ -542,6 +547,12 @@ msgstr ""
|
|
542
547
|
msgid "Number of messages with delivery error"
|
543
548
|
msgstr "传递错误的消息数量"
|
544
549
|
|
550
|
+
#. module: stock_request
|
551
|
+
#: model:ir.model.fields,field_description:stock_request.field_res_company__stock_request_check_order_requested_by
|
552
|
+
#: model:ir.model.fields,field_description:stock_request.field_res_config_settings__check_order_requested_by
|
553
|
+
msgid "Only allow edit stock request orders if requested by the same user"
|
554
|
+
msgstr ""
|
555
|
+
|
545
556
|
#. module: stock_request
|
546
557
|
#. odoo-python
|
547
558
|
#: code:addons/stock_request/models/stock_request_order.py:0
|
@@ -556,6 +567,13 @@ msgstr "只有处于草稿状态的订单才能取消链接"
|
|
556
567
|
msgid "Only requests on draft state can be unlinked"
|
557
568
|
msgstr "只有处于草稿状态的请求才能取消链接"
|
558
569
|
|
570
|
+
#. module: stock_request
|
571
|
+
#: model_terms:ir.ui.view,arch_db:stock_request.res_config_settings_view_form
|
572
|
+
msgid ""
|
573
|
+
"Only the user who submitted the request will be able to edit the stock "
|
574
|
+
"request order."
|
575
|
+
msgstr ""
|
576
|
+
|
559
577
|
#. module: stock_request
|
560
578
|
#: model:ir.model.fields,field_description:stock_request.field_stock_request_allocation__open_product_qty
|
561
579
|
msgid "Open Quantity"
|
@@ -15,3 +15,7 @@ class ResCompany(models.Model):
|
|
15
15
|
stock_request_check_available_first = fields.Boolean(
|
16
16
|
string="Check available stock first"
|
17
17
|
)
|
18
|
+
stock_request_check_order_requested_by = fields.Boolean(
|
19
|
+
string="Only allow edit stock request orders if requested by the same user",
|
20
|
+
default=True,
|
21
|
+
)
|
@@ -35,6 +35,10 @@ class ResConfigSettings(models.TransientModel):
|
|
35
35
|
)
|
36
36
|
|
37
37
|
module_stock_request_mrp = fields.Boolean(string="Stock Request for Manufacturing")
|
38
|
+
check_order_requested_by = fields.Boolean(
|
39
|
+
related="company_id.stock_request_check_order_requested_by",
|
40
|
+
readonly=False,
|
41
|
+
)
|
38
42
|
|
39
43
|
# Dependencies
|
40
44
|
@api.onchange("stock_request_allow_virtual_loc")
|
@@ -196,6 +196,11 @@ class StockRequest(models.Model):
|
|
196
196
|
|
197
197
|
@api.constrains("order_id", "requested_by")
|
198
198
|
def check_order_requested_by(self):
|
199
|
+
check_order_requested_by = (
|
200
|
+
self.env.company.stock_request_check_order_requested_by
|
201
|
+
)
|
202
|
+
if not check_order_requested_by:
|
203
|
+
return
|
199
204
|
for stock_request in self:
|
200
205
|
if (
|
201
206
|
stock_request.order_id
|
@@ -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:3fa7fcaf1f584b5d831556efb068fdfcf194ad4ea198b66ecd59543c68dc4807
|
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
|
@@ -464,6 +464,10 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
|
464
464
|
<li>Kitti U. <<a class="reference external" href="mailto:kittiu@ecosoft.co.th">kittiu@ecosoft.co.th</a>></li>
|
465
465
|
<li>Bernat Puig <<a class="reference external" href="mailto:bernat.puig@forgeflow.com">bernat.puig@forgeflow.com</a>></li>
|
466
466
|
<li>Oriol Miranda <<a class="reference external" href="mailto:oriol.miranda@forgeflow.com">oriol.miranda@forgeflow.com</a>></li>
|
467
|
+
<li><a class="reference external" href="https://apsl.tech">APSL-Nagarro</a>:<ul>
|
468
|
+
<li>Bernat Obrador <<a class="reference external" href="mailto:bobrador@apsl.net">bobrador@apsl.net</a>></li>
|
469
|
+
</ul>
|
470
|
+
</li>
|
467
471
|
</ul>
|
468
472
|
</div>
|
469
473
|
<div class="section" id="maintainers">
|
@@ -526,6 +526,55 @@ class TestStockRequestBase(TestStockRequest):
|
|
526
526
|
with self.assertRaises(exceptions.ValidationError):
|
527
527
|
self.request_order.with_user(self.stock_request_user).create(vals)
|
528
528
|
|
529
|
+
def test_stock_request_order_validations_08(self):
|
530
|
+
"""Testing editing stock request with different user when
|
531
|
+
stock_request_check_order_requested_by is False"""
|
532
|
+
self.main_company.stock_request_check_order_requested_by = False
|
533
|
+
expected_date = fields.Datetime.now()
|
534
|
+
vals = {
|
535
|
+
"company_id": self.main_company.id,
|
536
|
+
"warehouse_id": self.warehouse.id,
|
537
|
+
"location_id": self.warehouse.lot_stock_id.id,
|
538
|
+
"requested_by": self.stock_request_user.id,
|
539
|
+
"expected_date": expected_date,
|
540
|
+
"stock_request_ids": [
|
541
|
+
(
|
542
|
+
0,
|
543
|
+
0,
|
544
|
+
{
|
545
|
+
"product_id": self.product.id,
|
546
|
+
"product_uom_id": self.product.uom_id.id,
|
547
|
+
"product_uom_qty": 5.0,
|
548
|
+
"requested_by": self.stock_request_manager.id,
|
549
|
+
"company_id": self.main_company.id,
|
550
|
+
"warehouse_id": self.warehouse.id,
|
551
|
+
"location_id": self.warehouse.lot_stock_id.id,
|
552
|
+
"expected_date": expected_date,
|
553
|
+
},
|
554
|
+
)
|
555
|
+
],
|
556
|
+
}
|
557
|
+
|
558
|
+
order = self.request_order.with_user(self.stock_request_manager).create(vals)
|
559
|
+
|
560
|
+
self.env["stock.request"].with_user(self.stock_request_user).create(
|
561
|
+
{
|
562
|
+
"order_id": order.id,
|
563
|
+
"product_id": self.product.id,
|
564
|
+
"product_uom_id": self.product.uom_id.id,
|
565
|
+
"product_uom_qty": 5.0,
|
566
|
+
"requested_by": self.stock_request_user.id,
|
567
|
+
"company_id": self.main_company.id,
|
568
|
+
"warehouse_id": self.warehouse.id,
|
569
|
+
"location_id": self.warehouse.lot_stock_id.id,
|
570
|
+
"expected_date": expected_date,
|
571
|
+
}
|
572
|
+
)
|
573
|
+
self.assertTrue(
|
574
|
+
order.stock_request_count == 2,
|
575
|
+
"Stock request should be created when the config is disabled.",
|
576
|
+
)
|
577
|
+
|
529
578
|
def test_stock_request_order_available_stock_01(self):
|
530
579
|
self.main_company.stock_request_check_available_first = True
|
531
580
|
self._create_stock_quant(self.product, self.warehouse.lot_stock_id, 6)
|