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

Hii

how to set xpath globally like i have field parent_id and i use it in diferent diferent forms in same module. when i change it's string that time only main form string would be changed not on every form. how to do it ?

plz suggest me... 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

If you have different forms, you would need to inherit all the forms and change the string is the only way.

You can also override fields_view_get method and change the string for a field (or whatever you want to do). This method is called whenever any view gets loaded. So this will work for all the views in your case.

Ảnh đại diện
Huỷ bỏ