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

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -