flectra/addons/hr_recruitment_survey/views/hr_job_views.xml

41 lines
2.0 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
2018-01-16 11:34:37 +01:00
<flectra>
<record id="hr_job_survey_inherit" model="ir.ui.view">
<field name="name">hr.job.form.inherit</field>
<field name="model">hr.job</field>
<field name="inherit_id" ref="hr_recruitment.hr_job_survey"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='address_id']" position="before">
<label for="survey_id" groups="base.group_user"/>
<div groups="base.group_user" class="o_row">
<field name="survey_id"/>
<button string="Display Interview Form" name="action_print_survey" type="object" attrs="{'invisible':[('survey_id','=',False)]}" class="oe_link"/>
</div>
</xpath>
</field>
</record>
<record id="view_hr_job_kanban_inherit" model="ir.ui.view">
<field name="name">hr.job.kanban.inherit</field>
<field name="model">hr.job</field>
<field name="inherit_id" ref="hr_recruitment.view_hr_job_kanban"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='manager_id']" position="after">
<field name="survey_id"/>
</xpath>
<xpath expr='//div[@name="recruitment"]' position="before">
<div class="row">
<div class="col-xs-12">
<a t-if="record.survey_id.raw_value" name="action_print_survey" type="object" title="Display Interview Form">Interview Form</a>
</div>
</div>
</xpath>
<xpath expr='//div[@name="documents"]' position="after">
<div>
<a t-if="record.survey_id.raw_value" name="action_print_survey" type="object" title="Display Interview Form">Interview Form</a>
<span t-if="!record.survey_id.raw_value">No Interview Form</span>
</div>
</xpath>
</field>
</record>
2018-01-16 11:34:37 +01:00
</flectra>