In Odoo/OpenERP 7, I have a nullable numeric column called balance
'balance': fields.float(string='Balance',digits=(20,2))
I am trying to use Python code to update None
into the field
self.write(cr, uid, [1], { 'balance':None })
but, rather frustratingly, Python treats None the same as 0 so I end up with 0 in the DB instead of the expected Null.
Any pointers on how I can use the write command to store a null value?