Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4129 มุมมอง

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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Download Odoo 8 แก้ไขแล้ว
1
พ.ค. 22
25566
7
ต.ค. 17
13060
0
มี.ค. 17
4009
0
พ.ย. 16
8253
2
เม.ย. 16
6879