Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
2953 Visualizações

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
Cancelar
Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
0
mar. 25
1414
0
out. 24
1382
1
set. 24
1535
1
ago. 24
1636
1
jul. 24
1511