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

How to add Validate & Print,Send Email button?

By
rosey
on 9/13/13, 5:52 AM 1,845 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.

rosey
on 9/13/13, 6:53 AM
1

Andreas Brueckl

--Andreas Brueckl--
5056
| 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.

rosey
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?

rosey
on 9/13/13, 8:02 AM

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

https://doc.openerp.com/trunk/server/

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

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

0 follower(s)

Stats

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