change_default attribute

Use of change_default attribute.

'zip': fields.char('Zip', change_default=True, size=24),

By default value of change_default is False, If change_default=True then while setting default value on any field we can make that field dependent on value of the other field of the same object which has change_default=True.

Here is the video to explain the functionality.


Unknown said…
Hey, can you tell me why "selectable" is used?
Husen Daudi said…
Where you find selectable attribute? In OpenERP select="1" attribute is there which is used to display field in search panel on list view.
another attribute is widget="selection" to make many2one type field display as combobox.

Popular posts from this blog

OpenERP Installation Guide