diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2017-03-10 10:28:23 +0100 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2017-03-10 10:28:23 +0100 |
| commit | e6e6a8889f3f302539ee4b4b46c6c6c8487e1a06 (patch) | |
| tree | 9a364957a912126a7d46f108912cd4f0908e307e | |
| parent | e6d790e3408f7f5a8eab4bbf05c06fc92b779cc1 (diff) | |
[FIX] account: typo
The context is created as a set, not a dict.
opw-716141
| -rw-r--r-- | addons/account/models/account_bank_statement.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/account/models/account_bank_statement.py b/addons/account/models/account_bank_statement.py index a3f1544987e..c9634d5f270 100644 --- a/addons/account/models/account_bank_statement.py +++ b/addons/account/models/account_bank_statement.py @@ -274,12 +274,12 @@ class AccountBankStatement(models.Model): """ Changes statement state to Running.""" for statement in self: if not statement.name: - context = {'ir_sequence_date', statement.date} + context = {'ir_sequence_date': statement.date} if statement.journal_id.sequence_id: - st_number = statement.journal_id.sequence_id.with_context(context).next_by_id() + st_number = statement.journal_id.sequence_id.with_context(**context).next_by_id() else: SequenceObj = self.env['ir.sequence'] - st_number = SequenceObj.with_context(context).next_by_code('account.bank.statement') + st_number = SequenceObj.with_context(**context).next_by_code('account.bank.statement') statement.name = st_number statement.state = 'open' |
