Newer
Older
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="xbus_message_view_tree" model="ir.ui.view">
<field name="name">xbus_message_view_tree</field>
<field name="model">xbus.message</field>
<field name="arch" type="xml">
<field name="envelope_id" />
<field name="type" />
<field name="uid" />
</field>
</record>
<record id="xbus_message_view_form" model="ir.ui.view">
<field name="name">xbus_message_view_form</field>
<field name="model">xbus.message</field>
<field name="arch" type="xml">
<form string="Xbus Message">
<sheet>
<group>
<field name="envelope_id" />
<field name="type" />
<field name="uid" />
</group>
<group>
<!-- The header field is hidden if its conversion to json works -->
<field name="header" string="Header" invisible="header_json" />
<!-- header_json field is only visible if the conversion of the header field to json works -->
<field
name="header_json"
string="Header"
/>
<!-- The body field is hidden if its conversion to json works -->
<!-- body_json field is only visible if the conversion of the body field to json works -->
<field
name="body_json"
string="Body"
<button
name="action_open_document"
string="Open Document"
type="object"
icon="fa-file-text-o"
/>
<field name="res_model" />
<field name="res_id" />
</field>
</group>
</sheet>
</form>
</field>
</record>
<record id="xbus_message_view_search" model="ir.ui.view">
<field name="name">xbus_message_view_tree</field>
<field name="model">xbus.message</field>
<field name="arch" type="xml">
<search string="Messages">
<field name="uid" />
<field name="type" />
<field name="envelope_id" />
<group expand="0" string="Group By">
<filter
name="group_type"
string="Type"
domain="[]"
context="{'group_by':'type'}"
/>
</group>
</search>
</field>
</record>
<record id="xbus_message_action" model="ir.actions.act_window">
<field name="name">Xbus Messages</field>
<field name="res_model">xbus.message</field>
<field name="path">xbus-messages</field>