openerp - How to set default value for fields in odoo 8? -
i created checkbox , want set default value false unchecked default.i tried in 4 ways still checkbox checked default.
raw = fields.boolean(default=0) raw = fields.boolean(default='0') raw = fields.boolean(default=false) raw = fields.boolean(default='false')
default it's none boolean field not false(you can check database without setting default value of boolean field, see there none not false), need set
raw = fields.boolean(string='raw', default=false)
Comments
Post a Comment