[7.0] Write 0 in field many2one when value is False

Bug #1262817 reported by Luis Ernesto García Medina - http://www.vauxoo.com
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
New
Undecided
OpenERP Publisher's Warranty Team

Bug Description

1) Steps to reproduce the issue you have observed
use write function in a module, to set null in field many2one used 'False'
      Example: self.pool.get('model').write(cr, uid, ids, {'field_m2o' : False})
Note: Using a webservice works without problem
possible line with error
file: orm.py
line 4152 upd1.append(self._columns[field]._symbol_set[1](vals[field]))

2) The result you observed
set 0 in field m2o
3) The result you expected
completely empty the m2o field
4) The platform your are using
Ubuntu 12.04
 5) The OpenERP version
OpenERP 7.0
Server revno: 5179
addons revno: 9703
web addons revno: 4027

Tags: maintenance
Changed in openobject-server:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
tags: added: maintenance
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.