[FIX] hr_recruitment: job positions can be linked to a survey only if it has the...
authorRichard Mathot (OpenERP) <rim@openerp.com>
Wed, 5 Mar 2014 15:09:52 +0000 (16:09 +0100)
committerRichard Mathot (OpenERP) <rim@openerp.com>
Wed, 5 Mar 2014 15:09:52 +0000 (16:09 +0100)
bzr revid: rim@openerp.com-20140305150952-9luy6z03s4po8mkt

addons/hr_recruitment/hr_recruitment_view.xml

index b33af98..a5d5dda 100644 (file)
             <group name="employee_data" position="inside">
                 <label for="survey_id" groups="base.group_user"/>
                 <div groups="base.group_user">
-                    <field name="survey_id" class="oe_inline" domain="[('type','=','Human Resources')]"/>
+                    <field name="survey_id" class="oe_inline" domain="[('res_model','=','hr_recruitment')]"/>
                     <button string="Print Interview" name="action_print_survey" type="object" attrs="{'invisible':[('survey_id','=',False)]}" class="oe_inline oe_link"/>
                 </div>
                 <label for="address_id"/>