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

Image Preview

i want to put my new code after h2 tag any help 


code

Avatar
Discard

Inheritance in Odoo: https://goo.gl/fGNfBY

Best Answer

Hi,

You insert your custom code into settings form by using data-key in x path, try the code below


<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="view_res_config_settings_inherited" model="ir.ui.view">
<field name="name">view.res.config.settings.inherited</field>
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="hr_attendance.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@data-key='hr_attendance']//div[@class='o_setting_right_pane']"
position="after">
<span>Your custom code</span>
</xpath>
</field>
</record>
</data>
</odoo>
Regards
Avatar
Discard
Author

Thanks you so much