2021-03-23 19:14:27 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<flectra>
|
2021-05-26 11:32:35 +00:00
|
|
|
<record model="ir.ui.view" id="view_base_comment_template_tree">
|
|
|
|
<field name="name">base.comment.template.search</field>
|
|
|
|
<field name="model">base.comment.template</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Comment Templates">
|
|
|
|
<field name="sequence" widget="handle" />
|
|
|
|
<field name="name" />
|
|
|
|
<field name="position" />
|
|
|
|
<field name="company_id" groups="base.group_multi_company" />
|
|
|
|
<field name="partner_ids" />
|
|
|
|
<field name="model_ids" />
|
|
|
|
<field name="domain" />
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2021-03-23 19:14:27 +00:00
|
|
|
<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" />
|
2021-05-26 11:32:35 +00:00
|
|
|
<field name="partner_ids" />
|
|
|
|
<field name="model_ids" />
|
|
|
|
<field name="domain" />
|
|
|
|
<field name="sequence" />
|
2021-03-23 19:14:27 +00:00
|
|
|
</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">
|
2021-05-26 11:32:35 +00:00
|
|
|
<widget
|
|
|
|
name="web_ribbon"
|
|
|
|
title="Archived"
|
|
|
|
bg_color="bg-danger"
|
|
|
|
attrs="{'invisible': [('active', '=', True)]}"
|
|
|
|
/>
|
2021-03-23 19:14:27 +00:00
|
|
|
</div>
|
|
|
|
<div class="oe_title">
|
|
|
|
<h1>
|
|
|
|
<field name="name" placeholder="Name" />
|
|
|
|
</h1>
|
|
|
|
</div>
|
|
|
|
<group>
|
|
|
|
<group>
|
2021-05-26 11:32:35 +00:00
|
|
|
<field name="active" invisible="1" />
|
|
|
|
<field name="position" />
|
2021-03-23 19:14:27 +00:00
|
|
|
<field
|
|
|
|
name="company_id"
|
|
|
|
groups="base.group_multi_company"
|
|
|
|
/>
|
2021-05-26 11:32:35 +00:00
|
|
|
<field name="domain" />
|
|
|
|
<field name="model_ids" widget="many2many_tags" />
|
|
|
|
<field name="partner_ids" widget="many2many_tags" />
|
2021-03-23 19:14:27 +00:00
|
|
|
</group>
|
|
|
|
</group>
|
|
|
|
<notebook>
|
|
|
|
<page name="text" string="Comment">
|
|
|
|
<field name="text" />
|
|
|
|
</page>
|
|
|
|
</notebook>
|
|
|
|
</sheet>
|
|
|
|
</form>
|
|
|
|
</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>
|
2021-05-26 11:32:35 +00:00
|
|
|
<!-- menu in settings/technical/reporting -->
|
|
|
|
<menuitem
|
|
|
|
id="reports_base_comment_template_menuitem"
|
|
|
|
name="Comment Templates"
|
|
|
|
parent="base.reporting_menuitem"
|
|
|
|
action="action_base_comment_template"
|
|
|
|
sequence="4"
|
|
|
|
groups="base.group_no_one"
|
|
|
|
/>
|
2021-03-23 19:14:27 +00:00
|
|
|
</flectra>
|