bzr revid: apa@tinyerp.com-20120329092630-jgwkrqlz0nt8stx0
This commit is contained in:
Amit Patel (OpenERP)
2012-03-29 14:56:30 +05:30
5 changed files with 20 additions and 6 deletions
+4 -5
View File
@@ -187,11 +187,10 @@
<button name = "open_users" type="object" class="oe_project_buttons"><img t-att-src="kanban_image('res.users', 'avatar', record.user_id.raw_value[0])" height="40px" width="40px" /></button><br/>
<div class="manager"><field name="user_id"/></div>
</td>
<td align="left" valign="middle">
<div class="oe_module_desc oe_project_border">
<td align="left" valign="middle" width="220px">
<div class="oe_project_border">
<h4 class="oe_project_font1">
<div class="oe_project_font"><t t-esc="record.name.value.substr(0,28)"/><t t-if="record.name.value.length > 28">...</t><a string="Edit" icon="gtk-edit" type="edit"/></div>
<a type="edit"><div class="oe_project_font"><t t-esc="record.name.value.substr(0,26)"/><t t-if="record.name.value.length > 26">...</t></div></a>
</h4>
<table >
<tr>
@@ -204,7 +203,7 @@
</table>
</div>
</td>
<td width="60px" valign="top" align="right">
<td width="70px" valign="top" align="right">
<t t-if="record.date.raw_value">
<div class="sequence">
<kbd class="user">Deadline</kbd>
+4
View File
@@ -502,6 +502,10 @@ class project(osv.osv):
'issues' : fields.boolean('Issues',help = "If you check this field issues are appears in kanban view"),
'open_issues': fields.function(_compute_issue , store=True,type='integer',string="Issue"),
}
_defaults = {
'issues' : True,
}
def open_issues(self, cr, uid, ids, context=None):
#Open the View for the Tasks for the project
@@ -230,7 +230,9 @@ class project(osv.osv):
'open_phases' : fields.function(_open_phase , type='integer',string="Open Phases"),
}
_defaults = {
'phases' : True,
}
def open_phase(self, cr, uid, ids, context=None):
#Open the View for the Tasks for the project
"""
@@ -32,6 +32,9 @@ class project_project(osv.osv):
_columns = {
'timesheets' : fields.boolean('Timesheets',help = "If you check this field timesheets appears in kanban view")
}
_defaults = {
'timesheets' : True,
}
def onchange_partner_id(self, cr, uid, ids, part=False, context=None):
res = super(project_project, self).onchange_partner_id(cr, uid, ids, part, context)
if part and res and ('value' in res):
@@ -44,6 +44,12 @@
<button name="open_timesheets" class="oe_project_buttons" type="object" tooltip="timesheets"><img src="/project_timesheet/static/src/img/timesheet_icon.png" class="project_icon"/></button>
</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>
</xpath>
</field>
</record>