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

Hello,

I'm a odoo new developer and i have a question about the form event (create,edit and more).

I wanna edit the variable value if the form event is edit or modifier.

Or be readonly if the form event is edit : 

e.g 

Form.eventIs == "edit":

 myVar = "You're editing the form"

else:

myVar = "You'are creating a new row into the treeview"

Thanks.

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

Thanks for your response but i think you donnot understand my question.

I d not wanna the method create, write, only the events of forms.

Have btnCreate, btnImport and wanna detect if the user was clicked on of these buttons.

Cordialment.

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

Hi legland,

you have to first read odoo documentation

https://goo.gl/X9po1m 

https://goo.gl/xz6edq

don't forget to accept answer if helpful

thank you.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 9 24
4073
2
thg 9 23
9816
1
thg 4 22
4132
0
thg 10 21
2590
4
thg 12 19
6751