Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I would like to have an additional SUBMITTED state between draft and open for customer invoices.
The objective is to clearly identify which invoices have been submitted to customer and which ones were not submitted.
An additional checkbox might fit too. What do you think would be the best approach?
Is it difficult to achieve it, could someone explain the high level approach to do this?
One option is you can keep a boolean field, and if submitted you can check that field by edit. Then by overriding the write() to check if state = draft && boolean field = checked, do transition to "submitted" state. In submitted state you can make visible the default buttons on open state.
Another option is you can have a button "Submitted", which on click, makes the transition from "draft" to "submitted" and also check the boolean field. So when the boolean field got checked, then only other default buttons in open state would be visible.
You may refer this post to understand, how to change existing workflow by including a new state:
If you have any doubts, I can help you with the code.
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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 10/30/15, 6:14 AM|
|Seen: 558 times|
|Last updated: 10/30/15, 8:35 AM|