문제

I want to add a small process after an user validate an invoice in Openerp 7 (just some recording for the salesperson) but i dont know how to 'intercept' the action ?

도움이 되었습니까?

해결책

Ok, i just had to inherit the account_invoice class and define a new invoice_validate method

@user1576199 is this what you meant ?

from account import account_invoice

class account_invoice(osv.osv):
    _inherit="account.invoice"
    def invoice_validate(self, cr, uid, ids, context=None):
        super(account_invoice,self).invoice_validate()
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top