[IMP] account: Improve Journal Entries view From Bank Statements
Beforehand, when display the journal entries from a bank statement, some fields (Due Date, Next Activity, Payment status) that are not very relevant were displayed. Now, we use the bank & cash view to display the bank statement in a more relevant manner. closes odoo/odoo#70811 Task: 2459562 Signed-off-by: William André (wan) <wan@odoo.com>
This commit is contained in:
@@ -462,13 +462,16 @@ class AccountBankStatement(models.Model):
|
||||
def button_journal_entries(self):
|
||||
return {
|
||||
'name': _('Journal Entries'),
|
||||
'view_mode': 'tree,form',
|
||||
'res_model': 'account.move',
|
||||
'view_id': False,
|
||||
'view_mode': 'tree',
|
||||
'res_model': 'account.move.line',
|
||||
'view_id': self.env.ref('account.view_move_line_tree_grouped_bank_cash').id,
|
||||
'type': 'ir.actions.act_window',
|
||||
'domain': [('id', 'in', self.line_ids.move_id.ids)],
|
||||
'domain': [('move_id', 'in', self.line_ids.move_id.ids)],
|
||||
'context': {
|
||||
'search_default_account_id': self.journal_id.default_account_id.id,
|
||||
'journal_id': self.journal_id.id,
|
||||
'group_by': 'move_id',
|
||||
'expand': True
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user