This question has been flagged

i want to hide a certain field upon creation, but not on edit.

just to hide the field on creation, but on edit it will be visible.

i dont have states or workflow in my form, i want to use the attrs={invisible:[('','','')]} , but i cant get the state or the condition of the form to write in the domain.

Avatar
Discard
Best Answer

you could setup your domain based on the id field or create_date = False, also you need to declare that field in the view with invisible="1" to use it in the domain, something like this:

<field name="id" invisible="1"/> 
<field name="field_name" attrs="{'invisible':[('id','=','False')]}"/>
Avatar
Discard
Author

it works, thanks!

Thx Axel, this has resolved the same problem with me. I gave you one upvote.

Thanks to all of you, nice to help and receive upvotes