コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
1240 ビュー

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

アバター
破棄
著作者 最善の回答

I found the solution

the res_id in the action dic was empty

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


アバター
破棄