summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authornel@tinyerp.com <>2010-04-08 16:29:24 +0200
committernel@tinyerp.com <>2010-04-08 16:29:24 +0200
commit16e468b01bc1aaffe379140afaaef214d0e3dfc1 (patch)
treeede4c201d28794e31036cc481a8ec1ca37967757 /addons
parent297dae367cc5b74033c23ba1c50c3b1aa3bd00c7 (diff)
[IMP] search views
bzr revid: nel@tinyerp.com-20100408142924-j4vvkcbcw20gdtzy
Diffstat (limited to 'addons')
-rw-r--r--addons/board_hr/board_hr_view.xml2
-rw-r--r--addons/board_project/board_scrum_view.xml2
-rw-r--r--addons/hr_holidays/report/hr_holidays_report_view.xml6
-rw-r--r--addons/hr_holidays/security/ir.model.access.csv3
-rw-r--r--addons/mrp/report/mrp_production_order_view.xml2
-rw-r--r--addons/project/project_view.xml6
-rw-r--r--addons/project/report/project_report_view.xml2
7 files changed, 13 insertions, 10 deletions
diff --git a/addons/board_hr/board_hr_view.xml b/addons/board_hr/board_hr_view.xml
index 432bcdac639..ed27a93a326 100644
--- a/addons/board_hr/board_hr_view.xml
+++ b/addons/board_hr/board_hr_view.xml
@@ -21,7 +21,7 @@
<field name="res_model">hr_timesheet_sheet.sheet</field>
<field name="view_type">form</field>
<field name="view_id" eval="False"/>
- <field name="domain">[('date_to','&gt;=',time.strftime('%Y-%m-01')),('date_from','&lt;=',time.strftime('%Y-%m-01'))]</field>
+ <field name="domain">[('date_to','&gt;=',time.strftime('%Y-%m-01')),('date_from','&lt;=',time.strftime('%Y-%m-01')),('user_id','=',uid)]</field>
<field name="search_view_id" ref="hr_timesheet_sheet.hr_timesheet_sheet_tree"/>
</record>
diff --git a/addons/board_project/board_scrum_view.xml b/addons/board_project/board_scrum_view.xml
index 112da0e6215..45628733ad3 100644
--- a/addons/board_project/board_scrum_view.xml
+++ b/addons/board_project/board_scrum_view.xml
@@ -32,7 +32,7 @@
</record>
<menuitem
id="menu_deshboard_scurm"
- name="Scurm Dashboard" parent="next_id_86"
+ name="Scrum Dashboard" parent="next_id_86"
icon="terp-graph" action="open_board_project_scrum"/>
</data>
</openerp>
diff --git a/addons/hr_holidays/report/hr_holidays_report_view.xml b/addons/hr_holidays/report/hr_holidays_report_view.xml
index 5314224ecfb..f0d33bc7b98 100644
--- a/addons/hr_holidays/report/hr_holidays_report_view.xml
+++ b/addons/hr_holidays/report/hr_holidays_report_view.xml
@@ -109,9 +109,9 @@
<field name="type">graph</field>
<field name="arch" type="xml">
<graph string="Leaves by Type" orientation = "horizontal" type="bar">
- <field name="name"/>
- <field name="leave_type" group="True"/>
- <field name="no_of_leaves" operator="+"/>
+ <field name="name" />
+ <field name="no_of_leaves" operator = "+"/>
+ <field name="leave_type" group = "True"/>
</graph>
</field>
</record>
diff --git a/addons/hr_holidays/security/ir.model.access.csv b/addons/hr_holidays/security/ir.model.access.csv
index 246c84ec24a..d928a8dcb9b 100644
--- a/addons/hr_holidays/security/ir.model.access.csv
+++ b/addons/hr_holidays/security/ir.model.access.csv
@@ -3,6 +3,9 @@
"access_hr_holidays_user","hr holidays user","model_hr_holidays","hr.group_hr_user",1,1,1,0
"access_hr_holydays_status_manager","hr.holidays.status manager","model_hr_holidays_status","hr.group_hr_manager",1,1,1,1
"access_hr_holidays_manager","hr holidays manager","model_hr_holidays","hr.group_hr_manager",1,1,1,1
+"access_hr_holidays_remain","hr holidays user","model_hr_holidays_remaining_leaves_user","hr.group_hr_user",1,0,0,0
"access_hr_holidays_report","hr.holidays.report","model_hr_holidays_report","hr.group_hr_manager",1,1,1,1
"access_hr_holidays_remaining_leaves_user","hr.hr.holidays.remaining.leaves.user","model_hr_holidays_remaining_leaves_user","hr.group_hr_manager",1,1,1,1
"access_available_holidays_report","hr.available.holidays.report","model_available_holidays_report","hr.group_hr_manager",1,1,1,1
+"access_hr_holidays_report_user","hr.holidays.report","model_hr_holidays_report","hr.group_hr_user",1,0,0,0
+"access_available_holidays_report_user","hr.available.holidays.report","model_available_holidays_report","hr.group_hr_user",1,0,0,0
diff --git a/addons/mrp/report/mrp_production_order_view.xml b/addons/mrp/report/mrp_production_order_view.xml
index 32a1ef4d0b8..75838557d9f 100644
--- a/addons/mrp/report/mrp_production_order_view.xml
+++ b/addons/mrp/report/mrp_production_order_view.xml
@@ -84,7 +84,7 @@
<filter string="Picking" icon="terp-mrp" context="{'group_by':'picking_id'}"/>
<separator orientation="vertical"/>
<filter string="Routing" icon="terp-mrp" context="{'group_by':'routing_id'}"/>
- <filter string="Product" icon="terp-mrp" context="{'group_by':'product_id'}"/>
+ <filter string="Product" icon="terp-mrp" context="{'group_by':'product_id'}" default = "1"/>
<filter string="State" icon="terp-mrp" context="{'group_by':'state'}"/>
<separator orientation="vertical"/>
<filter string="BOM" icon="terp-mrp" context="{'group_by':'bom_id'}"/>
diff --git a/addons/project/project_view.xml b/addons/project/project_view.xml
index 62e1ecc3c62..3eb78f59faf 100644
--- a/addons/project/project_view.xml
+++ b/addons/project/project_view.xml
@@ -30,7 +30,7 @@
<group col="2" colspan="2">
<separator colspan="2" string="Performance"/>
<field name="planned_hours" widget="float_time"/>
- <field name="effective_hours" widget="float_time"/>
+ <field name="effective_hours" widget="float_time" />
</group>
<group col="2" colspan="2" name="misc">
<separator colspan="2" string="Miscelleanous"/>
@@ -119,7 +119,7 @@
<filter icon="terp-project" string="Templates" domain="[('state','=','template')]" help="Template Projects"/>
<separator orientation="vertical"/>
<field name="name" string="Project Name"/>
- <field name="user_id" string="Project Manager"/>
+ <field name="user_id" string="Project Manager" default="1"/>
<field name="partner_id" string="Partner"/>
</group>
</search>
@@ -420,7 +420,7 @@
<newline/>
<group expand="1" string="Group By..." colspan="4" col="20">
<filter string="Users" icon="terp-project" domain="[]" context="{'group_by':'user_id'}"/>
- <filter string="Project" icon="terp-project" domain="[]" context="{'group_by':'project_id'}"/>
+ <filter string="Project" icon="terp-project" domain="[]" context="{'group_by':'project_id'}" default = "1"/>
<filter string="Stage" icon="terp-project" domain="[]" context="{'group_by':'type'}"/>
<filter string="State" icon="terp-project" domain="[]" context="{'group_by':'state'}"/>
<separator orientation="vertical"/>
diff --git a/addons/project/report/project_report_view.xml b/addons/project/report/project_report_view.xml
index f3c619abe58..f904f38b88c 100644
--- a/addons/project/report/project_report_view.xml
+++ b/addons/project/report/project_report_view.xml
@@ -46,7 +46,7 @@
<newline/>
<group expand="1" string="Group By..." colspan="10" col="11">
<filter string="User" icon="terp-project" context="{'group_by':'user_id'}" />
- <filter string="Project" icon="terp-project" context="{'group_by':'project_id'}" />
+ <filter string="Project" icon="terp-project" context="{'group_by':'project_id'}" default = "1"/>
<separator orientation="vertical"/>
<filter string="State" icon="terp-project" context="{'group_by':'state'}"/>
<separator orientation="vertical"/>