Skip to Content
Menu
This question has been flagged
1 Reply
3023 Views

Hi everyone,

I'm trying to customize the form with 'message_ids', I don't want the applicant automatic added as follower. So, I added the context parameter:

<record model="ir.ui.view" id="oit_crm_case_form_view_job">

            <field name="name">Custom - Jobs - Recruitment Form</field>
            <field name="model">hr.applicant</field>
            <field name="inherit_id" ref="hr_recruitment.crm_case_form_view_job"/>
            <field name="arch" type="xml">
                <xpath expr="/form/div[1]/field[@name='message_ids']" position="attributes">
                    <attribute name="context">{'mail_post_autofollow':False}</attribute>
                </xpath>
            </field>
        </record>

But, it does not work.

Does anyone can help?

Thank you

Avatar
Discard
Best Answer

Use these flags also

mail_post_autofollow=False,
mail_notify_force_send = False,
default_notify=False
Avatar
Discard
Author

Hi Hilar,

Where will I put this code?

put in your context