You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

96 lines
4.5 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Form view of report.pdf-->
<record id="report_pdf_view_form" model="ir.ui.view">
<field name="name">report.pdf.view.form</field>
<field name="model">report.pdf</field>
<field name="priority">20</field>
<field name="arch" type="xml">
<form>
<header>
<button name="action_print_report" type="object"
string="Print Report" class="oe_highlight"/>
</header>
<field name="binding_model_id" invisible="1"/>
<field name="action_button" invisible="1"/>
<sheet>
<div class="oe_button_box" name="button_box">
<button name="action_create_model" type="object"
string="Add Action"
attrs="{'invisible':[('action_button','!=',False)]}"
icon="fa-plus-square"
class="oe_stat_button"/>
<button name="action_unlink_action" type="object"
string="Remove Action"
attrs="{'invisible':[('action_button','!=',True)]}"
icon="fa-plus-square"
class="oe_stat_button"/>
</div>
<div class="oe_title">
<h1>
<group>
<field name="name"/>
</group>
</h1>
</div>
<group>
<field name="model_id"/>
</group>
<span>The column order will be as selected in the below
table
</span>
<notebook>
<page string="Fields To View">
<group>
<field name="fields_ids">
<tree editable="bottom">
<field name="field_model"
invisible="1"/>
<field name="field_relation"
invisible="1"/>
<field name="report_field_id"
options="{'no_create': True, 'no_create_edit':True}"/>
<field name="field_label"/>
<field name="field_type"/>
<field name="one2many_model_field_ids"
widget="many2many_tags"
string="Child Fields"
attrs="{'invisible': [('field_type', '!=', 'one2many')]}"
domain="[('model', '=', field_relation)]"/>
</tree>
</field>
<field name="date_field_id"
domain="[('model_id', '=', model_id)]"/>
<field name="field_order" invisible="1"/>
</group>
<group attrs="{'invisible': [('date_field_id', '=', False)]}">
<field name="start_date" class="oe_inline"
attrs="{'invisible': [('date_field_id', '=', False)]}"/>
<field name="end_date" class="oe_inline"
attrs="{'invisible': [('date_field_id', '=', False)]}"/>
</group>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<!-- Record action of report.pdf-->
<record id="report_pdf_action" model="ir.actions.act_window">
<field name="name">Report PDF</field>
<field name="res_model">report.pdf</field>
<field name="view_mode">tree,form</field>
</record>
<!-- Menu of report.pdf-->
<menuitem id="report_pdf_menu"
name="PDF Report Designer"
action="report_pdf_action"
parent="base.menu_administration"
sequence="50"/>
</odoo>