mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
Merge pull request #90 from sbidoul/patch-1
[8.0] account_default_draft_move uses tuples instead of lists in sql operations
This commit is contained in:
@@ -53,7 +53,5 @@ 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:
|
||||
|
||||
Reference in New Issue
Block a user