[FIX] account: when opening reconciliation from an account, only open view for that particular account
This commit is contained in:
@@ -169,7 +169,7 @@ class AccountAccount(models.Model):
|
||||
elif self.internal_type == 'receivable':
|
||||
action_context = {'show_mode_selector': False, 'mode': 'customers'}
|
||||
else:
|
||||
action_context = {'show_mode_selector': False, 'account_ids': [self.id,]}
|
||||
action_context = {'show_mode_selector': False, 'mode': 'accounts', 'account_ids': [self.id,]}
|
||||
return {
|
||||
'type': 'ir.actions.client',
|
||||
'tag': 'manual_reconciliation_view',
|
||||
|
||||
@@ -1073,7 +1073,7 @@ var ManualModel = StatementModel.extend({
|
||||
return self._rpc({
|
||||
model: 'account.move.line',
|
||||
method: 'get_data_for_manual_reconciliation',
|
||||
args: ['account', self.account_ids],
|
||||
args: ['account', model.account_ids || self.account_ids],
|
||||
context: context,
|
||||
})
|
||||
.then(function (result) {
|
||||
|
||||
Reference in New Issue
Block a user