diff --git a/app_odoo_customize/models/app_theme_config_settings.py b/app_odoo_customize/models/app_theme_config_settings.py index 7e16a2df..3c1415f2 100644 --- a/app_odoo_customize/models/app_theme_config_settings.py +++ b/app_odoo_customize/models/app_theme_config_settings.py @@ -237,6 +237,8 @@ class AppThemeConfigSettings(models.TransientModel): ['mrp.production.product.line', ], ['mrp.unbuild', ], ['change.production.qty', ], + ['sale.forecast.indirect', ], + ['sale.forecast', ], ] try: for line in to_removes: diff --git a/app_procurement_for_subcontract_service/models/procurement.py b/app_procurement_for_subcontract_service/models/procurement.py index 13dd605a..0d4c1c21 100644 --- a/app_procurement_for_subcontract_service/models/procurement.py +++ b/app_procurement_for_subcontract_service/models/procurement.py @@ -2,7 +2,7 @@ # # Copyright 2017 Camptocamp SA # # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). # -from odoo import api, models +from odoo import api, models, _ class ProcurementGroup(models.Model): @@ -16,7 +16,7 @@ class ProcurementGroup(models.Model): @api.model def _get_rule(self, product_id, location_id, values): - res = super()._get_rule(product_id, location_id, values) + res = super(ProcurementGroup, self)._get_rule(product_id, location_id, values) if not res: if self._is_subcontracted_service(product_id): rule_id = location_id.get_warehouse().\