Hi everyone,
I'm creating a new form view inherit from another form view. And this view is inherited from base.view_partner_form.
<record id="view_emails_partner_info_form" model="ir.ui.view">
<field name="name">res.partner.emails.info.inherit</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
.....
<xpath expr="//sheet" position="after">
<div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers"/>
<field name="message_ids" widget="mail_thread" options='{"thread_level": 1}'/>
</div>
</xpath>
</field>
</record>
and my form is:
<record id="oit_mail_view_emails_partner_info_form" model="ir.ui.view">
<field name="name">oit_mail.res.partner.emails.info.inherit</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="mail.view_emails_partner_info_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='message_ids']" position="attributes">
<attribute name="context">{'mail_post_autofollow':False}</attribute>
</xpath>
</field>
</record>
But, it seem does not work. I didn't see my new view, and nothing changed from the UI.
Did I make something wrong?
Thank you.
Problem solved, I forgot adding the file