Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to overwrite the default value of default_email_registration and default_email_event ? [Closed]

By
Anabela Damas
on 12/11/13, 9:50 AM 1,272 views

The Question has been closed

by
Anabela Damas
on 12/16/2013 06:26:41

Hi,

I'm trying to set the value default_email_event and default_email_registration to False (unselected) from event.type, but the values are set by the file email_template.xml. I have no idea how to overwrite this... In the file the values are set like this:

    <!-- Default Values -->
    <record model="ir.values" id="default_value_event_mail_confirmation">
        <field name="name">default_email_event</field>
        <field name="key">default</field>
        <field name="key2"></field>
        <field eval="ref('confirmation_event')" name="value_unpickle"/>
        <field name="model">event.type</field>
    </record>
    <record model="ir.values" id="default_value_registration_mail_confirmation">
        <field name="name">default_email_registration</field>
        <field name="key">default</field>
        <field name="key2"></field>
        <field eval="ref('confirmation_registration')" name="value_unpickle"/>
        <field name="model">event.type</field>
    </record>

And I want to remove those values as default, but I don't want to change the core. Someone knows how to do this change?

1
Luís
On 12/16/13, 6:03 AM

Hi,

You need change eval to False.

<!-- Default Values -->
<record model="ir.values" id="default_value_event_mail_confirmation">
    <field name="name">default_email_event</field>
    <field name="key">default</field>
    <field name="key2"></field>
    <field eval="False" name="value_unpickle"/>
    <field name="model">event.type</field>
</record>
<record model="ir.values" id="default_value_registration_mail_confirmation">
    <field name="name">default_email_registration</field>
    <field name="key">default</field>
    <field name="key2"></field>
    <field eval="False" name="value_unpickle"/>
    <field name="model">event.type</field>
</record>

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 12/11/13, 9:50 AM
Seen: 1272 times
Last updated: 3/16/15, 8:10 AM