Use declarative index definition for ModelSQL

issue5757
This commit is contained in:
Raimon Esteve 2022-11-09 16:27:58 +01:00
parent d728341290
commit f789ab0703
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ class PartyProductionWarehouse(ModelSQL, ValueMixin):
"Party Lang"
__name__ = 'party.party.production_warehouse'
party = fields.Many2One(
'party.party', "Party", ondelete='CASCADE', select=True)
'party.party', "Party", ondelete='CASCADE')
production_warehouse = fields.Many2One('stock.location',
'Production Warehouse', domain=[
('type', '=', 'warehouse'),