Use declarative index definition for ModelSQL

issue5757
review361251002
This commit is contained in:
Cédric Krier committed 2022-10-11 00:44:50 +02:00
1 parent 929c6bd27b
commit 364addaf97
1 file changed
+2 -2
+2 -2
View File
@@ -16,7 +16,7 @@ class ProductCustomer(
template = fields.Many2One(
'product.template', "Product",
required=True, ondelete='CASCADE', select=True,
required=True, ondelete='CASCADE',
domain=[
If(Bool(Eval('product')),
('products', '=', Eval('product')),
@@ -24,7 +24,7 @@ class ProductCustomer(
If(Eval('active'), ('active', '=', True), ()),
])
product = fields.Many2One(
'product.product', "Variant", select=True,
'product.product', "Variant",
domain=[
If(Bool(Eval('template')),
('template', '=', Eval('template')),