[8.0] account_default_draft_move use tuples instead of lists in sql operations

lists are converted into ARRAY which is invalid for a sql IN.

I'm 99.9% certain this was working before. Perhaps a change in the ORM.
This commit is contained in:
Stéphane Bidoul (ACSONE)
2014-11-26 10:32:25 +01:00
parent 7496594a6b
commit 6be9630a90

View File

@@ -53,7 +53,7 @@ class AccountMove(models.Model):
if self:
self._cr.execute('UPDATE account_move '
'SET state=%s '
'WHERE id IN %s', ('draft', self.ids,))
'WHERE id IN %s', ('draft', tuple(self.ids)))
return True
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: