[MIG] mrp_production_grouped_by_product: Migration to 13.0

This commit is contained in:
ps-tubtim
2020-01-09 17:56:49 +07:00
committed by Lois Rilo
parent c2fdb69c52
commit 6dd09d14e2
6 changed files with 147 additions and 29 deletions

View File

@@ -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 <https://github.com/OCA/manufacture/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 <https://github.com/OCA/manufacture/issues/new?body=module:%20mrp_production_grouped_by_product%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/manufacture/issues/new?body=module:%20mrp_production_grouped_by_product%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Do not contact contributors directly about support or help with technical issues.
@@ -92,6 +125,10 @@ Contributors
* David Vidal
* Pedro M. Baeza
* `Ecosoft <https://ecosoft.co.th/>`__:
* Pimolnat Suntian <pimolnats@ecosoft.co.th>
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 <https://github.com/OCA/manufacture/tree/12.0/mrp_production_grouped_by_product>`_ project on GitHub.
This module is part of the `OCA/manufacture <https://github.com/OCA/manufacture/tree/13.0/mrp_production_grouped_by_product>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@@ -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

View File

@@ -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)

View File

@@ -2,3 +2,7 @@
* David Vidal
* Pedro M. Baeza
* `Ecosoft <https://ecosoft.co.th/>`__:
* Pimolnat Suntian <pimolnats@ecosoft.co.th>

View File

@@ -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.

View File

@@ -367,7 +367,7 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" 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" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/manufacture/tree/12.0/mrp_production_grouped_by_product"><img alt="OCA/manufacture" src="https://img.shields.io/badge/github-OCA%2Fmanufacture-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/manufacture-12-0/manufacture-12-0-mrp_production_grouped_by_product"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/129/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external" 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" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/manufacture/tree/13.0/mrp_production_grouped_by_product"><img alt="OCA/manufacture" src="https://img.shields.io/badge/github-OCA%2Fmanufacture-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/manufacture-13-0/manufacture-13-0-mrp_production_grouped_by_product"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/129/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>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.</p>
@@ -379,19 +379,28 @@ creating a new one.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
<li><a class="reference internal" href="#configuration" id="id1">Configuration</a></li>
<li><a class="reference internal" href="#known-issues-roadmap" id="id2">Known issues / Roadmap</a></li>
<li><a class="reference internal" href="#bug-tracker" id="id3">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="id4">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="id5">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="id6">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="id7">Maintainers</a></li>
<li><a class="reference internal" href="#configuration" id="id7">Configuration</a></li>
<li><a class="reference internal" href="#known-issues-roadmap" id="id8">Known issues / Roadmap</a></li>
<li><a class="reference internal" href="#changelog" id="id9">Changelog</a><ul>
<li><a class="reference internal" href="#id1" id="id10">13.0.1.0.0 (2020-01-09)</a></li>
<li><a class="reference internal" href="#id2" id="id11">12.0.1.0.0 (2019-04-17)</a></li>
<li><a class="reference internal" href="#id3" id="id12">11.0.2.0.1 (2018-07-02)</a></li>
<li><a class="reference internal" href="#id4" id="id13">11.0.2.0.0 (2018-06-04)</a></li>
<li><a class="reference internal" href="#id5" id="id14">11.0.1.0.1 (2018-05-11)</a></li>
<li><a class="reference internal" href="#id6" id="id15">11.0.1.0.0 (2018-05-11)</a></li>
</ul>
</li>
<li><a class="reference internal" href="#bug-tracker" id="id16">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="id17">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="id18">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="id19">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="id20">Maintainers</a></li>
</ul>
</li>
</ul>
</div>
<div class="section" id="configuration">
<h1><a class="toc-backref" href="#id1">Configuration</a></h1>
<h1><a class="toc-backref" href="#id7">Configuration</a></h1>
<p>To configure the time frame for grouping manufacturing order:</p>
<ol class="arabic">
<li><p class="first">Go to <em>Inventory &gt; Configuration &gt; Warehouse Management &gt; Operation Types</em></p>
@@ -415,45 +424,88 @@ be grouped together.</p>
</ol>
</div>
<div class="section" id="known-issues-roadmap">
<h1><a class="toc-backref" href="#id2">Known issues / Roadmap</a></h1>
<h1><a class="toc-backref" href="#id8">Known issues / Roadmap</a></h1>
<ul class="simple">
<li>Add a check in the product form for excluding it from being grouped.</li>
</ul>
</div>
<div class="section" id="changelog">
<h1><a class="toc-backref" href="#id9">Changelog</a></h1>
<div class="section" id="id1">
<h2><a class="toc-backref" href="#id10">13.0.1.0.0 (2020-01-09)</a></h2>
<ul class="simple">
<li>[MIG] Migration to v13.</li>
</ul>
</div>
<div class="section" id="id2">
<h2><a class="toc-backref" href="#id11">12.0.1.0.0 (2019-04-17)</a></h2>
<ul class="simple">
<li>[MIG] Migration to v12:</li>
</ul>
</div>
<div class="section" id="id3">
<h2><a class="toc-backref" href="#id12">11.0.2.0.1 (2018-07-02)</a></h2>
<ul class="simple">
<li>[FIX] fix test in mrp_production_grouped_by_product</li>
</ul>
</div>
<div class="section" id="id4">
<h2><a class="toc-backref" href="#id13">11.0.2.0.0 (2018-06-04)</a></h2>
<ul class="simple">
<li>[IMP] mrp_production_grouped_by_product: Time frames</li>
</ul>
</div>
<div class="section" id="id5">
<h2><a class="toc-backref" href="#id14">11.0.1.0.1 (2018-05-11)</a></h2>
<ul class="simple">
<li>[IMP] mrp_production_grouped_by_company: Context evaluation on mrp.production + tests</li>
</ul>
</div>
<div class="section" id="id6">
<h2><a class="toc-backref" href="#id15">11.0.1.0.0 (2018-05-11)</a></h2>
<ul class="simple">
<li>Start of the history.</li>
</ul>
</div>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#id3">Bug Tracker</a></h1>
<h1><a class="toc-backref" href="#id16">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/manufacture/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/manufacture/issues/new?body=module:%20mrp_production_grouped_by_product%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/manufacture/issues/new?body=module:%20mrp_production_grouped_by_product%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
<h1><a class="toc-backref" href="#id4">Credits</a></h1>
<h1><a class="toc-backref" href="#id17">Credits</a></h1>
<div class="section" id="authors">
<h2><a class="toc-backref" href="#id5">Authors</a></h2>
<h2><a class="toc-backref" href="#id18">Authors</a></h2>
<ul class="simple">
<li>Tecnativa</li>
</ul>
</div>
<div class="section" id="contributors">
<h2><a class="toc-backref" href="#id6">Contributors</a></h2>
<h2><a class="toc-backref" href="#id19">Contributors</a></h2>
<ul class="simple">
<li>Tecnativa &lt;<a class="reference external" href="https://www.tecnativa.com">https://www.tecnativa.com</a>&gt;__<ul>
<li>David Vidal</li>
<li>Pedro M. Baeza</li>
</ul>
</li>
<li><a class="reference external" href="https://ecosoft.co.th/">Ecosoft</a>:<ul>
<li>Pimolnat Suntian &lt;<a class="reference external" href="mailto:pimolnats&#64;ecosoft.co.th">pimolnats&#64;ecosoft.co.th</a>&gt;</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#id7">Maintainers</a></h2>
<h2><a class="toc-backref" href="#id20">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<p>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.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/manufacture/tree/12.0/mrp_production_grouped_by_product">OCA/manufacture</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/manufacture/tree/13.0/mrp_production_grouped_by_product">OCA/manufacture</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>