Skip to content

Commit

Permalink
[IMP] account: added a button on bank statements to see the journal i…
Browse files Browse the repository at this point in the history
…tems created as soon as some are created
  • Loading branch information
qdp-odoo committed Jul 4, 2014
1 parent 66a4f65 commit 13b52c3
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions addons/account/account_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,10 @@
<button class="oe_inline oe_stat_button" name="%(action_view_account_statement_from_invoice_lines)d"
string="Import Invoice" type="action"
attrs="{'invisible':[('state','=','confirm')]}" widget="statinfo" icon="fa-pencil-square-o"/>
<button class="oe_inline oe_stat_button" name="button_journal_entries"
string="Journal Items" type="object"
attrs="{'invisible':[('move_line_ids','=',[])]}" icon="fa-bars"/>
<field name="move_line_ids" invisible="1"/>
</div>
<label for="name" class="oe_edit_only"/>
<h1><field name="name"/></h1>
Expand Down Expand Up @@ -630,19 +634,6 @@
</field>
</record>

<record id="view_bank_statement_form_journal_items" model="ir.ui.view">
<field name="name">account.bank.statement.journal.items.form.inherit</field>
<field name="model">account.bank.statement</field>
<field name="inherit_id" ref="view_bank_statement_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@name='import_buttons']" position="inside">
<button name="button_journal_entries"
string="Journal Items" type="object"
attrs="{'invisible':[('state','!=','confirm')]}"/>
</xpath>
</field>
</record>

<record id="action_bank_statement_tree" model="ir.actions.act_window">
<field name="name">Bank Statements</field>
<field name="res_model">account.bank.statement</field>
Expand Down

0 comments on commit 13b52c3

Please sign in to comment.