[IMP] account: replace the button to open related account.move.line on bank statement by a button to open the related account.move
This commit is contained in:
@@ -250,13 +250,13 @@ class AccountBankStatement(models.Model):
|
||||
context = dict(self._context or {})
|
||||
context['journal_id'] = self.journal_id.id
|
||||
return {
|
||||
'name': _('Journal Items'),
|
||||
'name': _('Journal Entries'),
|
||||
'view_type': 'form',
|
||||
'view_mode': 'tree,form',
|
||||
'res_model': 'account.move.line',
|
||||
'res_model': 'account.move',
|
||||
'view_id': False,
|
||||
'type': 'ir.actions.act_window',
|
||||
'domain': [('statement_id', 'in', self.ids)],
|
||||
'domain': [('id', 'in', self.mapped('move_line_ids').mapped('move_id').ids)],
|
||||
'context': context,
|
||||
}
|
||||
|
||||
|
||||
@@ -556,7 +556,7 @@
|
||||
<sheet>
|
||||
<div class="oe_button_box" name="button_box">
|
||||
<button class="oe_stat_button" name="button_journal_entries"
|
||||
string="Journal Items" type="object"
|
||||
string="Journal Entries" type="object"
|
||||
attrs="{'invisible':[('move_line_ids','=',[])]}" icon="fa-bars"/>
|
||||
<field name="move_line_ids" invisible="1"/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user