Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
6559 Widoki

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


Awatar
Odrzuć
Najlepsza odpowiedź

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>

           

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
sty 25
22607
0
maj 23
1643
1
mar 23
5279
4
mar 16
4631
2
lut 16
3147