Odoo Help


Don't send a message on creation

Marvin Haß
on 5/18/15, 2:18 AM 634 views


does anyone knew whow i can disable the creation message of an object? I just want to disable the createion message, not all messages.


Marvin Haß
On 5/18/15, 3:52 AM

Here is the answer:

class my_class(models.Model):

     _inherit = 'my.class'


     def create(self, data):

         return super(my_class, self.with_context(tracking_disable=True)).create(data)

On 5/18/15, 5:12 AM

You can do this via Settings -> Technical -> Email -> Subtypes.

Uncheck the checkbox "default" for your action to disable the messages.

Note: this is for version 7, idk if they changed this.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 5/18/15, 2:18 AM
Seen: 634 times
Last updated: 5/28/15, 9:13 AM