Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
4 Odpowiedzi
7754 Widoki

Hi, I'm new and maybe this is simple to do or asked many times, but I can't find the answer.

I'm trying to display a popup (with a view inside) when a view is displayed and a condition fulfilled.

Actually I'm trying to show a form, if customer is empty I'd like to show a popup with customer selector, but I'm completely lost about launching the pop up or calling an action when a view is displayed.

Thanks,
Pau

 

Awatar
Odrzuć

Are you trying to say.. you need a wizard (pop up window) to be displayed ? If so you can refer, CRM oppurtunity => convert to Quote .....

*Opportunity

Autor

Thanks, but I need the window to open as soon as I open the main view. Not clicking any button.

Autor

Thanks deep, it's a good answer, although it raises a new one. I will continue in another thread.

Autor

Deep, please convert your answer about default_get in an answer or copy in an answer and I'll select as the correct answer.

Najlepsza odpowiedź

try using "default_get" method....

Awatar
Odrzuć
Najlepsza odpowiedź

try  this methode 
@api.model
def fields_view_get(self, view_id=None, view_type='form', toolbar=False, submenu=False):

Awatar
Odrzuć
Najlepsza odpowiedź

You have some different pop ups!, wizards with target "new" and Warning messages.

What exactly do you need? 

Awatar
Odrzuć
Autor

Thanks for your answer. I needed a popup with a view where I can select the customer (many2one). Anyway it got answered in the comments to the original question.

Autor Najlepsza odpowiedź

Please, delete this answer.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
maj 24
10743
1
mar 15
4044
1
mar 15
4718
1
paź 23
8358
0
sty 21
2333