Mohammed Shekha(Open ERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.0-opw-575342-msh into 
lp:openobject-addons/6.0.

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-575342-msh/+merge/108682

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.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-575342-msh/+merge/108682
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.0-opw-575342-msh.
=== modified file 'hr_recruitment/hr_recruitment_view.xml'
--- hr_recruitment/hr_recruitment_view.xml	2011-08-19 10:47:35 +0000
+++ hr_recruitment/hr_recruitment_view.xml	2012-06-05 06:50:42 +0000
@@ -88,6 +88,7 @@
                     </group>
                     <field name="user_id"/>
                     <field name="survey" invisible="1" />
+                    <field name="response" invisible="1"/>
                     <button name="action_print_survey" string="Interview" type="object" icon="gtk-print" attrs="{'readonly':[('survey','=',False)]}"/>
                     <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"/>
                     <newline/>

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to