Odoo Help

0

Account.invoice : Can't find method "invoice_open" responsible of transfering invoice from draft to open

By
Yassine TEIMI
on 12/22/14, 10:31 AM 910 views

In the account_invoice_view.xml file, the button validate is associated to invoice_open, but I can not find this method on account_invoice.py,

By doing this I want to know how the movement on account.move object is generated. any suggestions ?

1
Zbik
On 12/22/14, 10:56 AM

invoice_open is a signal to invoice workflow, see code in account_invoice_workflow.xml. Workflow call methods:

action_date_assign()
action_move_create()
action_number()
invoice_validate()

at this moment

0
Yassine TEIMI
On 12/22/14, 11:02 AM

Yes, so there is three kinds of button, object, action, and workflow. The default one is Workflow isn't it ?  Thanks.

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.

Register

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)

Stats

Asked: 12/22/14, 10:31 AM
Seen: 910 times
Last updated: 3/16/15, 8:10 AM