Merge lp:~openerp-dev/openobject-addons/6.0-opw-575342-msh into lp:openobject-addons/6.0

Proposed by Mohammed Shekha(Open ERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/6.0-opw-575342-msh
Merge into: lp:openobject-addons/6.0
Diff against target: 11 lines (+1/-0)
1 file modified
hr_recruitment/hr_recruitment_view.xml (+1/-0)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.0-opw-575342-msh
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+108682@code.launchpad.net

Description of the change

Hello,

Fixed the issue of survey from hr_recruitment, here context was not passed so by_default field with 0 was coming as a result of overwritten fields_view_get.

Note : The issue is only generated in web.

Demo :- Install module hr_recruitment -> Human Resources -> Recruitment -> Applicant -> create/edit record -> click on answer button.

Result :- The result will be filed with 0.

Expected :- There should be survey which we have defined Job Position.

Reason :- The issue is that from web when if goes to evaluate context, so there will be problem in expr_eval as there is no response field shown on the form view, hence just shown the response field in the form view.

Thanks.

To post a comment you must log in.

Unmerged revisions

5250. By Mohammed Shekha(Open ERP)

[FIX]Fixed the issue of survey from hr_recruitment, here context was not passed so by_default field with 0 was coming as a result of overwritten fields_view_get.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'hr_recruitment/hr_recruitment_view.xml'
2--- hr_recruitment/hr_recruitment_view.xml 2011-08-19 10:47:35 +0000
3+++ hr_recruitment/hr_recruitment_view.xml 2012-06-05 06:50:42 +0000
4@@ -88,6 +88,7 @@
5 </group>
6 <field name="user_id"/>
7 <field name="survey" invisible="1" />
8+ <field name="response" invisible="1"/>
9 <button name="action_print_survey" string="Interview" type="object" icon="gtk-print" attrs="{'readonly':[('survey','=',False)]}"/>
10 <button name="%(survey.action_view_survey_question_message)d" string="Answer" type="action" icon="gtk-execute" context="{'survey_id': survey, 'response_id': [response], 'response_no':0 ,'active' : response, 'object' : 'hr.applicant', 'cur_id' :active_id}" attrs="{'readonly':[('survey','=',False)]}" groups="base.group_extended"/>
11 <newline/>