Jagdish Panchal (Open ERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-909724-jap into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #909724 in OpenERP Addons: "improve hr_manager access rights"
https://bugs.launchpad.net/openobject-addons/+bug/909724
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-909724-jap/+merge/87332
Hello,
In all hr features remove the default search on user_id : --fixes=lp:909724
Thanks
JAP
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-909724-jap/+merge/87332
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-909724-jap.
=== modified file 'hr_expense/hr_expense_view.xml'
--- hr_expense/hr_expense_view.xml 2011-12-21 13:10:28 +0000
+++ hr_expense/hr_expense_view.xml 2012-01-03 11:18:32 +0000
@@ -172,7 +172,6 @@
<field name="name">Expenses</field>
<field name="res_model">hr.expense.expense</field>
<field name="view_type">form</field>
- <field name="context">{"search_default_user_id":uid}</field>
<field name="search_view_id" ref="view_hr_expense_filter"/>
<field name="view_id" ref="view_expenses_tree"/>
<field name="help">The OpenERP expenses management module allows you to track the full flow. Every month, the employees record their expenses. At the end of the month, their managers validates the expenses sheets which creates costs on projects/analytic accounts. The accountant validates the proposed entries and the employee can be reimbursed. You can also reinvoice the customer at the end of the flow.</field>
=== modified file 'hr_holidays/hr_holidays_view.xml'
--- hr_holidays/hr_holidays_view.xml 2011-12-30 12:28:11 +0000
+++ hr_holidays/hr_holidays_view.xml 2012-01-03 11:18:32 +0000
@@ -312,7 +312,7 @@
<field name="name">Allocation Requests</field>
<field name="res_model">hr.holidays</field>
<field name="view_type">form</field>
- <field name="context">{"search_default_my_leaves": 1,'default_type':'add',"search_default_department_id": department_id}</field>
+ <field name="context">{'default_type':'add',"search_default_department_id": department_id}</field>
<field name="domain">[('type','=','add')]</field>
<field name="view_id" ref="allocation_leave_new"/>
<field name="search_view_id" ref="view_hr_holidays_filter"/>
@@ -340,7 +340,7 @@
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_id" eval="view_holiday_simple"/>
- <field name="context">{'search_default_my_leaves': 1, 'search_default_group_type': 1, 'search_default_validated': 1}</field>
+ <field name="context">{'search_default_group_type': 1, 'search_default_validated': 1}</field>
<field name="domain">[('holiday_type','=','employee')]</field>
<field name="search_view_id" ref="view_hr_holidays_filter"/>
</record>
=== modified file 'hr_timesheet/hr_timesheet_view.xml'
--- hr_timesheet/hr_timesheet_view.xml 2011-10-16 01:28:00 +0000
+++ hr_timesheet/hr_timesheet_view.xml 2012-01-03 11:18:32 +0000
@@ -89,7 +89,7 @@
<field name="res_model">hr.analytic.timesheet</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
- <field name="context">{"search_default_user_id":uid, "search_default_today":1}</field>
+ <field name="context">{"search_default_today":1}</field>
<field name="search_view_id" ref="hr_timesheet_line_search"/>
<field name="help">Through this menu you can register and follow your workings hours by project every day.</field>
</record>
=== modified file 'hr_timesheet_invoice/report/hr_timesheet_invoice_report_view.xml'
--- hr_timesheet_invoice/report/hr_timesheet_invoice_report_view.xml 2011-11-16 15:12:59 +0000
+++ hr_timesheet_invoice/report/hr_timesheet_invoice_report_view.xml 2012-01-03 11:18:32 +0000
@@ -179,7 +179,6 @@
<field name="res_model">report_timesheet.user</field>
<field name="view_type">form</field>
<field name="view_mode">graph,tree</field>
- <field name="context">{"search_default_user_id":uid}</field>
<field name="search_view_id" ref="view_timesheet_user_search"/>
</record>
@@ -244,7 +243,6 @@
<field name="res_model">report_timesheet.invoice</field>
<field name="view_type">form</field>
<field name="view_mode">graph,tree</field>
- <field name="context">{"search_default_user_id":uid}</field>
<field name="search_view_id" ref="view_timesheet_invoice_search"/>
</record>
@@ -316,7 +314,6 @@
<field name="res_model">report_timesheet.account.date</field>
<field name="view_type">form</field>
<field name="view_mode">graph,tree</field>
- <field name="context">{"search_default_user_id":uid}</field>
<field name="search_view_id" ref="view_timesheet_account_date_search"/>
</record>
_______________________________________________
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