Odoo Help


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.


how does odoo prioritize conflicting model extensions

Alexander Soare
on 8/18/16, 5:45 AM 102 views

If I extend res.partner with two different custom addons how does Odoo prioritize which one applies first. For example, I might overwrite the original create method in both extensions like so:

class extend_partner(openerp.models.Model):
     _inherit = 'res.partner'
     def create(self):
         res = super(extend_partner, self).create(vals)
         # do custom stuff
         return res

What happens when I have two of the above extensions and the "#do custom stuff" code block conflicts or should be done in a certain order? Is there any place in the documentation that explains this in detail?

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)


Asked: 8/18/16, 5:45 AM
Seen: 102 times
Last updated: 8/18/16, 7:46 AM