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

Overridden method in inherited Abstract Model is not working in the inherited Model class.

By
Amit Kumar
on 10/5/16, 6:01 AM 119 views

class Abstract(models.AbstractModel):

        _name = 'abstract'

        def doSomething():

in the another module I write

class Abstract2(models.AbstractModel):

        _inherit = 'abstract'

        def doSomething():

the new extended method doSomething() does not execute.


Please suggest me the solution.

Thanks in advance. 

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: 10/5/16, 6:01 AM
Seen: 119 times
Last updated: 10/5/16, 8:11 AM