This commit is contained in:
Laurent Mignon (Acsone)
2014-01-14 15:37:18 +01:00
parent 760a4781be
commit bc879326ed

View File

@@ -459,7 +459,7 @@ class AccountStatementLine(orm.Model):
""" """
statement_line_obj = self.pool['account.bank.statement.line'] statement_line_obj = self.pool['account.bank.statement.line']
model_cols = statement_line_obj._columns model_cols = statement_line_obj._columns
sparse_fields = dict([(k , col) for k, col in model_cols.iteritems() if isinstance(col, fields.sparse) and col._type == 'char']) sparse_fields = dict([(k, col) for k, col in model_cols.iteritems() if isinstance(col, fields.sparse) and col._type == 'char'])
values = [] values = []
for statement in statement_store: for statement in statement_store:
to_json_k = set() to_json_k = set()
@@ -474,7 +474,6 @@ class AccountStatementLine(orm.Model):
values.append(st_copy) values.append(st_copy)
return values return values
def _insert_lines(self, cr, uid, statement_store, context=None): def _insert_lines(self, cr, uid, statement_store, context=None):
""" Do raw insert into database because ORM is awfully slow """ Do raw insert into database because ORM is awfully slow
when doing batch write. It is a shame that batch function when doing batch write. It is a shame that batch function