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.

1

Don't send a message on creation

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

Hello,

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


Regards

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

Here is the answer:

class my_class(models.Model):

     _inherit = 'my.class'

     @api.model

     def create(self, data):

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

0
Peter
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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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