コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
4287 ビュー

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
4074
2
9月 23
9820
1
4月 22
4134
0
10月 21
2593
4
12月 19
6755