diff --git a/stock_warehouse_orderpoint_stock_info/README.rst b/stock_warehouse_orderpoint_stock_info/README.rst index fde40ba94..24ba54c41 100644 --- a/stock_warehouse_orderpoint_stock_info/README.rst +++ b/stock_warehouse_orderpoint_stock_info/README.rst @@ -1,56 +1,80 @@ -.. 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 Warehouse Orderpoint Stock Info ===================================== -This modules allows to know the product availability directly in the reordering -rules. +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -Usage -===== +.. |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_warehouse_orderpoint_stock_info + :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_warehouse_orderpoint_stock_info + :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 -.. 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 +|badge1| |badge2| |badge3| |badge4| |badge5| + +This modules allows to know the product availability directly in the reordering rules. + +**Table of contents** + +.. contents:: + :local: 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 ======= +Authors +~~~~~~~ + +* OdooMRP team +* AvanzOSC +* Tecnativa + Contributors ------------- +~~~~~~~~~~~~ * Oihane Crucelaegui * Pedro M. Baeza * Ana Juaristi * Jordi Ballester Alomar * Serpent Consulting Services Pvt. Ltd. +* Saran Limpajitkutaporn -Do not contact contributors directly about support or help with technical issues. +Maintainers +~~~~~~~~~~~ -Maintainer ----------- +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_warehouse_orderpoint_stock_info/__manifest__.py b/stock_warehouse_orderpoint_stock_info/__manifest__.py index bd1039d01..4a931573a 100644 --- a/stock_warehouse_orderpoint_stock_info/__manifest__.py +++ b/stock_warehouse_orderpoint_stock_info/__manifest__.py @@ -8,7 +8,7 @@ { "name": "Stock Warehouse Orderpoint Stock Info", - "version": "11.0.1.0.0", + "version": "12.0.1.0.0", "depends": [ "stock", ], @@ -22,4 +22,5 @@ "data": [ "views/stock_warehouse_orderpoint_view.xml", ], + "installable": True } diff --git a/stock_warehouse_orderpoint_stock_info/models/stock_warehouse_orderpoint.py b/stock_warehouse_orderpoint_stock_info/models/stock_warehouse_orderpoint.py index bbd87de2e..33c6508c0 100644 --- a/stock_warehouse_orderpoint_stock_info/models/stock_warehouse_orderpoint.py +++ b/stock_warehouse_orderpoint_stock_info/models/stock_warehouse_orderpoint.py @@ -33,8 +33,7 @@ class StockWarehouseOrderpoint(models.Model): product_category = fields.Many2one( string='Product Category', related='product_id.categ_id', - store=True, - readonly=True + store=True ) @api.multi diff --git a/stock_warehouse_orderpoint_stock_info/readme/CONTRIBUTORS.rst b/stock_warehouse_orderpoint_stock_info/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..2d5b8f812 --- /dev/null +++ b/stock_warehouse_orderpoint_stock_info/readme/CONTRIBUTORS.rst @@ -0,0 +1,6 @@ +* Oihane Crucelaegui +* Pedro M. Baeza +* Ana Juaristi +* Jordi Ballester Alomar +* Serpent Consulting Services Pvt. Ltd. +* Saran Limpajitkutaporn diff --git a/stock_warehouse_orderpoint_stock_info/readme/DESCRIPTION.rst b/stock_warehouse_orderpoint_stock_info/readme/DESCRIPTION.rst new file mode 100644 index 000000000..a3e5e07da --- /dev/null +++ b/stock_warehouse_orderpoint_stock_info/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This modules allows to know the product availability directly in the reordering rules. diff --git a/stock_warehouse_orderpoint_stock_info/static/description/index.html b/stock_warehouse_orderpoint_stock_info/static/description/index.html new file mode 100644 index 000000000..4ce1f6c07 --- /dev/null +++ b/stock_warehouse_orderpoint_stock_info/static/description/index.html @@ -0,0 +1,426 @@ + + + + + + +Stock Warehouse Orderpoint Stock Info + + + +
+

Stock Warehouse Orderpoint Stock Info

+ + +

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

+

This modules allows to know the product availability directly in the reordering rules.

+

Table of contents

+ +
+

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

+
    +
  • OdooMRP team
  • +
  • AvanzOSC
  • +
  • Tecnativa
  • +
+
+
+

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_warehouse_orderpoint_stock_info/tests/test_stock_warehouse_orderpoint.py b/stock_warehouse_orderpoint_stock_info/tests/test_stock_warehouse_orderpoint.py index a365e7c9e..1bd59cea0 100644 --- a/stock_warehouse_orderpoint_stock_info/tests/test_stock_warehouse_orderpoint.py +++ b/stock_warehouse_orderpoint_stock_info/tests/test_stock_warehouse_orderpoint.py @@ -21,7 +21,7 @@ class TestStockWarehouseOrderpoint(SavepointCase): cls.product_ctg_model = cls.env['product.category'] # Get required Model data - cls.product_uom = cls.env.ref('product.product_uom_unit') + cls.product_uom = cls.env.ref('uom.product_uom_unit') cls.dest_location = cls.env.ref('stock.stock_location_stock') cls.location = cls.env.ref('stock.stock_location_locations_partner') cls.picking = cls.env.ref('stock.picking_type_in') @@ -29,7 +29,6 @@ class TestStockWarehouseOrderpoint(SavepointCase): # Create product category and product cls.product_ctg = cls.product_ctg_model.create({ 'name': 'test_product_ctg', - 'type': 'normal', }) cls.product = cls.product_model.create({ 'name': 'Test Product', diff --git a/stock_warehouse_orderpoint_stock_info/views/stock_warehouse_orderpoint_view.xml b/stock_warehouse_orderpoint_stock_info/views/stock_warehouse_orderpoint_view.xml index 1ad666b4e..91f313cc8 100644 --- a/stock_warehouse_orderpoint_stock_info/views/stock_warehouse_orderpoint_view.xml +++ b/stock_warehouse_orderpoint_stock_info/views/stock_warehouse_orderpoint_view.xml @@ -1,6 +1,6 @@ - + stock.warehouse.orderpoint.tree stock.warehouse.orderpoint @@ -17,7 +17,7 @@ - + stock.warehouse.orderpoint.form stock.warehouse.orderpoint @@ -31,8 +31,8 @@ - - stock.warehouser.orderpoint.search + + stock.warehouse.orderpoint.search stock.warehouse.orderpoint @@ -40,10 +40,12 @@ - -