Skip to content

Commit

Permalink
[FIX] account: typo in field name
Browse files Browse the repository at this point in the history
  • Loading branch information
rco-odoo committed Oct 22, 2019
1 parent 991bfe6 commit 4bcb6c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/account/models/account_reconcile_model.py
Expand Up @@ -147,7 +147,7 @@ def action_reconcile_stat(self):
return action

def _compute_number_entries(self):
data = self.env['account.move.line'].read_group([('reconcile_model_id', 'in', self.ids)], ['reconcile_model_ids'], 'reconcile_model_id')
data = self.env['account.move.line'].read_group([('reconcile_model_id', 'in', self.ids)], ['reconcile_model_id'], 'reconcile_model_id')
mapped_data = dict([(d['reconcile_model_id'][0], d['reconcile_model_id_count']) for d in data])
for model in self:
model.number_entries = mapped_data.get(model.id, 0)
Expand Down

0 comments on commit 4bcb6c1

Please sign in to comment.