mirror of
https://gitlab.com/flectra-community/reporting-engine.git
synced 2024-11-15 10:42:07 +00:00
88 lines
3.4 KiB
XML
88 lines
3.4 KiB
XML
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||
|
<flectra>
|
||
|
|
||
|
<record model="ir.ui.view" id="view_base_comment_template_search">
|
||
|
<field name="name">base.comment.template.search</field>
|
||
|
<field name="model">base.comment.template</field>
|
||
|
<field name="arch" type="xml">
|
||
|
<search string="Comment Templates">
|
||
|
<field name="name" />
|
||
|
<field name="position" />
|
||
|
<field name="company_id" groups="base.group_multi_company" />
|
||
|
</search>
|
||
|
</field>
|
||
|
</record>
|
||
|
|
||
|
<record model="ir.ui.view" id="view_base_comment_template_form">
|
||
|
<field name="name">base.comment.template.form</field>
|
||
|
<field name="model">base.comment.template</field>
|
||
|
<field name="arch" type="xml">
|
||
|
<form string="Comment Templates">
|
||
|
<sheet>
|
||
|
<div class="oe_button_box" name="button_box">
|
||
|
<button
|
||
|
name="toggle_active"
|
||
|
type="object"
|
||
|
class="oe_stat_button"
|
||
|
icon="fa-archive"
|
||
|
>
|
||
|
<field
|
||
|
name="active"
|
||
|
widget="boolean_button"
|
||
|
options="{"terminology": "archive"}"
|
||
|
/>
|
||
|
</button>
|
||
|
</div>
|
||
|
<div class="oe_title">
|
||
|
<h1>
|
||
|
<field name="name" placeholder="Name" />
|
||
|
</h1>
|
||
|
</div>
|
||
|
<group>
|
||
|
<group>
|
||
|
<field
|
||
|
name="position"
|
||
|
widget="radio"
|
||
|
invisible="context.get('default_position')"
|
||
|
/>
|
||
|
</group>
|
||
|
<group>
|
||
|
<field
|
||
|
name="company_id"
|
||
|
groups="base.group_multi_company"
|
||
|
/>
|
||
|
</group>
|
||
|
</group>
|
||
|
<notebook>
|
||
|
<page name="text" string="Comment">
|
||
|
<field name="text" />
|
||
|
</page>
|
||
|
</notebook>
|
||
|
</sheet>
|
||
|
</form>
|
||
|
</field>
|
||
|
</record>
|
||
|
|
||
|
<record model="ir.ui.view" id="view_base_comment_template_tree">
|
||
|
<field name="name">account.comment.template.list</field>
|
||
|
<field name="model">base.comment.template</field>
|
||
|
<field name="priority" eval="6" />
|
||
|
<field name="arch" type="xml">
|
||
|
<tree>
|
||
|
<field name="name" />
|
||
|
<field name="position" />
|
||
|
<field name="company_id" groups="base.group_multi_company" />
|
||
|
</tree>
|
||
|
</field>
|
||
|
</record>
|
||
|
|
||
|
<record model="ir.actions.act_window" id="action_base_comment_template">
|
||
|
<field name="name">Comment Templates</field>
|
||
|
<field name="type">ir.actions.act_window</field>
|
||
|
<field name="res_model">base.comment.template</field>
|
||
|
<field name="view_mode">tree,form</field>
|
||
|
<field name="view_id" ref="view_base_comment_template_tree" />
|
||
|
</record>
|
||
|
|
||
|
</flectra>
|