Odoo Help


In accounting need to write action_move_create as super function?

on 9/3/14, 2:38 AM 1,166 views

Hi Friends,


I have to inherit and need to write some code in action_move_create function.So i have to call it from my customized module.But my customized function hasn't called when validation of invoices.I even tried with super notation as below code:

return super(account_invoice,self).action_move_create(cr, uid, ids, *args)

But it didn'd responds.So what i have to do?Help me in this Situation.thanks in advance




| 5 4 6
Zagreb | Karlovac, Croatia

there is only 10 kind of people the ones that understand binary ... and others

On 9/8/14, 10:36 AM

1. did you put dependancy for account module in your __openerp__.py ?

2. since you probably want to modify moves created by that function... maybe you should do it like:

def action_move_create(self, cr, uid, ids, context=None):
    # first call super to get the result of original method
    res = super(account_invoice, self)..action_move_create(cr, uid, ids, context=context)
    # now modify the result 
    for r in res:
        #...do some modifications
    return res # finaly return modified result

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: 9/3/14, 2:38 AM
Seen: 1166 times
Last updated: 3/16/15, 8:10 AM