How to do it...

We will enable this feature to modify a form view for the res.partner model, as follows:
<record id="view_all_customers_form" model="ir.ui.view">
<field name="name">All customers</field>
<field name="model">res.partner</field>
<field name="arch" type="xml">
<form>
<sheet>
<group>
<field name="name" />
<field name="email"/>
</group>
</sheet>
<div class="o_attachment_preview"
options="{types: ['image', 'pdf'], 'order': 'desc'}" />
<div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers"/>
<field name="activity_ids" widget="mail_activity"/>
<field name="message_ids" widget="mail_thread"/>
</div>
</form>
</field>
</record>
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset