Odoo Help


[9.0] Why my "make_po" method is runned 3 times ?

on 3/30/16, 2:57 AM 349 views

Hi, I inherit of my make_po method to do its core functionalities and in addition the call of my new method "transitAccountAnalytic"

But "make_po" is runned 3 times and I don't know why.

This is my class from procurement.py :

class procurement_order(models.Model):

_inherit = 'procurement.order'

def make_po(self):

print "=== make_po ==="


def transitAccountAnalytic(self):

print "=== transitAccountAnalytic ==="



On 3/30/16, 7:02 AM

The solution is to add first : @api.multi

And at the end : return res

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: 3/30/16, 2:57 AM
Seen: 349 times
Last updated: 3/30/16, 7:02 AM