summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dico <ddico@oerp.ca>2014-07-23 12:22:45 -0400
committerDenis Ledoux <dle@odoo.com>2015-06-26 15:56:17 +0200
commit6f60153e5d47c5b96befc7382686cb5872f5afb8 (patch)
tree6b29af3449da659feb3aaaa2b35b5efbf9d3efea
parent08b85e5821cc9b9a654462eb15a70d2e00d03863 (diff)
[IMP] account: useless records browsing
A variable "lines" is instancied few lines above, with the exact same browse call, and there is no operation that could lead to an update of the result between these two browse calls. Closes #1394
-rw-r--r--addons/account/account_move_line.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py
index 4d070ed963e..82407dc262c 100644
--- a/addons/account/account_move_line.py
+++ b/addons/account/account_move_line.py
@@ -953,7 +953,7 @@ class account_move_line(osv.osv):
if context is None:
context = {}
company_list = []
- for line in self.browse(cr, uid, ids, context=context):
+ for line in lines:
if company_list and not line.company_id.id in company_list:
raise osv.except_osv(_('Warning!'), _('To reconcile the entries company should be the same for all entries.'))
company_list.append(line.company_id.id)