[IMP]
authorAmit Patel (OpenERP) <apa@tinyerp.com>
Thu, 29 Mar 2012 11:23:07 +0000 (16:53 +0530)
committerAmit Patel (OpenERP) <apa@tinyerp.com>
Thu, 29 Mar 2012 11:23:07 +0000 (16:53 +0530)
bzr revid: apa@tinyerp.com-20120329112307-muo085udc4dh3oi5

addons/project/static/src/css/project.css
addons/project_timesheet/project_timesheet.py
addons/project_timesheet/project_timesheet_view.xml

index 62b97be..28bc351 100644 (file)
@@ -1,3 +1,13 @@
+.oe_to_invoice_buttons {
+    min-height: 30px;
+    min-width: 50px;
+    vertical-align: baseline;
+}
+
+.oe_to_invoice_buttons:hover {
+  cursor: pointer;
+}
+
 
 .oe_project_border{
   border-right: groove;
index c7c43f9..ff64e08 100644 (file)
@@ -63,7 +63,7 @@ class project_project(osv.osv):
             search_view = data_obj.get_object_reference(cr, uid, 'project_timesheet', 'view_account_analytic_line_search_account_inherit')
             context.update({
                 #'search_default_user_id': uid,
-                'search_default_project_id':project.id,
+                'search_default_account_id':project.id,
                 #'search_default_open':1,
             })
             value = {
@@ -74,7 +74,7 @@ class project_project(osv.osv):
                 'res_model': 'account.analytic.line',
                 'view_id': False,
             #    'domain':[('project_id','=', context.get('active_id',False))],
-                'context': context,
+                #'context': context,
                 'views': [(tree_view and tree_view[1] or False, 'tree'),(form_view and form_view[1] or False, 'form')],
                 'type': 'ir.actions.act_window',
                 'search_view_id': search_view and search_view[1] or False,
index 7d58bdd..c396935 100644 (file)
                     </t>
                 </xpath>
                 <xpath expr="//div[@class='sequence']" position="after">
-                       <div class="sequence">
-                   <kbd class="user">To invoice</kbd>
-                   <div class="manager"><field name="amount_invoiced"/></div>
-                   </div>
+                   
+                    <div class="sequence">
+                       <button name="open_timesheets" class="oe_to_invoice_buttons" type="object">
+                           <!--<kbd class="to_invoice">To invoice</kbd>-->
+                           <div class="manager">
+                               <code>To invoice</code>
+                               <strong><field name="amount_invoiced"/></strong>
+                           </div>
+                       </button>
+                   </div>
+                       
                 </xpath>
             </field>
         </record>