首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Odoo 10 Website_hr_recruitment

Odoo 10 Website_hr_recruitment
EN

Stack Overflow用户
提问于 2020-02-20 00:07:26
回答 1查看 58关注 0票数 0

enter image description here

代码语言:javascript
复制
   Hello for all , I have a form and i wish that the field "Nombre d'années d'expérience" will be added in the model of hr.applicant 

2

代码语言:javascript
复制
    In the case 
    { nom : Koussay
    Prénom Abdouli 
    Email : ...
    works correctly , but the hole problem is on the field 
    "Nombre d'années d'expérience" }
EN

回答 1

Stack Overflow用户

发布于 2020-02-20 17:42:29

首先,您必须继承招聘模板id“apply”以显示您的字段

代码语言:javascript
复制
<template id="show_year_number"
            inherit_id="website_hr_recruitment.apply" name="Show year number">
            <xpath expr="//div/div/div[3]"
                position="after">
                <div class="form-group row form-field o_website_form_required_custom">
                            <div class="col-lg-3 col-md-4 text-right">
                                <label class="col-form-label" for="number_year_experience">Your File name</label> <!-- add your field name nembre anne... -->
                            </div>
                            <div class="col-lg-7 col-md-8">
                                <input type="text" class="form-control o_website_form_input" name="your_field_name_here" required=""/> <!-- add your field name nembre anne... -->
                            </div>
                        </div>
            </xpath>
</template>


<function model="ir.model.fields" name="formbuilder_whitelist">
            <value>hr.applicant</value>
            <value eval="[
                'description',
                'email_from',
                'partner_name',
                'partner_phone',
                'job_id',
                'department_id',
                'your_field_name_here',  <!-- add your field name nembre anne... -->
            ]"/>
        </function>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60304561

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档