Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1239 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

I found the solution

the res_id in the action dic was empty

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


Ảnh đại diện
Huỷ bỏ