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

This is my code:

<form action="/ViewOrder" method="post" data-success_page="/thanks" class="s_website_form form-horizontal container-fluid mt32" >

                                 <input type="hidden" name="custmr" t-att-value="custmr" />

                                 <input type="hidden" name="records" t-att-value="records" />

                               

                                <button class="btn btn-primary" name="order"  t-att-href="'/web#return_label=Website&amp;model=sale.order&amp;id=%s&amp;view_type=form' % (order_id)">View Order</button>

</form>



the order_id , I just returned it's value from the controller.


expected output: it will go to the order form 

current output : it just refresh


I would really appreciate your help. Thank you.

アバター
破棄
最善の回答

try to give the button type="submit"

so click on the button will submit the form, this can be routed to the action URL defined in the form, and make response from the controller to the sale order form, this is a good way.

アバター
破棄
関連投稿 返信 ビュー 活動
1
12月 22
5004
0
10月 24
583
1
7月 18
9522
2
5月 25
9718
3
3月 24
5364