Skip to Content
Menu
This question has been flagged
2 Replies
5668 Views

<?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.

Avatar
Discard
Author Best Answer


Some positions are changed
i.imgur.com/eLByi8Y.png
Avatar
Discard
Best Answer

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>


Avatar
Discard
Related Posts Replies Views Activity
1
Dec 24
31
1
Dec 24
76
0
Nov 24
53
0
Nov 24
68
1
Oct 24
171