bzr revid: apa@tinyerp.com-20120329112307-muo085udc4dh3oi5
This commit is contained in:
Amit Patel (OpenERP) 2012-03-29 16:53:07 +05:30
parent 829ec0a2d0
commit 2f042dc433
3 changed files with 23 additions and 6 deletions

View 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;

View 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,

View File

@ -45,10 +45,17 @@
</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>