[MIG] mrp_usability_akretion: migrate to v18

This commit is contained in:
Alexis de Lattre
2024-12-31 11:28:06 +01:00
parent fae6bf361a
commit 8d5a23b478
6 changed files with 16 additions and 22 deletions

View File

@@ -1,4 +1,4 @@
# Copyright 2021-2022 Akretion (http://www.akretion.com)
# Copyright 2021-2024 Akretion France (https://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
@@ -18,3 +18,4 @@ class MrpBom(models.Model):
ready_to_produce = fields.Selection(tracking=90)
picking_type_id = fields.Many2one(tracking=60)
consumption = fields.Selection(tracking=40)
produce_delay = fields.Integer(tracking=100)

View File

@@ -1,4 +1,4 @@
# Copyright 2015-2022 Akretion (http://www.akretion.com)
# Copyright 2015-2024 Akretion France (https://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

View File

@@ -1,4 +1,4 @@
# Copyright 2020-2022 Akretion France (http://www.akretion.com/)
# Copyright 2020-2024 Akretion France (https://www.akretion.com/)
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
from odoo import models
@@ -19,7 +19,7 @@ class ProductTemplate(models.Model):
{
"context": {"default_product_tmpl_id": self.id},
"views": False,
"view_mode": "form,tree",
"view_mode": "form,list,kanban",
"res_id": bom.id,
}
)
@@ -39,7 +39,7 @@ class ProductProduct(models.Model):
action.update(
{
"views": False,
"view_mode": "form,tree",
"view_mode": "form,list,kanban",
"res_id": bom_target_ids[0].id,
}
)