[IMP] account: added a button on bank statements to see the journal items created as soon as some are created
This commit is contained in:
parent
66a4f65599
commit
13b52c3fb7
|
@ -575,6 +575,10 @@
|
||||||
<button class="oe_inline oe_stat_button" name="%(action_view_account_statement_from_invoice_lines)d"
|
<button class="oe_inline oe_stat_button" name="%(action_view_account_statement_from_invoice_lines)d"
|
||||||
string="Import Invoice" type="action"
|
string="Import Invoice" type="action"
|
||||||
attrs="{'invisible':[('state','=','confirm')]}" widget="statinfo" icon="fa-pencil-square-o"/>
|
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>
|
</div>
|
||||||
<label for="name" class="oe_edit_only"/>
|
<label for="name" class="oe_edit_only"/>
|
||||||
<h1><field name="name"/></h1>
|
<h1><field name="name"/></h1>
|
||||||
|
@ -630,19 +634,6 @@
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</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">
|
<record id="action_bank_statement_tree" model="ir.actions.act_window">
|
||||||
<field name="name">Bank Statements</field>
|
<field name="name">Bank Statements</field>
|
||||||
<field name="res_model">account.bank.statement</field>
|
<field name="res_model">account.bank.statement</field>
|
||||||
|
|
Loading…
Reference in New Issue