Skip to content

Commit

Permalink
Merge pull request OCA#90 from sbidoul/patch-1
Browse files Browse the repository at this point in the history
[8.0] account_default_draft_move uses tuples instead of lists in sql operations
  • Loading branch information
pedrobaeza committed Nov 26, 2014
2 parents 7496594 + 4967ae4 commit 208b00c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions account_default_draft_move/account.py
Expand Up @@ -53,7 +53,5 @@ def button_cancel(self):
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:

0 comments on commit 208b00c

Please sign in to comment.