Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
2974 Vizualizări

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>



Imagine profil
Abandonează
Cel mai bun răspuns

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>


Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
mar. 25
1458
0
oct. 24
1434
1
sept. 24
1551
1
aug. 24
1662
1
iul. 24
1524