تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
4334 أدوات العرض

Image Preview

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


code

الصورة الرمزية
إهمال

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

أفضل إجابة

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
الصورة الرمزية
إهمال
الكاتب

Thanks you so much