Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
4140 Visualizzazioni

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
mag 22
25570
7
ott 17
13065
0
mar 17
4013
0
nov 16
8259
2
apr 16
6886