Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
6832 มุมมอง

<?xml version="1.0" encoding="UTF-8"?>
<odoo>
     <record id="view_dham_customers_form" model="ir.ui.view">
        <field name="name">KSK DN</field>
        <field name="model">res.partner</field>
        <field name="inherit_id" ref="base.view_partner_form"/>
        <field name="arch" type="xml">
            <xpath expr="//field[@name='type']" position="after">
                <field name="test"/>
                <button name="shoeit" string="Show It"/>
            </xpath>
        </field>
     </record>

</odoo>

i.imgur.com/ERVKMLM.png


My button and field aren't in same line - i'm not good html.

Thannks in advance.

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด


Some positions are changed
i.imgur.com/eLByi8Y.png
อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

try class="oe_inline"


<xpath expr="//field[@name='type']" position="after">
<div>
<field name="test" class="oe_inline"/>
<button name="shoeit" string="Show It" class="oe_inline"/>
</div>                        
</xpath>


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
ส.ค. 25
273
2
ส.ค. 25
314
0
ส.ค. 25
144
1
ส.ค. 25
470
1
ก.ค. 25
819