diff --git a/mrp_workorder_sequence/README.rst b/mrp_workorder_sequence/README.rst index 04d27a8b3..305e2b4d7 100644 --- a/mrp_workorder_sequence/README.rst +++ b/mrp_workorder_sequence/README.rst @@ -63,10 +63,17 @@ Contributors ------------ - Lois Rilo + - Pimolnat Suntian + - Christopher Ormaza + - Akim Juillerat +- `APSL `__: + + - Antoni Marroig + Maintainers ----------- diff --git a/mrp_workorder_sequence/__manifest__.py b/mrp_workorder_sequence/__manifest__.py index b229069c3..2399329b5 100644 --- a/mrp_workorder_sequence/__manifest__.py +++ b/mrp_workorder_sequence/__manifest__.py @@ -4,7 +4,7 @@ { "name": "MRP Work Order Sequence", "summary": "adds sequence to production work orders.", - "version": "16.0.0.1.0", + "version": "17.0.1.0.0", "category": "Manufacturing", "author": "ForgeFlow, Odoo Community Association (OCA)", "development_status": "Beta", diff --git a/mrp_workorder_sequence/hooks.py b/mrp_workorder_sequence/hooks.py index c080cb29f..00ff31818 100644 --- a/mrp_workorder_sequence/hooks.py +++ b/mrp_workorder_sequence/hooks.py @@ -2,8 +2,8 @@ # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) -def post_init_hook(cr, registry): - cr.execute( +def post_init_hook(env): + env.cr.execute( """ UPDATE mrp_workorder SET sequence = n.sequence diff --git a/mrp_workorder_sequence/readme/CONTRIBUTORS.md b/mrp_workorder_sequence/readme/CONTRIBUTORS.md index 21d1ae2e5..5dbdf3a05 100644 --- a/mrp_workorder_sequence/readme/CONTRIBUTORS.md +++ b/mrp_workorder_sequence/readme/CONTRIBUTORS.md @@ -2,3 +2,6 @@ - Pimolnat Suntian \<\> - Christopher Ormaza \<\> - Akim Juillerat \<\> +- [APSL](https://www.apsl.tech): + + - Antoni Marroig \<\> diff --git a/mrp_workorder_sequence/static/description/index.html b/mrp_workorder_sequence/static/description/index.html index daa4f9304..7368dda1e 100644 --- a/mrp_workorder_sequence/static/description/index.html +++ b/mrp_workorder_sequence/static/description/index.html @@ -412,6 +412,10 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
  • Pimolnat Suntian <pimolnats@ecosoft.co.th>
  • Christopher Ormaza <chris.ormaza@forgeflow.com>
  • Akim Juillerat <akim.juillerat@camptocamp.com>
  • +
  • APSL: +
  • diff --git a/mrp_workorder_sequence/tests/test_mrp_workorder_sequence.py b/mrp_workorder_sequence/tests/test_mrp_workorder_sequence.py index f9b12d98b..8b887a596 100644 --- a/mrp_workorder_sequence/tests/test_mrp_workorder_sequence.py +++ b/mrp_workorder_sequence/tests/test_mrp_workorder_sequence.py @@ -8,15 +8,7 @@ from odoo.addons.mrp.tests.common import TestMrpCommon class TestMrpWorkorderSequence(TestMrpCommon): - def setUp(self): - super().setUp() - self._create_bom() - self.env["res.config.settings"].create( - { - "group_mrp_routings": True, - } - ).execute() - + @classmethod def _create_bom(self): 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): mrp_order_form = Form(self.env["mrp.production"]) mrp_order_form.product_id = product