change_default attribute
Use of change_default attribute.
Example.
'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.
Example.
'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.
Comments
another attribute is widget="selection" to make many2one type field display as combobox.