[MIG] product_usability to v16

This commit is contained in:
Alexis de Lattre
2022-10-27 21:27:46 +02:00
parent 15c77b3e8a
commit a9292506ae
8 changed files with 20 additions and 19 deletions

View File

@@ -1,4 +1,4 @@
# Copyright 2015-2021 Akretion (http://www.akretion.com)
# Copyright 2015-2022 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# @author Raphaël Valyi <rvalyi@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
@@ -14,7 +14,7 @@ class ProductProduct(models.Model):
barcode = fields.Char(tracking=20)
weight = fields.Float(tracking=30)
active = fields.Boolean(tracking=40)
barcode_type = fields.Char(compute='_compute_barcode_type')
barcode_type = fields.Char(compute='_compute_barcode_type', precompute=True)
_sql_constraints = [(
# Maybe it could be better to have a constrain per company