139 lines
5.6 KiB
XML
139 lines
5.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<!-- ================= Expression ================= -->
|
|
<record id="view_dn_expression_list" model="ir.ui.view">
|
|
<field name="name">dn.report.expression.list</field>
|
|
<field name="model">dn.report.expression</field>
|
|
<field name="arch" type="xml">
|
|
<list editable="bottom">
|
|
<field name="sequence" widget="handle"/>
|
|
<field name="label"/>
|
|
<field name="engine"/>
|
|
<field name="formula"/>
|
|
<field name="figure_type"/>
|
|
</list>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- ================= Line ================= -->
|
|
<record id="view_dn_line_form" model="ir.ui.view">
|
|
<field name="name">dn.report.line.form</field>
|
|
<field name="model">dn.report.line</field>
|
|
<field name="arch" type="xml">
|
|
<form>
|
|
<sheet>
|
|
<group>
|
|
<group>
|
|
<field name="name"/>
|
|
<field name="code"/>
|
|
<field name="parent_id"/>
|
|
</group>
|
|
<group>
|
|
<field name="sequence"/>
|
|
<field name="is_total"/>
|
|
</group>
|
|
</group>
|
|
<notebook>
|
|
<page string="Expressions" name="expressions">
|
|
<field name="expression_ids" nolabel="1">
|
|
<list editable="bottom">
|
|
<field name="sequence" widget="handle"/>
|
|
<field name="label"/>
|
|
<field name="engine"/>
|
|
<field name="formula"/>
|
|
<field name="figure_type"/>
|
|
</list>
|
|
</field>
|
|
<div class="text-muted small mt-2">
|
|
Engine reference: domain = journal item domain;
|
|
account_codes = comma separated account code prefixes (e.g. 60,62);
|
|
aggregation = arithmetic over other expression labels (e.g. CA + RE);
|
|
text = static label.
|
|
</div>
|
|
</page>
|
|
</notebook>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_dn_line_list" model="ir.ui.view">
|
|
<field name="name">dn.report.line.list</field>
|
|
<field name="model">dn.report.line</field>
|
|
<field name="arch" type="xml">
|
|
<list>
|
|
<field name="sequence" widget="handle"/>
|
|
<field name="name"/>
|
|
<field name="code"/>
|
|
<field name="parent_id"/>
|
|
<field name="is_total"/>
|
|
</list>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- ================= Report ================= -->
|
|
<record id="view_dn_report_form" model="ir.ui.view">
|
|
<field name="name">dn.report.form</field>
|
|
<field name="model">dn.report</field>
|
|
<field name="arch" type="xml">
|
|
<form>
|
|
<header>
|
|
<button name="%(action_dn_report_view)d" type="action"
|
|
string="Preview Report" class="oe_highlight"
|
|
context="{'active_id': id, 'report_id': id}"/>
|
|
</header>
|
|
<sheet>
|
|
<div class="oe_title">
|
|
<h1><field name="name" placeholder="Report Name"/></h1>
|
|
</div>
|
|
<group>
|
|
<group>
|
|
<field name="code"/>
|
|
<field name="sequence"/>
|
|
<field name="active"/>
|
|
</group>
|
|
<group>
|
|
<field name="group_by_account"/>
|
|
</group>
|
|
</group>
|
|
<field name="description" placeholder="Description"/>
|
|
<notebook>
|
|
<page string="Report Lines" name="lines">
|
|
<field name="line_ids" nolabel="1">
|
|
<list editable="bottom">
|
|
<field name="sequence" widget="handle"/>
|
|
<field name="name"/>
|
|
<field name="code"/>
|
|
<field name="parent_id"/>
|
|
<field name="is_total"/>
|
|
</list>
|
|
</field>
|
|
</page>
|
|
</notebook>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_dn_report_list" model="ir.ui.view">
|
|
<field name="name">dn.report.list</field>
|
|
<field name="model">dn.report</field>
|
|
<field name="arch" type="xml">
|
|
<list>
|
|
<field name="sequence" widget="handle"/>
|
|
<field name="name"/>
|
|
<field name="code"/>
|
|
<field name="active"/>
|
|
</list>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_dn_report_config" model="ir.actions.act_window">
|
|
<field name="name">DN Report Configuration</field>
|
|
<field name="res_model">dn.report</field>
|
|
<field name="view_mode">list,form</field>
|
|
</record>
|
|
|
|
</odoo>
|