Odoo Help


How to add Validate & Print,Send Email button?

on 9/13/13, 5:52 AM 2,695 views

I want to add three new stages- New,Opened,Closed.

Add a Validate button.

Add Print/Send Email Button.

How to add these three requirement?

Where do you want to implement this? On an existing object or a new one?

Andreas Brueckl
on 9/13/13, 6:25 AM

Want to add in my custom module.

on 9/13/13, 6:53 AM

Andreas Brueckl

--Andreas Brueckl--

| 7 8 7
Vienna, Austria
--Andreas Brueckl--
OpenERP Consulting and Development
Andreas Brueckl
On 9/13/13, 6:59 AM

I would suggest to take a look into the source code of an existing object like sale.order.

  • For the stages I would suggest to use a selection field called state.
  • The validate button you have to add in your form view.
  • The functionality of the buttons Print/Send Email I would also copy from the sale.order

I suggest to take a look at the following files:

  • openerp/addons/sale/sale.py (class sale_order)
  • openerp/addons/sale/sale_view.xml

I tried to refer it, but no idea where to start. I new in openerp python code.

on 9/13/13, 7:05 AM

Your requirement is not that easy to explain if you are totally new. I update my answer with source code you should investigate.

Andreas Brueckl
on 9/13/13, 7:29 AM

Ok. For send mail. Did i want to inherit mail.thread?

on 9/13/13, 8:02 AM

you should maybe look at the technical doc before to go deeper in the code


Houssine BAKKALI
on 9/13/13, 6:46 PM

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.


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

0 follower(s)


Asked: 9/13/13, 5:52 AM
Seen: 2695 times
Last updated: 3/16/15, 8:10 AM