diff --git a/stock_orderpoint_manual_procurement/README.rst b/stock_orderpoint_manual_procurement/README.rst index f7c253e3e..889f6097d 100644 --- a/stock_orderpoint_manual_procurement/README.rst +++ b/stock_orderpoint_manual_procurement/README.rst @@ -1,69 +1,94 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html - :alt: License: AGPL-3 - =================================== Stock Orderpoint Manual Procurement =================================== -This module allows users to manually start procurements from the list of -reordering rules, based on the quantity that is recommended to be procured. +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github + :target: https://github.com/OCA/stock-logistics-warehouse/tree/12.0/stock_orderpoint_manual_procurement + :alt: OCA/stock-logistics-warehouse +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_orderpoint_manual_procurement + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/153/12.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allows users to manually start procurements from the list of reordering rules, +based on the quantity that is recommended to be procured. + +**Table of contents** + +.. contents:: + :local: Configuration ============= If you want users to be able to change the recommended quantity to procure, -you should assign them to the security group 'Change quantity in manual -procurements from reordering rules', under 'Settings / Users / Users'. +you should assign them to the security group +'Change quantity in manual procurements from reordering rules', +under 'Settings / Users / Users'. Usage ===== -Go to 'Inventory > Master Data > Reordering Rules' and review the quantity -recommended to be procured. You can now start the procurement for a single or a -list of reordering rules. +Go to 'Inventory > Master Data > Reordering Rules' and review the quantity recommended to be procured. +You can now start the procurement for a single or a list of reordering rules. -The recommended quantity to procure is adjusted to the procurement unit of -measure indicated in the reordering rule. - -.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas - :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/153/11.0 +The recommended quantity to procure is adjusted to the +procurement unit of measure indicated in the reordering rule. Bug Tracker =========== -Bugs are tracked on `GitHub Issues -`_. In case of trouble, please -check there if your issue has already been reported. If you spotted it first, -help us smashing it by providing a detailed and welcomed feedback. +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. Credits ======= -Images ------- +Authors +~~~~~~~ -* Odoo Community Association: `Icon `_. +* Eficent Contributors ------------- +~~~~~~~~~~~~ * Jordi Ballester Alomar * Lois Rilo Antelo * Bhavesh Odedra +* Kitti Upariphutthiphong -Maintainer ----------- +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. .. image:: https://odoo-community.org/logo.png :alt: Odoo Community Association :target: https://odoo-community.org -This module is maintained by the OCA. - OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -To contribute to this module, please visit https://odoo-community.org. +This module is part of the `OCA/stock-logistics-warehouse `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/stock_orderpoint_manual_procurement/__manifest__.py b/stock_orderpoint_manual_procurement/__manifest__.py index 7df1509ac..5b104000f 100644 --- a/stock_orderpoint_manual_procurement/__manifest__.py +++ b/stock_orderpoint_manual_procurement/__manifest__.py @@ -6,7 +6,7 @@ "name": "Stock Orderpoint Manual Procurement", "summary": "Allows to create procurement orders from orderpoints instead " "of relying only on the scheduler.", - "version": "11.0.1.1.1", + "version": "12.0.1.0.0", "author": "Eficent, " "Odoo Community Association (OCA)", "website": "https://github.com/OCA/stock-logistics-warehouse", diff --git a/stock_orderpoint_manual_procurement/i18n/stock_orderpoint_manual_procurement.pot b/stock_orderpoint_manual_procurement/i18n/stock_orderpoint_manual_procurement.pot index 80b9af1d3..4458b1776 100644 --- a/stock_orderpoint_manual_procurement/i18n/stock_orderpoint_manual_procurement.pot +++ b/stock_orderpoint_manual_procurement/i18n/stock_orderpoint_manual_procurement.pot @@ -4,8 +4,10 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 11.0\n" +"Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-03-16 06:16+0000\n" +"PO-Revision-Date: 2019-03-16 06:16+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -14,8 +16,8 @@ msgstr "" "Plural-Forms: \n" #. module: stock_orderpoint_manual_procurement -#: model:ir.ui.view,arch_db:stock_orderpoint_manual_procurement.view_make_procure_without_security -#: model:ir.ui.view,arch_db:stock_orderpoint_manual_procurement.view_make_procurment_buffer_wizard +#: model_terms:ir.ui.view,arch_db:stock_orderpoint_manual_procurement.view_make_procure_without_security +#: model_terms:ir.ui.view,arch_db:stock_orderpoint_manual_procurement.view_make_procurment_buffer_wizard msgid "Cancel" msgstr "" @@ -25,67 +27,67 @@ msgid "Change quantity in manual procurements from reordering rules" msgstr "" #. module: stock_orderpoint_manual_procurement -#: model:ir.ui.view,arch_db:stock_orderpoint_manual_procurement.view_warehouse_orderpoint_tree +#: model_terms:ir.ui.view,arch_db:stock_orderpoint_manual_procurement.view_warehouse_orderpoint_tree msgid "Create Procurement" msgstr "" #. module: stock_orderpoint_manual_procurement -#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_create_uid -#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item_create_uid +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint__create_uid +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item__create_uid msgid "Created by" msgstr "" #. module: stock_orderpoint_manual_procurement -#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_create_date -#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item_create_date +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint__create_date +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item__create_date msgid "Created on" msgstr "" #. module: stock_orderpoint_manual_procurement -#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_display_name -#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item_display_name +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint__display_name +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item__display_name msgid "Display Name" msgstr "" #. module: stock_orderpoint_manual_procurement -#: model:ir.ui.view,arch_db:stock_orderpoint_manual_procurement.view_make_procure_without_security -#: model:ir.ui.view,arch_db:stock_orderpoint_manual_procurement.view_make_procurment_buffer_wizard +#: model_terms:ir.ui.view,arch_db:stock_orderpoint_manual_procurement.view_make_procure_without_security +#: model_terms:ir.ui.view,arch_db:stock_orderpoint_manual_procurement.view_make_procurment_buffer_wizard msgid "Execute" msgstr "" #. module: stock_orderpoint_manual_procurement -#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_id -#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item_id +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint__id +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item__id msgid "ID" msgstr "" #. module: stock_orderpoint_manual_procurement -#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item_ids -#: model:ir.ui.view,arch_db:stock_orderpoint_manual_procurement.view_make_procure_without_security -#: model:ir.ui.view,arch_db:stock_orderpoint_manual_procurement.view_make_procurment_buffer_wizard +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint__item_ids +#: model_terms:ir.ui.view,arch_db:stock_orderpoint_manual_procurement.view_make_procure_without_security +#: model_terms:ir.ui.view,arch_db:stock_orderpoint_manual_procurement.view_make_procurment_buffer_wizard msgid "Items" msgstr "" #. module: stock_orderpoint_manual_procurement -#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint___last_update -#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item___last_update +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint____last_update +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item____last_update msgid "Last Modified on" msgstr "" #. module: stock_orderpoint_manual_procurement -#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item_write_uid -#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_write_uid +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint__write_uid +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item__write_uid msgid "Last Updated by" msgstr "" #. module: stock_orderpoint_manual_procurement -#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item_write_date -#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_write_date +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint__write_date +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item__write_date msgid "Last Updated on" msgstr "" #. module: stock_orderpoint_manual_procurement -#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item_location_id +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item__location_id msgid "Location" msgstr "" @@ -111,30 +113,33 @@ msgid "No reordering rule found!" msgstr "" #. module: stock_orderpoint_manual_procurement -#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item_date_planned +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item__date_planned msgid "Planned Date" msgstr "" #. module: stock_orderpoint_manual_procurement -#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_stock_warehouse_orderpoint_procure_recommended_qty -#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_stock_warehouse_orderpoint_template_procure_recommended_qty +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_stock_warehouse_orderpoint__procure_recommended_qty msgid "Procure Recommendation" msgstr "" #. module: stock_orderpoint_manual_procurement -#: model:ir.ui.view,arch_db:stock_orderpoint_manual_procurement.view_make_procure_without_security -#: model:ir.ui.view,arch_db:stock_orderpoint_manual_procurement.view_make_procurment_buffer_wizard +#: model_terms:ir.ui.view,arch_db:stock_orderpoint_manual_procurement.view_make_procure_without_security +#: model_terms:ir.ui.view,arch_db:stock_orderpoint_manual_procurement.view_make_procurment_buffer_wizard msgid "Procurement Request" msgstr "" #. module: stock_orderpoint_manual_procurement -#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item_product_id +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item__product_id msgid "Product" msgstr "" #. module: stock_orderpoint_manual_procurement -#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item_qty -#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item_qty_without_security +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item__qty +msgid "Qty" +msgstr "" + +#. module: stock_orderpoint_manual_procurement +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item__qty_without_security msgid "Quantity" msgstr "" @@ -145,13 +150,12 @@ msgid "Quantity must be positive." msgstr "" #. module: stock_orderpoint_manual_procurement -#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_stock_warehouse_orderpoint_procure_recommended_date -#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_stock_warehouse_orderpoint_template_procure_recommended_date +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_stock_warehouse_orderpoint__procure_recommended_date msgid "Recommended Request Date" msgstr "" #. module: stock_orderpoint_manual_procurement -#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item_orderpoint_id +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item__orderpoint_id msgid "Reordering rule" msgstr "" @@ -161,13 +165,13 @@ msgid "Request Procurement" msgstr "" #. module: stock_orderpoint_manual_procurement -#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item_uom_id +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item__uom_id msgid "Unit of Measure" msgstr "" #. module: stock_orderpoint_manual_procurement -#: model:ir.ui.view,arch_db:stock_orderpoint_manual_procurement.view_make_procure_without_security -#: model:ir.ui.view,arch_db:stock_orderpoint_manual_procurement.view_make_procurment_buffer_wizard +#: model_terms:ir.ui.view,arch_db:stock_orderpoint_manual_procurement.view_make_procure_without_security +#: model_terms:ir.ui.view,arch_db:stock_orderpoint_manual_procurement.view_make_procurment_buffer_wizard msgid "Use this assistant to generate a procurement request for this\n" " stock buffer. According to the product configuration,\n" " this may trigger a draft purchase order, a manufacturing\n" @@ -175,12 +179,11 @@ msgid "Use this assistant to generate a procurement request for this\n" msgstr "" #. module: stock_orderpoint_manual_procurement -#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item_warehouse_id +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item__warehouse_id msgid "Warehouse" msgstr "" #. module: stock_orderpoint_manual_procurement -#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item_wiz_id +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item__wiz_id msgid "Wizard" msgstr "" - diff --git a/stock_orderpoint_manual_procurement/readme/CONFIGURE.rst b/stock_orderpoint_manual_procurement/readme/CONFIGURE.rst new file mode 100644 index 000000000..138b1bb04 --- /dev/null +++ b/stock_orderpoint_manual_procurement/readme/CONFIGURE.rst @@ -0,0 +1,4 @@ +If you want users to be able to change the recommended quantity to procure, +you should assign them to the security group +'Change quantity in manual procurements from reordering rules', +under 'Settings / Users / Users'. diff --git a/stock_orderpoint_manual_procurement/readme/CONTRIBUTORS.rst b/stock_orderpoint_manual_procurement/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..72c4da711 --- /dev/null +++ b/stock_orderpoint_manual_procurement/readme/CONTRIBUTORS.rst @@ -0,0 +1,4 @@ +* Jordi Ballester Alomar +* Lois Rilo Antelo +* Bhavesh Odedra +* Kitti Upariphutthiphong diff --git a/stock_orderpoint_manual_procurement/readme/DESCRIPTION.rst b/stock_orderpoint_manual_procurement/readme/DESCRIPTION.rst new file mode 100644 index 000000000..7134f714c --- /dev/null +++ b/stock_orderpoint_manual_procurement/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +This module allows users to manually start procurements from the list of reordering rules, +based on the quantity that is recommended to be procured. diff --git a/stock_orderpoint_manual_procurement/readme/USAGE.rst b/stock_orderpoint_manual_procurement/readme/USAGE.rst new file mode 100644 index 000000000..adebc5c42 --- /dev/null +++ b/stock_orderpoint_manual_procurement/readme/USAGE.rst @@ -0,0 +1,5 @@ +Go to 'Inventory > Master Data > Reordering Rules' and review the quantity recommended to be procured. +You can now start the procurement for a single or a list of reordering rules. + +The recommended quantity to procure is adjusted to the +procurement unit of measure indicated in the reordering rule. diff --git a/stock_orderpoint_manual_procurement/static/description/index.html b/stock_orderpoint_manual_procurement/static/description/index.html new file mode 100644 index 000000000..2ee0de101 --- /dev/null +++ b/stock_orderpoint_manual_procurement/static/description/index.html @@ -0,0 +1,439 @@ + + + + + + +Stock Orderpoint Manual Procurement + + + +
+

Stock Orderpoint Manual Procurement

+ + +

Beta License: AGPL-3 OCA/stock-logistics-warehouse Translate me on Weblate Try me on Runbot

+

This module allows users to manually start procurements from the list of reordering rules, +based on the quantity that is recommended to be procured.

+

Table of contents

+ +
+

Configuration

+

If you want users to be able to change the recommended quantity to procure, +you should assign them to the security group +‘Change quantity in manual procurements from reordering rules’, +under ‘Settings / Users / Users’.

+
+
+

Usage

+

Go to ‘Inventory > Master Data > Reordering Rules’ and review the quantity recommended to be procured. +You can now start the procurement for a single or a list of reordering rules.

+

The recommended quantity to procure is adjusted to the +procurement unit of measure indicated in the reordering rule.

+
+
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Eficent
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

This module is part of the OCA/stock-logistics-warehouse project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/stock_orderpoint_manual_procurement/tests/test_stock_orderpoint_manual_procurement.py b/stock_orderpoint_manual_procurement/tests/test_stock_orderpoint_manual_procurement.py index 0ac172e6d..de1abd258 100644 --- a/stock_orderpoint_manual_procurement/tests/test_stock_orderpoint_manual_procurement.py +++ b/stock_orderpoint_manual_procurement/tests/test_stock_orderpoint_manual_procurement.py @@ -40,7 +40,7 @@ class TestStockWarehouseOrderpoint(common.TransactionCase): self.group_purchase_manager], self.company1) # Get required Model data - self.product_uom = self.env.ref('product.product_uom_unit') + self.product_uom = self.env.ref('uom.product_uom_unit') self.location = self.env.ref('stock.stock_location_stock') self.product = self.env.ref('product.product_product_7') diff --git a/stock_orderpoint_manual_procurement/views/stock_warehouse_orderpoint_view.xml b/stock_orderpoint_manual_procurement/views/stock_warehouse_orderpoint_view.xml index bce429370..1088e2840 100644 --- a/stock_orderpoint_manual_procurement/views/stock_warehouse_orderpoint_view.xml +++ b/stock_orderpoint_manual_procurement/views/stock_warehouse_orderpoint_view.xml @@ -12,7 +12,7 @@