From f18ed0b377c7cd48375b17a6546aa62174dbe3df Mon Sep 17 00:00:00 2001 From: Atte Isopuro Date: Thu, 5 Sep 2024 19:25:36 +0300 Subject: [PATCH 1/2] [IMP] mrp_stock_analytic: analytic mixin is redundant It has been part of mrp.production since https://github.com/odoo/odoo/commit/f13d537a42ff1a2713484d0e7c39b73fbb87a7fb --- mrp_stock_analytic/models/mrp_production.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mrp_stock_analytic/models/mrp_production.py b/mrp_stock_analytic/models/mrp_production.py index ba38c6be5e..2227c2717d 100644 --- a/mrp_stock_analytic/models/mrp_production.py +++ b/mrp_stock_analytic/models/mrp_production.py @@ -6,8 +6,7 @@ class MrpProduction(models.Model): - _name = "mrp.production" - _inherit = ["mrp.production", "analytic.mixin"] + _inherit = "mrp.production" analytic_distribution = fields.Json( inverse="_inverse_analytic_distribution", From d2f3771f2e00b4b77ba792034e26cb3465fe980f Mon Sep 17 00:00:00 2001 From: Atte Isopuro Date: Thu, 5 Sep 2024 19:31:56 +0300 Subject: [PATCH 2/2] [FIX] mrp_stock_analytic: no reason to change field visibility The field was added as default-hidden in https://github.com/odoo/odoo/commit/616aa3855f0e1a235b226858d24215c3cc8ff5f4 --- mrp_stock_analytic/views/mrp_production_views.xml | 1 - 1 file changed, 1 deletion(-) diff --git a/mrp_stock_analytic/views/mrp_production_views.xml b/mrp_stock_analytic/views/mrp_production_views.xml index 65aa9a0c89..49b28932a5 100644 --- a/mrp_stock_analytic/views/mrp_production_views.xml +++ b/mrp_stock_analytic/views/mrp_production_views.xml @@ -17,7 +17,6 @@ state in ('done', 'cancel') - show