[FIX]account_analytic_analysis:added menu tooltip on contract and template of contract
authorKhushboo Bhatt (Open ERP) <kbh@tinyerp.com>
Wed, 12 Sep 2012 10:18:39 +0000 (15:48 +0530)
committerKhushboo Bhatt (Open ERP) <kbh@tinyerp.com>
Wed, 12 Sep 2012 10:18:39 +0000 (15:48 +0530)
bzr revid: kbh@tinyerp.com-20120912101839-lwgzfitz5qsjqvoo

addons/account_analytic_analysis/account_analytic_analysis_menu.xml
addons/account_analytic_analysis/account_analytic_analysis_view.xml

index 9e5be21..ef993b4 100644 (file)
             <field name="res_model">account.analytic.account</field>
             <field name="view_type">form</field>
             <field name="view_mode">tree,form,graph</field>
-            <field name="context">{'default_type':'contract'}</field>
+            <field name="context">{'default_type':'contract', 'search_default_draft':1, 'search_default_pending':1, 'search_default_open':1, 'search_default_renew':1}</field>
             <field name="domain">[('type','=','contract')]</field>
             <field name="search_view_id" ref="view_account_analytic_account_overdue_search"/>
+            <field name="help" type="html">
+                <p class="oe_view_nocontent_create">
+                    Click to create a new contract.
+                </p><p>
+                    You can use the way you invoice each contract (timesheet, fixed price, charge employees expenses). 
+                </p><p>
+                     A template can be used to set automatically all invoicing information.
+                </p>
+            </field>
         </record>
         <menuitem id="base.menu_sales" name="Sales"
             parent="base.menu_base_partner"
index 12d8fad..d8fdca8 100644 (file)
             <field name="view_mode">tree,form</field>
             <field name="domain">[('type','=','template')]</field>
             <field name="context">{'search_default_type':'template','default_type' : 'template'}</field>
+            <field name="help" type="html">
+                <p class="oe_view_nocontent_create">
+                    Click here to create a Template of contract.
+                </p><p>
+                    Templates are used to prefigure contract/project that 
+                    can be selected by the salespoeple to create their customer 
+                    contract/project from the menu Sales/Contracts.
+                </p>
+            </field>
+             
         </record>
         <menuitem action="template_of_contract_action" id="menu_template_of_contract_action" parent="base.menu_base_config"/>
     </data>