跳至内容
菜单
此问题已终结
2 回复
4319 查看

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
4083
2
9月 23
9834
1
4月 22
4138
0
10月 21
2597
4
12月 19
6761