From 3f71122884781a3741c9159d64110d6e553c40b4 Mon Sep 17 00:00:00 2001 From: Lois Rilo Date: Tue, 6 Aug 2024 12:12:39 +0200 Subject: [PATCH] [MIG] mrp_production_picking_type_from_route: Migration to 15.0 --- mrp_production_picking_type_from_route/README.rst | 10 +++++----- mrp_production_picking_type_from_route/__manifest__.py | 2 +- .../models/mrp_production.py | 6 +++--- .../static/description/index.html | 7 +++---- 4 files changed, 12 insertions(+), 13 deletions(-) diff --git a/mrp_production_picking_type_from_route/README.rst b/mrp_production_picking_type_from_route/README.rst index 690df7026..d984fc263 100644 --- a/mrp_production_picking_type_from_route/README.rst +++ b/mrp_production_picking_type_from_route/README.rst @@ -17,13 +17,13 @@ MRP Production Picking Type From Route :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/14.0/mrp_production_picking_type_from_route + :target: https://github.com/OCA/manufacture/tree/15.0/mrp_production_picking_type_from_route :alt: OCA/manufacture .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/manufacture-14-0/manufacture-14-0-mrp_production_picking_type_from_route + :target: https://translation.odoo-community.org/projects/manufacture-15-0/manufacture-15-0-mrp_production_picking_type_from_route :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png - :target: https://runboat.odoo-community.org/builds?repo=OCA/manufacture&target_branch=14.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/manufacture&target_branch=15.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -52,7 +52,7 @@ 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 to smash it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -82,6 +82,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_picking_type_from_route/__manifest__.py b/mrp_production_picking_type_from_route/__manifest__.py index 4648c005f..24c2ca0d0 100644 --- a/mrp_production_picking_type_from_route/__manifest__.py +++ b/mrp_production_picking_type_from_route/__manifest__.py @@ -3,7 +3,7 @@ { "name": "MRP Production Picking Type From Route", "summary": "Updates the operation type creating MO based on the product", - "version": "14.0.1.0.0", + "version": "15.0.1.0.0", "category": "Manufacture", "website": "https://github.com/OCA/manufacture", "author": "ForgeFlow, Odoo Community Association (OCA)", diff --git a/mrp_production_picking_type_from_route/models/mrp_production.py b/mrp_production_picking_type_from_route/models/mrp_production.py index 2e0642ffd..5c45b2c64 100644 --- a/mrp_production_picking_type_from_route/models/mrp_production.py +++ b/mrp_production_picking_type_from_route/models/mrp_production.py @@ -12,8 +12,8 @@ class MrpProduction(models.Model): # If triggered also from picking_type_id changes, it would be impossible # to adjust picking_type_id manually. @api.onchange("product_id", "company_id") - def onchange_product_id(self): - res = super().onchange_product_id() + def _onchange_product_id(self): + res = super()._onchange_product_id() if self.product_id: base_domain = [ ("action", "=", "manufacture"), @@ -22,7 +22,7 @@ class MrpProduction(models.Model): ("company_id", "child_of", self.company_id.id), ] res_rule = self.env["procurement.group"]._search_rule( - False, self.product_id, False, base_domain + False, False, self.product_id, False, base_domain ) if res_rule: self.picking_type_id = res_rule.picking_type_id diff --git a/mrp_production_picking_type_from_route/static/description/index.html b/mrp_production_picking_type_from_route/static/description/index.html index 02b9b3d93..465597c78 100644 --- a/mrp_production_picking_type_from_route/static/description/index.html +++ b/mrp_production_picking_type_from_route/static/description/index.html @@ -1,4 +1,3 @@ - @@ -369,7 +368,7 @@ ul.auto-toc { !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:f1383a1e86a8864d407c8883419866e78ff9c2088c09c18356946909eb612b71 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

+

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

This module add an onchange that updates the operation type based on the product while creating a new MO manually.

Table of contents

@@ -400,7 +399,7 @@ configured for that product.

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 to smash it by providing a detailed and welcomed -feedback.

+feedback.

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

@@ -424,7 +423,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome

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.