コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2948 ビュー

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>



アバター
破棄
最善の回答

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>


アバター
破棄
関連投稿 返信 ビュー 活動
0
3月 25
1413
0
10月 24
1382
1
9月 24
1535
1
8月 24
1636
1
7月 24
1511