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

Hello,

I need when user click on button "send & print" in invoice form, to display a popup if the field "invoice_warn_msg" is set in the concerned partner form.

In this popup, if user click on yes button, the other popup to compose the mail is open, if user click on No button, nothing happen.


For that, i replace "send & print" button by a new one to call a new method "action_invoice_sent_new"


Then, i created followings view and action :

It works but in the popup, but as you can see below, the field "s_invoice_warn_msg_related" doesn't appear between the 2


However, i added this field in invoice form view and it contains a value!!

For information, declaration of the field



Do you know where is the problem?

Or may be i use the wrong way to do that!?

Awatar
Odrzuć
Autor Najlepsza odpowiedź

I found the solution

the res_id in the action dic was empty

Also, i added this line and now it's ok


Awatar
Odrzuć