Shravy
Shravy

Reputation: 666

How to keep a check box "unchecked" in odoo?

I am trying to keep a check box "unchecked" in my custom module, Any Idea on this?

Upvotes: 1

Views: 1582

Answers (2)

Chandu
Chandu

Reputation: 2129

Just make this changes to field.boolean("string",default=False,readonly=False, ,required=False)

It will works, Thanks

Upvotes: 0

forvas
forvas

Reputation: 10189

If you want to do that, you must set it as readonly, that way no user will be able to set it as True.

Upvotes: 1

Related Questions