<?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"> <list> <field name="envelope_id" /> <field name="type" /> <field name="uid" /> </list> </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" invisible="not header_json" /> <!-- The body field is hidden if its conversion to json works --> <field name="body" string="Body" invisible="body_json" /> <!-- body_json field is only visible if the conversion of the body field to json works --> <field name="body_json" string="Body" invisible="not body_json" /> </group> <group> <field name="link_ids" invisible="not link_ids"> <list> <button name="action_open_document" string="Open Document" type="object" icon="fa-file-text-o" invisible="not res_model or res_id==0" /> <field name="res_model" /> <field name="res_id" /> </list> </field> </group> </sheet> </form> </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="view_mode">list,form</field> <field name="path">xbus-messages</field> </record> </odoo>