diff options
| author | nel@tinyerp.com <> | 2010-04-14 14:36:30 +0200 |
|---|---|---|
| committer | nel@tinyerp.com <> | 2010-04-14 14:36:30 +0200 |
| commit | 4ddf4beada0ea7b0fe8b0a9cd5aaa41530674ade (patch) | |
| tree | b12583e2af34e18322e0ecdb2d8113084099f871 | |
| parent | 9da45d3b15595e5a0b0fa6b9a76f8c8f7c0b8e1f (diff) | |
[IMP] Add default values to views
bzr revid: nel@tinyerp.com-20100414123630-m5d7as6la5jzo95m
| -rw-r--r-- | addons/project/report/project_report_view.xml | 4 | ||||
| -rw-r--r-- | addons/purchase/report/purchase_report_view.xml | 14 | ||||
| -rw-r--r-- | addons/sale/report/sale_report_view.xml | 3 |
3 files changed, 12 insertions, 9 deletions
diff --git a/addons/project/report/project_report_view.xml b/addons/project/report/project_report_view.xml index e913f07048d..8917837530d 100644 --- a/addons/project/report/project_report_view.xml +++ b/addons/project/report/project_report_view.xml @@ -68,7 +68,7 @@ </group> <newline/> <group expand="1" string="Group By..." colspan="10" col="11"> - <filter string="User" icon="terp-project" context="{'group_by':'user_id'}" /> + <filter string="User" name = "user_id" icon="terp-project" context="{'group_by':'user_id'}" /> <filter string="Project" icon="terp-project" context="{'group_by':'project_id'}" default = "1" /> <filter string="Partner" icon="terp-project" context="{'group_by':'partner_id'}" /> <separator orientation="vertical"/> @@ -89,6 +89,8 @@ <field name="view_type">form</field> <field name="view_mode">tree</field> <field name="search_view_id" ref="view_task_project_user_search"/> + <field name="context">{'search_default_user_id': 1 }</field> + </record> <menuitem action="action_project_task_user_tree" id="menu_project_task_user_tree" parent="base.menu_project_report"/> diff --git a/addons/purchase/report/purchase_report_view.xml b/addons/purchase/report/purchase_report_view.xml index 2e6c393271d..c9f88e356da 100644 --- a/addons/purchase/report/purchase_report_view.xml +++ b/addons/purchase/report/purchase_report_view.xml @@ -20,10 +20,10 @@ <field name="type">tree</field> <field name="arch" type="xml"> <tree string="Purchase Orders Statistics"> - <field name="date" invisible = "1"/> - <field name="user_id" invisible = "1"/> - <field name="partner_id" invisible = "1"/> - <field name="product_id" invisible = "1"/> + <field name="date"/> + <field name="user_id"/> + <field name="partner_id"/> + <field name="product_id"/> <field name="quantity"/> <field name="nbr" sum="# of Lines"/> <field name="price_average" avg="Average Price"/> @@ -93,10 +93,10 @@ <filter string="Company" icon="terp-purchase" context="{'group_by':'company_id'}"/> <filter string="Warehouse" icon="terp-purchase" context="{'group_by':'warehouse_id'}"/> <filter string="Location" icon="terp-purchase" context="{'group_by':'location_id'}"/> - <filter string="Responsible" icon="terp-purchase" context="{'group_by':'user_id'}"/> + <filter string="Responsible" name="Responsible" icon="terp-purchase" context="{'group_by':'user_id'}"/> <separator orientation="vertical"/> <filter string="Product" icon="terp-purchase" context="{'group_by':'product_id'}"/> - <filter string="Partner" icon="terp-purchase" context="{'group_by':'partner_id'}"/> + <filter string="Partner" name="partner_id" icon="terp-purchase" context="{'group_by':'partner_id'}"/> <filter string="State" icon="terp-purchase" context="{'group_by':'state'}"/> <separator orientation="vertical"/> <filter string="Fiscal Position" icon="terp-purchase" context="{'group_by':'fiscal_position'}"/> @@ -113,7 +113,7 @@ <field name="view_type">form</field> <field name="view_mode">tree,graph</field> <field name="search_view_id" ref="view_purchase_order_search"/> - <field name="context">{'search_default_user_id':True}</field> + <field name="context">{'search_default_Responsible': 1}</field> </record> <menuitem id="base.next_id_73" name="Reporting" parent="base.menu_purchase_root" sequence="8"/> diff --git a/addons/sale/report/sale_report_view.xml b/addons/sale/report/sale_report_view.xml index 9b927a7d7a0..dcd7729b1c5 100644 --- a/addons/sale/report/sale_report_view.xml +++ b/addons/sale/report/sale_report_view.xml @@ -89,7 +89,7 @@ <group expand="1" string="Group By..." colspan="10" col="12"> <filter string="Company" icon="terp-sale" context="{'group_by':'company_id'}"/> <filter string="Shop" icon="terp-sale" context="{'group_by':'shop_id'}"/> - <filter string="Salesman" icon="terp-sale" context="{'group_by':'user_id'}" default="1"/> + <filter string="Salesman" icon="terp-sale" name="user_id" context="{'group_by':'user_id'}"/> <separator orientation="vertical"/> <filter string="Product" icon="terp-sale" context="{'group_by':'product_id'}"/> <filter string="Partner" icon="terp-sale" context="{'group_by':'partner_id'}"/> @@ -110,6 +110,7 @@ <field name="view_type">form</field> <field name="view_mode">tree,graph</field> <field name="search_view_id" ref="view_order_product_search"/> + <field name="context">{'search_default_user_id': 1}</field> </record> <menuitem id="base.next_id_64" name="Reporting" parent="base.menu_base_partner" sequence="8"/> |
