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

I want to add a button and pop up an screen when pressing the button, what should I put inside my code?

 

Аватар
Відмінити

do you want a pop-up or want to go to other page??? can you please give an example?

Автор

I want a button to popup a screen, it can be in the top of tree view or beside create button.

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

Create and Edit buttons are automaticly added to tree views by orm...

To add something there is possible, but for that you should be realy experienced and have good extensive knowledge of odoo framework...

What you can easyly add to tree views is a server action (visible under menuitem More, Print etc...)

On the other hand.. adding a button to form view and pop up new form (in most cases it is called "wizard")

explained here for v8: http://odoo-80.readthedocs.org/en/latest/howtos/backend.html#wizards
for older versions try searching this form or ask google how to create wizard...

Аватар
Відмінити