Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
4150 Weergaven

Hello everyone, in advance thanks for your answers.

I need to define by default, throughout the project, that all Many2one relationships have index = True. Any ideas?.

In a class it is enough to define this property to the field, but in the project there are several relationships that do not have this attribute. What I require is somehow, in some superclass I invent, define all these relationships index = True and that automatically assign them. So you do not have to go one by one and assign it manually.

Pyton, Open ERP, Odoo, ORM

Thank you.

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
mei 22
25587
7
okt. 17
13077
0
mrt. 17
4027
0
nov. 16
8283
2
apr. 16
6907