Skip to Content
Menu
This question has been flagged
1 Reply
5888 Views

I'm migrating an Odoo 8 module and I want to know how to put a field after a "div" (I don't know if it is exactly a div). I don't know how to explain it correctly so i'll add a picture and the code (the v8 and the new one I'm trying making to work) below.

IMAGE:

What I want

CODE (v8):

V8 code

CODE (v12):

V 12 code


Avatar
Discard
Best Answer

Hi,

   I didn't understand the language anyway i think you need to bring that field under sales settings,if so

<record id="res_config_settings_view_form_frequent" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.sale.frequent</field>
<field name="model">res.config.settings</field>
<field name="priority" eval="10"/>
<field name="inherit_id" ref="sale.res_config_settings_view_form" />
<field name="arch" type="xml">
<xpath expr="//div[@data-key='sale_management']/div" position="after">
<div class="row mt16 o_settings_container">
<div class="col-xs-12 col-md-6 o_setting_box">
<div class="o_setting_right_pane">
<group>
<field name="field name"/>

</group>
</div>
</div>
</div>
</xpath>
</field>
</record>

           

Avatar
Discard
Related Posts Replies Views Activity
0
May 23
1044
1
Mar 23
4426
4
Mar 16
4056
2
Feb 16
2564
1
Feb 16
21268