From 04f03167713a664c0026254a1ce153fc6d00b778 Mon Sep 17 00:00:00 2001 From: Kitti U Date: Tue, 9 Apr 2019 16:23:31 +0700 Subject: [PATCH] [12.0][MIG] stock_orderpoint_manual_procurement_uom --- .../README.rst | 67 ++- .../__manifest__.py | 3 +- ...tock_orderpoint_manual_procurement_uom.pot | 4 +- .../readme/CONTRIBUTORS.rst | 3 + .../readme/DESCRIPTION.rst | 2 + .../readme/USAGE.rst | 2 + .../static/description/index.html | 428 ++++++++++++++++++ ...est_stock_orderpoint_manual_procurement.py | 6 +- 8 files changed, 489 insertions(+), 26 deletions(-) create mode 100644 stock_orderpoint_manual_procurement_uom/readme/CONTRIBUTORS.rst create mode 100644 stock_orderpoint_manual_procurement_uom/readme/DESCRIPTION.rst create mode 100644 stock_orderpoint_manual_procurement_uom/readme/USAGE.rst create mode 100644 stock_orderpoint_manual_procurement_uom/static/description/index.html diff --git a/stock_orderpoint_manual_procurement_uom/README.rst b/stock_orderpoint_manual_procurement_uom/README.rst index 4a3ecb35f..411613789 100644 --- a/stock_orderpoint_manual_procurement_uom/README.rst +++ b/stock_orderpoint_manual_procurement_uom/README.rst @@ -1,57 +1,82 @@ -.. 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 UoM ======================================= +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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_uom + :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_uom + :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| + Glue module for ``stock_orderpoint_uom`` and ``stock_orderpoint_manual_procurement`` +**Table of contents** + +.. contents:: + :local: + Usage ===== 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 - 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 ------------- +~~~~~~~~~~~~ * 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_uom/__manifest__.py b/stock_orderpoint_manual_procurement_uom/__manifest__.py index 641fa2ea9..69eaefe97 100644 --- a/stock_orderpoint_manual_procurement_uom/__manifest__.py +++ b/stock_orderpoint_manual_procurement_uom/__manifest__.py @@ -5,7 +5,7 @@ "name": "Stock Orderpoint Manual Procurement UoM", "summary": "Glue module for stock_orderpoint_uom and " "stock_orderpoint_manual_procurement", - "version": "11.0.1.0.0", + "version": "12.0.1.0.0", "author": "Eficent, " "Odoo Community Association (OCA)", "website": "https://github.com/OCA/stock-logistics-warehouse", @@ -14,7 +14,6 @@ "stock_orderpoint_uom", "stock_orderpoint_manual_procurement", ], - "data": [], "license": "AGPL-3", 'installable': True, 'application': False, diff --git a/stock_orderpoint_manual_procurement_uom/i18n/stock_orderpoint_manual_procurement_uom.pot b/stock_orderpoint_manual_procurement_uom/i18n/stock_orderpoint_manual_procurement_uom.pot index 1ceb3187d..32e2d5fd1 100644 --- a/stock_orderpoint_manual_procurement_uom/i18n/stock_orderpoint_manual_procurement_uom.pot +++ b/stock_orderpoint_manual_procurement_uom/i18n/stock_orderpoint_manual_procurement_uom.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 07:12+0000\n" +"PO-Revision-Date: 2019-03-16 07:12+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" diff --git a/stock_orderpoint_manual_procurement_uom/readme/CONTRIBUTORS.rst b/stock_orderpoint_manual_procurement_uom/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..da3985eca --- /dev/null +++ b/stock_orderpoint_manual_procurement_uom/readme/CONTRIBUTORS.rst @@ -0,0 +1,3 @@ +* Lois Rilo Antelo +* Bhavesh Odedra +* Kitti Upariphutthiphong diff --git a/stock_orderpoint_manual_procurement_uom/readme/DESCRIPTION.rst b/stock_orderpoint_manual_procurement_uom/readme/DESCRIPTION.rst new file mode 100644 index 000000000..7311361bf --- /dev/null +++ b/stock_orderpoint_manual_procurement_uom/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +Glue module for ``stock_orderpoint_uom`` and +``stock_orderpoint_manual_procurement`` diff --git a/stock_orderpoint_manual_procurement_uom/readme/USAGE.rst b/stock_orderpoint_manual_procurement_uom/readme/USAGE.rst new file mode 100644 index 000000000..2088fa8ac --- /dev/null +++ b/stock_orderpoint_manual_procurement_uom/readme/USAGE.rst @@ -0,0 +1,2 @@ +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_uom/static/description/index.html b/stock_orderpoint_manual_procurement_uom/static/description/index.html new file mode 100644 index 000000000..4be05c3b4 --- /dev/null +++ b/stock_orderpoint_manual_procurement_uom/static/description/index.html @@ -0,0 +1,428 @@ + + + + + + +Stock Orderpoint Manual Procurement UoM + + + +
+

Stock Orderpoint Manual Procurement UoM

+ + +

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

+

Glue module for stock_orderpoint_uom and +stock_orderpoint_manual_procurement

+

Table of contents

+ +
+

Usage

+

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_uom/tests/test_stock_orderpoint_manual_procurement.py b/stock_orderpoint_manual_procurement_uom/tests/test_stock_orderpoint_manual_procurement.py index 75e494d45..5192dd1f6 100644 --- a/stock_orderpoint_manual_procurement_uom/tests/test_stock_orderpoint_manual_procurement.py +++ b/stock_orderpoint_manual_procurement_uom/tests/test_stock_orderpoint_manual_procurement.py @@ -39,10 +39,10 @@ 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') - self.dozen = self.env.ref('product.product_uom_dozen') + self.dozen = self.env.ref('uom.product_uom_dozen') # Create Product category and Product self.product_ctg = self._create_product_category() @@ -119,6 +119,8 @@ class TestStockWarehouseOrderpoint(common.TransactionCase): } wizard = self.make_procurement_orderpoint_model.sudo(self.user).\ with_context(context).create({}) + for line in wizard.item_ids: + line.onchange_uom_id() wizard.make_procurement() return wizard