[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 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,
}
)