Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
6597 Переглядів

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?

Автор

Want to add in my custom module.

Найкраща відповідь

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.

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

Автор

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

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

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