Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4 ตอบกลับ
28664 มุมมอง

Is it possible to set a menuitem action that links to an external web URL.
The rendered menu item would look like this:

<a href="some_external_url_address?queryString=value#fragment=value" class="some_class">My menu item</a>

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

<?xml version="1.0" encoding="UTF-8"?>
<openerp>
    <data>
        <record id="teste_google" model="ir.actions.act_url">
                <field name="name">Google 1</field>
                <field name="type">ir.actions.act_url</field>
                <field name="target">self</field>
                <field name="url">https://www.google.com.au/?teste2=teste2</field>
        </record>

        <menuitem action="teste_google"
                name="Google 2"
                id="menu_teste_google"
                sequence="2"/>
    </data>
</openerp>                        

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

How can I create a bookmark page in Odoo website pages, client can visit, comment and link their Url

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

How may I open that link in a new tab? TIA

edit: I try to create a menu in root that when clicked will open a url in a new tab

อวตาร
ละทิ้ง

just had to change self to new. It works. sorry for the noise

Related Posts ตอบกลับ มุมมอง กิจกรรม
Get menuitem list แก้ไขแล้ว
3
ธ.ค. 21
7043
0
พ.ย. 19
3407
0
ธ.ค. 18
2473
How to delete menuitem? แก้ไขแล้ว
7
ต.ค. 18
22224
2
พ.ย. 17
6472