From d40da9c9d6b0de71c96b3f66ae95cdd477b3c053 Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Thu, 30 Jun 2011 11:42:13 +0200 Subject: [PATCH] [fix] small potential error that will never in this case anyway bzr revid: nicolas.vanhoren@openerp.com-20110630094213-oioei7gyxz1rfi50 --- addons/account_voucher/account_voucher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account_voucher/account_voucher.py b/addons/account_voucher/account_voucher.py index 7761425c94f..f8816ee3f09 100644 --- a/addons/account_voucher/account_voucher.py +++ b/addons/account_voucher/account_voucher.py @@ -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: