跳至內容
選單
此問題已被標幟
2 回覆
4349 瀏覽次數

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.

頭像
捨棄
作者 最佳答案

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.

頭像
捨棄
最佳答案

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.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
9月 24
4098
2
9月 23
9852
1
4月 22
4170
0
10月 21
2622
4
12月 19
6774