Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4153 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
Download Odoo 8 Đã xử lý
1
thg 5 22
25588
7
thg 10 17
13078
0
thg 3 17
4030
0
thg 11 16
8284
2
thg 4 16
6911