Write must evaluate the type of ids
(transplanted from a9e22d81068dd0529b7f7f5b0415066d066cea73)
This commit is contained in:
1 parent
940599e171
commit
ea5f894f38
1 file changed
+4
@@ -56,6 +56,10 @@ class FiscalYear(ModelSQL, ModelView):
|
||||
|
||||
def write(self, cursor, user, ids, vals, context=None):
|
||||
invoice_obj = self.pool.get('account.invoice')
|
||||
|
||||
if isinstance(ids, (int, long)):
|
||||
ids = [ids]
|
||||
|
||||
for sequence in ('out_invoice_sequence', 'in_invoice_sequence',
|
||||
'out_credit_note_sequence', 'in_credit_note_sequence'):
|
||||
if vals.get(sequence):
|
||||
|
||||
Reference in new issue
Block a user