تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
4092 أدوات العرض

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.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
Download Odoo 8 تم الحل
1
مايو 22
25543
7
أكتوبر 17
13031
0
مارس 17
3968
0
نوفمبر 16
8201
2
أبريل 16
6865