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

I have defined a button in form view's header, like this:

<form style="position:absolute;left:0; top:0; width:100%; height:100%;" class="oe_form_configuration" create="false" edit="false">
    <header>
        <button name="save_result" type="button" string="Save" class="save_result oe_highlight"/>
    </header>
</form>

When I clicked the button, it will call a javascript function. But after the call finished, the page's URL has changed, the original URL is:

http://localhost:8069/web/?debug#view_type=form&model=tender.result&action=103&active_id=3

and it changed to:

http://localhost:8069/web/?debug#id=63&view_type=form&model=tender.result&action=103&active_id=3

I found that the id=63 is same as the ID I see in Metadata.

My Odoo version is 10.0, and how can I do to disable the URL automatic change when I clicked the button?

アバター
破棄
関連投稿 返信 ビュー 活動
1
6月 22
12801
4
9月 21
15819
1
6月 22
6049
1
5月 25
725
0
11月 24
1380