[MIG] product_usability to v16
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user