Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2945 Zobrazení

Hi everybody.

I'm trying to create a menu right of "I take it", now I've been struggling with this for some time.  Could anyone point me in the right direction of how the extended view should look like?

 

<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<record model="ir.ui.view" id="helpdesk.helpdesk_ticket_view_form">
<field name="active" eval="True"/>
<field type="xml" name="arch">
<xpath expr="/form/header/field" position="after">
<button string="My button" type="object" class="oe_highlight" groups="helpdesk.group_helpdesk_user"/>
</xpath>
</field>
</record>
</odoo>



Avatar
Zrušit
Nejlepší odpověď

Here is an example for inheriting form view

<record id="your_view_id" model="ir.ui.view">
<field
name="name">name</field>
<field
name="model">model.name</field>
<field
name="inherit_id" ref="module_name.view_id"/>
<field
name="arch" type="xml">
<xpath
expr="//button[@name='some_button_in_form']" position="after">
<button name="your_button_name" string="Button String" type="object" />
</xpath>
</field>
</record>


Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
bře 25
1413
0
říj 24
1382
1
zář 24
1535
1
srp 24
1636
1
čvc 24
1511