Use declarative index definition for ModelSQL

issue5757
This commit is contained in:
Raimon Esteve 2022-11-08 19:30:12 +01:00
parent 2221795b57
commit 8713eb2506
1 changed files with 2 additions and 2 deletions

View File

@ -358,9 +358,9 @@ class WhooshWhooshLang(ModelSQL):
__name__ = 'whoosh.schema-whoosh.lang'
_table = 'whoosh_schema_lang_rel'
schema = fields.Many2One('whoosh.schema', 'Schema', ondelete='CASCADE',
required=True, select=True)
required=True)
lang = fields.Many2One('ir.lang', 'Language',
ondelete='CASCADE', required=True, select=True)
ondelete='CASCADE', required=True)
class WhooshSchemaGroup(ModelSQL):