Use declarative index definition for ModelSQL

issue5757
This commit is contained in:
Raimon Esteve 2022-11-09 16:28:19 +01:00
parent b147f2bd9e
commit e08a872ffa
1 changed files with 2 additions and 2 deletions

View File

@ -26,8 +26,8 @@ class Plan(DeactivableMixin, ModelSQL, ModelView):
'Product Cost Plan'
__name__ = 'product.cost.plan'
number = fields.Char('Number', select=True, readonly=True)
name = fields.Char('Name', select=True, required=True)
number = fields.Char('Number', readonly=True)
name = fields.Char('Name', required=True)
product = fields.Many2One('product.product', 'Product')
product_uom_category = fields.Function(
fields.Many2One('product.uom.category', 'Product UoM Category'),