[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:
qdp-odoo
2016-10-13 11:42:50 +02:00
parent 187b32dd91
commit 421fe962eb
2 changed files with 4 additions and 4 deletions
@@ -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,
}
+1 -1
View File
@@ -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>