mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[MIG] mrp_workorder_sequence: Migration to 17.0
This commit is contained in:
@@ -63,10 +63,17 @@ Contributors
|
|||||||
------------
|
------------
|
||||||
|
|
||||||
- Lois Rilo <lois.rilo@forgeflow.com>
|
- Lois Rilo <lois.rilo@forgeflow.com>
|
||||||
|
|
||||||
- Pimolnat Suntian <pimolnats@ecosoft.co.th>
|
- Pimolnat Suntian <pimolnats@ecosoft.co.th>
|
||||||
|
|
||||||
- Christopher Ormaza <chris.ormaza@forgeflow.com>
|
- Christopher Ormaza <chris.ormaza@forgeflow.com>
|
||||||
|
|
||||||
- Akim Juillerat <akim.juillerat@camptocamp.com>
|
- Akim Juillerat <akim.juillerat@camptocamp.com>
|
||||||
|
|
||||||
|
- `APSL <https://www.apsl.tech>`__:
|
||||||
|
|
||||||
|
- Antoni Marroig <amarroig@apsl.net>
|
||||||
|
|
||||||
Maintainers
|
Maintainers
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
{
|
{
|
||||||
"name": "MRP Work Order Sequence",
|
"name": "MRP Work Order Sequence",
|
||||||
"summary": "adds sequence to production work orders.",
|
"summary": "adds sequence to production work orders.",
|
||||||
"version": "16.0.0.1.0",
|
"version": "17.0.1.0.0",
|
||||||
"category": "Manufacturing",
|
"category": "Manufacturing",
|
||||||
"author": "ForgeFlow, Odoo Community Association (OCA)",
|
"author": "ForgeFlow, Odoo Community Association (OCA)",
|
||||||
"development_status": "Beta",
|
"development_status": "Beta",
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
|
||||||
|
|
||||||
|
|
||||||
def post_init_hook(cr, registry):
|
def post_init_hook(env):
|
||||||
cr.execute(
|
env.cr.execute(
|
||||||
"""
|
"""
|
||||||
UPDATE mrp_workorder
|
UPDATE mrp_workorder
|
||||||
SET sequence = n.sequence
|
SET sequence = n.sequence
|
||||||
|
|||||||
@@ -2,3 +2,6 @@
|
|||||||
- Pimolnat Suntian \<<pimolnats@ecosoft.co.th>\>
|
- Pimolnat Suntian \<<pimolnats@ecosoft.co.th>\>
|
||||||
- Christopher Ormaza \<<chris.ormaza@forgeflow.com>\>
|
- Christopher Ormaza \<<chris.ormaza@forgeflow.com>\>
|
||||||
- Akim Juillerat \<<akim.juillerat@camptocamp.com>\>
|
- Akim Juillerat \<<akim.juillerat@camptocamp.com>\>
|
||||||
|
- [APSL](https://www.apsl.tech):
|
||||||
|
|
||||||
|
- Antoni Marroig \<<amarroig@apsl.net>\>
|
||||||
|
|||||||
@@ -412,6 +412,10 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
|||||||
<li>Pimolnat Suntian <<a class="reference external" href="mailto:pimolnats@ecosoft.co.th">pimolnats@ecosoft.co.th</a>></li>
|
<li>Pimolnat Suntian <<a class="reference external" href="mailto:pimolnats@ecosoft.co.th">pimolnats@ecosoft.co.th</a>></li>
|
||||||
<li>Christopher Ormaza <<a class="reference external" href="mailto:chris.ormaza@forgeflow.com">chris.ormaza@forgeflow.com</a>></li>
|
<li>Christopher Ormaza <<a class="reference external" href="mailto:chris.ormaza@forgeflow.com">chris.ormaza@forgeflow.com</a>></li>
|
||||||
<li>Akim Juillerat <<a class="reference external" href="mailto:akim.juillerat@camptocamp.com">akim.juillerat@camptocamp.com</a>></li>
|
<li>Akim Juillerat <<a class="reference external" href="mailto:akim.juillerat@camptocamp.com">akim.juillerat@camptocamp.com</a>></li>
|
||||||
|
<li><a class="reference external" href="https://www.apsl.tech">APSL</a>:<ul>
|
||||||
|
<li>Antoni Marroig <<a class="reference external" href="mailto:amarroig@apsl.net">amarroig@apsl.net</a>></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="maintainers">
|
<div class="section" id="maintainers">
|
||||||
|
|||||||
@@ -8,15 +8,7 @@ from odoo.addons.mrp.tests.common import TestMrpCommon
|
|||||||
|
|
||||||
|
|
||||||
class TestMrpWorkorderSequence(TestMrpCommon):
|
class TestMrpWorkorderSequence(TestMrpCommon):
|
||||||
def setUp(self):
|
@classmethod
|
||||||
super().setUp()
|
|
||||||
self._create_bom()
|
|
||||||
self.env["res.config.settings"].create(
|
|
||||||
{
|
|
||||||
"group_mrp_routings": True,
|
|
||||||
}
|
|
||||||
).execute()
|
|
||||||
|
|
||||||
def _create_bom(self):
|
def _create_bom(self):
|
||||||
return self.env["mrp.bom"].create(
|
return self.env["mrp.bom"].create(
|
||||||
{
|
{
|
||||||
@@ -114,6 +106,16 @@ class TestMrpWorkorderSequence(TestMrpCommon):
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def setUpClass(cls):
|
||||||
|
super().setUpClass()
|
||||||
|
cls._create_bom()
|
||||||
|
cls.env["res.config.settings"].create(
|
||||||
|
{
|
||||||
|
"group_mrp_routings": True,
|
||||||
|
}
|
||||||
|
).execute()
|
||||||
|
|
||||||
def _create_order(self, product):
|
def _create_order(self, product):
|
||||||
mrp_order_form = Form(self.env["mrp.production"])
|
mrp_order_form = Form(self.env["mrp.production"])
|
||||||
mrp_order_form.product_id = product
|
mrp_order_form.product_id = product
|
||||||
|
|||||||
Reference in New Issue
Block a user