Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
4320 Visualizzazioni

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.

Avatar
Abbandona
Autore Risposta migliore

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.

Avatar
Abbandona
Risposta migliore

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.

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
3
set 24
4083
2
set 23
9834
1
apr 22
4138
0
ott 21
2597
4
dic 19
6761