Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
6539 Visninger

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
Kassér
Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
jan. 25
22584
0
maj 23
1630
1
mar. 23
5268
4
mar. 16
4629
2
feb. 16
3140