Files
gzth/reportbro/views/templates.xml
T
2024-05-28 20:05:16 +08:00

104 lines
5.4 KiB
XML

<odoo>
<data>
<record id="view_report_report_tree" model="ir.ui.view">
<field name="name">Report Report Tree</field>
<field name="model">report.report</field>
<field name="arch" type="xml">
<tree>
<field name="name"></field>
<field name="model_id"></field>
</tree>
</field>
</record>
<record id="view_report_report_form" model="ir.ui.view">
<field name="name">Report Report Form</field>
<field name="model">report.report</field>
<field name="arch" type="xml">
<form>
<header>
<button name="button_designer" string="报表设计" type="object" class="oe_highlight"/>
</header>
<sheet>
<div class="oe_button_box" name="button_box">
<button name="add_print_actions" icon="fa-arrows" class="oe_stat_button" invisible="display_completes==True"
string="添加动作" type="object"/>
<button name="del_print_actions" icon="fa-remove" class="oe_stat_button" invisible="display_completes==False" string="删除动作" type="object"/>
</div>
<group>
<group>
<field name="display_complete" invisible="1"/>
<field name="display_completes" invisible="1"/>
<field name="name"/>
<field name="model_main_key"/>
<field name="report_type"/>
<field name="reset_designer"/>
</group>
<group>
<field name="model_id"/>
<field name="model_detail_id"/>
<field name="group_field"/>
</group>
</group>
<notebook>
<page string="主表字段">
<field name="model_ids" widget="one2many" context="{'default_model_id':model_id}">
<tree string="Report Line" editable="bottom">
<field name="model_id" column_invisible="True"/>
<field name="field_domain" column_invisible="True"/>
<field name="field_id" domain="[('id', 'in', field_domain)]" options="{'no_create': True,'no_edit': True}"/>
<field name="field_description" column_invisible="True"/>
<field name="field_params"/>
<field name="field_value"/>
<field name="ttype"/>
<field name="is_report" widget="boolean_toggle"/>
</tree>
</field>
</page>
<page string="明细字段">
<field name="model_detail_ids" widget="one2many"
context="{'default_model_id':model_detail_id}">
<tree string="Report Line" editable="bottom">
<field name="model_id" column_invisible="True"/>
<field name="field_domain" column_invisible="True"/>
<field name="field_id" domain="[('id', 'in', field_domain)]" options="{'no_create': True,'no_edit': True}"/>
<field name="field_description" column_invisible="True"/>
<field name="field_params"/>
<field name="field_value"/>
<field name="ttype"/>
<field name="is_report" widget="boolean_toggle"/>
</tree>
</field>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record id="action_report_report" model="ir.actions.act_window">
<field name="name">报表设计</field>
<field name="res_model">report.report</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem id="wms_report_base_menu" name="报表设计" parent="base_setup.menu_config" sequence="5"
action="action_report_report"/>
<record model="ir.ui.view" id="wms_print_list">
<field name="name">wms_print_list</field>
<field name="model">wms.print.list</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form>
<field name="name"/>
<footer>
<button string="关闭" class="btn-primary" special="cancel"/>
</footer>
</form>
</field>
</record>
</data>
</odoo>