mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
Otherwise one needs to switch page every time. Use a field.Html for the report so we can emphasise the main information. The page where the report was should be displayed only for technical users, it is meaningless for normal users.
73 lines
2.4 KiB
XML
73 lines
2.4 KiB
XML
<openerp>
|
|
<data>
|
|
|
|
<record id="credit_control_run_tree" model="ir.ui.view">
|
|
<field name="name">credit.control.run.tree</field>
|
|
<field name="model">credit.control.run</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Credit control run">
|
|
<field name="date"/>
|
|
<field name="state"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="credit_control_run_form" model="ir.ui.view">
|
|
<field name="name">credit.control.run.form</field>
|
|
<field name="model">credit.control.run</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Credit control run">
|
|
<header>
|
|
<field name="state" widget="statusbar"
|
|
statusbar_visible="draft,done"
|
|
statusbar_colors='{}'/>
|
|
</header>
|
|
<sheet>
|
|
<group>
|
|
<field name="date"/>
|
|
</group>
|
|
<notebook>
|
|
<page string="Policies">
|
|
<field name="policy_ids" colspan="4" nolabel="1"/>
|
|
<separator string="Report"
|
|
attrs="{'invisible': [('report', '=', False)]}"/>
|
|
<field name="report" colspan="4" nolabel="1"
|
|
attrs="{'invisible': [('report', '=', False)]}"/>
|
|
</page>
|
|
<page string="Manual Lines" groups="base.group_no_one">
|
|
<field name="manual_ids" colspan="4" nolabel="1"/>
|
|
</page>
|
|
</notebook>
|
|
<group col="3" colspan="4">
|
|
<button name="generate_credit_lines"
|
|
string="Compute Credit Control Lines"
|
|
colspan="1"
|
|
type="object" icon="gtk-execute"
|
|
attrs="{'invisible': [('state', '!=', 'draft')]}"/>
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
|
|
<record model="ir.actions.act_window" id="credit_control_run">
|
|
<field name="name">Credit Control Run</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">credit.control.run</field>
|
|
<field name="domain"></field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="view_id" ref="credit_control_run_tree"/>
|
|
</record>
|
|
|
|
|
|
<menuitem
|
|
name="Credit Control Run"
|
|
parent="base_credit_control_menu"
|
|
action="credit_control_run"
|
|
id="credit_control_run_menu"/>
|
|
|
|
</data>
|
|
</openerp>
|