Odoo Help

0
1 Answer
0
Haresh Kansara
1/29/19, 10:07 AM

Hi Mahmood,

Here is the bellow steps to inherit template:

1) First set website_hr_recruitment as depends on your custom module (in manifest)

2) now define one xml template file and you have to inherit template there

3) Now you can do like this:

<?xml version="1.0" encoding="utf-8"?>

<odoo>

    <data>

    <template id="template_apply_inherit" inherit_id="website_hr_recruitment.apply">

    <xpath expr="path_of_code_to_replace" position="replace">

        <!-- your custom code -->

    </xpath>

    </template>

    </data>

</odoo>


here you can do anything using xpath, if you want to learn more about xpath

https://goo.gl/zZzYw5 

To learn about how to inherit template in odoo

https://goo.gl/kv45LX

Don't forget to accept answer if it's helpful for you..

Thank you..


Ask a Question
Keep Informed
1 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now