[fix] small potential error that will never in this case anyway

bzr revid: nicolas.vanhoren@openerp.com-20110630094213-oioei7gyxz1rfi50
This commit is contained in:
niv-openerp 2011-06-30 11:42:13 +02:00
parent b550fd58f2
commit d40da9c9d6
1 changed files with 1 additions and 1 deletions

View File

@ -1016,7 +1016,7 @@ def resolve_o2m_operations(cr, uid, target_osv, operations, fields, context):
result = None
if not isinstance(operation, (list, tuple)):
result = target_osv.read(cr, uid, operation, fields, context=context)
if operation[0] == 0:
elif operation[0] == 0:
# may be necessary to check if all the fields are here and get the default values?
result = operation[2]
elif operation[0] == 1: