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

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 633 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

--zbik--
5941
| 6 4 7
Lodz, Poland
--zbik--


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.

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: 12/22/14, 10:31 AM
Seen: 633 times
Last updated: 3/16/15, 8:10 AM