Use declarative index definition for ModelSQL
issue5757 review361251002
This commit is contained in:
1 parent
bf5bb65a70
commit
b231651ddd
1 file changed
+2
-2
+2
-2
@@ -14,14 +14,14 @@ class ProductLocation(sequence_ordered(), ModelSQL, ModelView, MatchMixin):
|
||||
__name__ = 'stock.product.location'
|
||||
template = fields.Many2One(
|
||||
'product.template', "Product",
|
||||
required=True, ondelete='CASCADE', select=True,
|
||||
required=True, ondelete='CASCADE',
|
||||
domain=[
|
||||
If(Bool(Eval('product')),
|
||||
('products', '=', Eval('product')),
|
||||
()),
|
||||
])
|
||||
product = fields.Many2One(
|
||||
'product.product', "Variant", ondelete='CASCADE', select=True,
|
||||
'product.product', "Variant", ondelete='CASCADE',
|
||||
domain=[
|
||||
If(Bool(Eval('template')),
|
||||
('template', '=', Eval('template')),
|
||||
|
||||
Reference in new issue
Block a user