Skip to Content
Menu
This question has been flagged
2 Replies
4311 Rodiniai

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.

Portretas
Atmesti
Autorius Best Answer

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.

Portretas
Atmesti
Best Answer

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.

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
3
rugs. 24
4081
2
rugs. 23
9829
1
bal. 22
4137
0
spal. 21
2596
4
gruod. 19
6761