Odoo Help

1

0
2 Answers
0
Erwin Janszen
19/06/19, 06:45

Thanks Niyas for your reply. 

But how do I do that? Could you give me an example of such a piece of code?

Regards, Erwin.

2 Comments
Niyas Raphy
19/06/19, 06:56

first of all you have to fix which way you are going to do this, once it is done you can start making changes, for inheriting the view you can refer the link i have added in the answer, other things you want to know should be about the workflow: https://www.cybrosys.com/blog/defining-header-statusbar-and-buttons-in-odoo-v12

Niyas Raphy
19/06/19, 06:58

Most simple option is just add four new boolean fields to check whether these steps are completed, then super the action if the confirm button and check whether all the four fields are ticked or not. If not block the flow.

0
Avatar

Niyas Raphy

--Niyas Raphy--
24539
| 7 7 11
Wayanad, India
--Niyas Raphy--

Odoo Techno Functionalist

Feel free to connect :  niyasraphyk@gmail.com

Twitter:https://twitter.com/niyasraphy
LinkedIn: https://www.linkedin.com/in/niyasraphy/
FB:https://www.facebook.com/niyasraphy123

Happy to help :)

Niyas Raphy
19/06/19, 06:41

Hi,

In many ways you can do it. Either you can override the Confirm buttons action and check whether the all above conditions are met or not. If not you can raise warning and ask to complete these steps. There should be enough changes made in the view and code to understand whether the all steps is finished or not.


The other options are you can add new buttons for the above steps, and display each button when the previous one is completed, finally when all the above is completed you can show the confirm button.


To customize and make changes in existing form, refer this, even though it is for v12, same for the v10 too : Customize existing View

Thanks

Ask a Question
Keep Informed
2 follower(s)
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 eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now