Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3013 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
ago 25
163
0
mar 25
1599
0
ott 24
1543
1
set 24
1673
1
ago 24
1785