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 278178f627
commit f5b0f50759
1 file changed
+1 -1
+1 -1
View File
@@ -48,7 +48,7 @@ class PartySalePriceList(ModelSQL, CompanyValueMixin):
"Party Sale Price List"
__name__ = 'party.party.sale_price_list'
party = fields.Many2One(
'party.party', "Party", ondelete='CASCADE', select=True,
'party.party', "Party", ondelete='CASCADE',
context={
'company': Eval('company', -1),
},