diff --git a/mrp_production_grouped_by_product/README.rst b/mrp_production_grouped_by_product/README.rst index cfcd1428f..d4859f473 100644 --- a/mrp_production_grouped_by_product/README.rst +++ b/mrp_production_grouped_by_product/README.rst @@ -14,13 +14,13 @@ Production Grouped By Product :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmanufacture-lightgray.png?logo=github - :target: https://github.com/OCA/manufacture/tree/12.0/mrp_production_grouped_by_product + :target: https://github.com/OCA/manufacture/tree/13.0/mrp_production_grouped_by_product :alt: OCA/manufacture .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/manufacture-12-0/manufacture-12-0-mrp_production_grouped_by_product + :target: https://translation.odoo-community.org/projects/manufacture-13-0/manufacture-13-0-mrp_production_grouped_by_product :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/129/12.0 + :target: https://runbot.odoo-community.org/runbot/129/13.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -66,13 +66,46 @@ Known issues / Roadmap * Add a check in the product form for excluding it from being grouped. +Changelog +========= + +13.0.1.0.0 (2020-01-09) +~~~~~~~~~~~~~~~~~~~~~~~ + +* [MIG] Migration to v13. + +12.0.1.0.0 (2019-04-17) +~~~~~~~~~~~~~~~~~~~~~~~ + +* [MIG] Migration to v12: + +11.0.2.0.1 (2018-07-02) +~~~~~~~~~~~~~~~~~~~~~~~ + +* [FIX] fix test in mrp_production_grouped_by_product + +11.0.2.0.0 (2018-06-04) +~~~~~~~~~~~~~~~~~~~~~~~ + +* [IMP] mrp_production_grouped_by_product: Time frames + +11.0.1.0.1 (2018-05-11) +~~~~~~~~~~~~~~~~~~~~~~~ + +* [IMP] mrp_production_grouped_by_company: Context evaluation on mrp.production + tests + +11.0.1.0.0 (2018-05-11) +~~~~~~~~~~~~~~~~~~~~~~~ + +* Start of the history. + 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -92,6 +125,10 @@ Contributors * David Vidal * Pedro M. Baeza +* `Ecosoft `__: + + * Pimolnat Suntian + Maintainers ~~~~~~~~~~~ @@ -105,6 +142,6 @@ 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/manufacture `_ project on GitHub. +This module is part of the `OCA/manufacture `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/mrp_production_grouped_by_product/models/mrp_production.py b/mrp_production_grouped_by_product/models/mrp_production.py index e9b66716e..fab3f4f95 100644 --- a/mrp_production_grouped_by_product/models/mrp_production.py +++ b/mrp_production_grouped_by_product/models/mrp_production.py @@ -39,7 +39,7 @@ class MrpProduction(models.Model): ("bom_id", "=", vals.get("bom_id", False)), ("routing_id", "=", vals.get("routing_id", False)), ("company_id", "=", vals.get("company_id", False)), - ("state", "=", "confirmed"), + ("state", "=", "draft"), ] if not vals.get("date_planned_finished"): return domain diff --git a/mrp_production_grouped_by_product/models/stock_rule.py b/mrp_production_grouped_by_product/models/stock_rule.py index 7772b73d5..1c1eb06b2 100644 --- a/mrp_production_grouped_by_product/models/stock_rule.py +++ b/mrp_production_grouped_by_product/models/stock_rule.py @@ -8,11 +8,7 @@ from odoo import models class StockRule(models.Model): _inherit = "stock.rule" - def _run_manufacture( - self, product_id, product_qty, product_uom, location_id, name, origin, values - ): + def _run_manufacture(self, procurements): return super( StockRule, self.with_context(group_mo_by_product=True) - )._run_manufacture( - product_id, product_qty, product_uom, location_id, name, origin, values - ) + )._run_manufacture(procurements) diff --git a/mrp_production_grouped_by_product/readme/CONTRIBUTORS.rst b/mrp_production_grouped_by_product/readme/CONTRIBUTORS.rst index cfa3cdf10..60cb3d685 100644 --- a/mrp_production_grouped_by_product/readme/CONTRIBUTORS.rst +++ b/mrp_production_grouped_by_product/readme/CONTRIBUTORS.rst @@ -2,3 +2,7 @@ * David Vidal * Pedro M. Baeza + +* `Ecosoft `__: + + * Pimolnat Suntian diff --git a/mrp_production_grouped_by_product/readme/HISTORY.rst b/mrp_production_grouped_by_product/readme/HISTORY.rst new file mode 100644 index 000000000..f31a6b9ad --- /dev/null +++ b/mrp_production_grouped_by_product/readme/HISTORY.rst @@ -0,0 +1,29 @@ +13.0.1.0.0 (2020-01-09) +~~~~~~~~~~~~~~~~~~~~~~~ + +* [MIG] Migration to v13. + +12.0.1.0.0 (2019-04-17) +~~~~~~~~~~~~~~~~~~~~~~~ + +* [MIG] Migration to v12: + +11.0.2.0.1 (2018-07-02) +~~~~~~~~~~~~~~~~~~~~~~~ + +* [FIX] fix test in mrp_production_grouped_by_product + +11.0.2.0.0 (2018-06-04) +~~~~~~~~~~~~~~~~~~~~~~~ + +* [IMP] mrp_production_grouped_by_product: Time frames + +11.0.1.0.1 (2018-05-11) +~~~~~~~~~~~~~~~~~~~~~~~ + +* [IMP] mrp_production_grouped_by_company: Context evaluation on mrp.production + tests + +11.0.1.0.0 (2018-05-11) +~~~~~~~~~~~~~~~~~~~~~~~ + +* Start of the history. diff --git a/mrp_production_grouped_by_product/static/description/index.html b/mrp_production_grouped_by_product/static/description/index.html index 3d3033215..68bfb69cd 100644 --- a/mrp_production_grouped_by_product/static/description/index.html +++ b/mrp_production_grouped_by_product/static/description/index.html @@ -367,7 +367,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/manufacture Translate me on Weblate Try me on Runbot

+

Beta License: AGPL-3 OCA/manufacture Translate me on Weblate Try me on Runbot

When you have several sales orders with make to order (MTO) products that require to be manufactured, you end up with one manufacturing order for each of these sales orders, which is very bad for the management.

@@ -379,19 +379,28 @@ creating a new one.

Table of contents

-

Configuration

+

Configuration

To configure the time frame for grouping manufacturing order:

  1. Go to Inventory > Configuration > Warehouse Management > Operation Types

    @@ -415,45 +424,88 @@ be grouped together.

-

Known issues / Roadmap

+

Known issues / Roadmap

  • Add a check in the product form for excluding it from being grouped.
+
+

Changelog

+
+

13.0.1.0.0 (2020-01-09)

+
    +
  • [MIG] Migration to v13.
  • +
+
+
+

12.0.1.0.0 (2019-04-17)

+
    +
  • [MIG] Migration to v12:
  • +
+
+
+

11.0.2.0.1 (2018-07-02)

+
    +
  • [FIX] fix test in mrp_production_grouped_by_product
  • +
+
+
+

11.0.2.0.0 (2018-06-04)

+
    +
  • [IMP] mrp_production_grouped_by_product: Time frames
  • +
+
+
+

11.0.1.0.1 (2018-05-11)

+
    +
  • [IMP] mrp_production_grouped_by_company: Context evaluation on mrp.production + tests
  • +
+
+
+

11.0.1.0.0 (2018-05-11)

+
    +
  • Start of the history.
  • +
+
+
-

Bug Tracker

+

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.

+feedback.

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

-

Credits

+

Credits

-

Authors

+

Authors

  • Tecnativa
-

Contributors

+

Contributors

-

Maintainers

+

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/manufacture project on GitHub.

+

This module is part of the OCA/manufacture project on GitHub.

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