[IMP] improved code

bzr revid: tpa@tinyerp.com-20120601110801-htybml55338uhr6s
This commit is contained in:
Turkesh Patel (Open ERP)
2012-06-01 16:38:01 +05:30
parent 18f8ec4486
commit 39e7e1320f
2 changed files with 3 additions and 4 deletions
-1
View File
@@ -200,7 +200,6 @@ class project(osv.osv):
'type_ids': fields.many2many('project.task.type', 'project_task_type_rel', 'project_id', 'type_id', 'Tasks Stages', states={'close':[('readonly',True)], 'cancelled':[('readonly',True)]}),
'task_count': fields.function(_task_count, type='integer', string="Open Tasks"),
'color': fields.integer('Color Index'),
'use_attachment': fields.boolean('Tasks Management'),
}
def dummy(self, cr, uid, ids, context):
+3 -3
View File
@@ -61,9 +61,9 @@
<td style="text-align:right;" width="110px"><button class="oe_btn_width" name="%(act_project_project_2_project_task_all)d" string="Tasks" type="action" attrs="{'invisible':[('use_tasks','=', 0)]}"/></td>
</tr>
<tr name="use_attachment_row">
<th style="border-right:1px solid #DDD;" width="140px">Attachment</th>
<td><field name="use_attachment" nolabel="1"/></td>
<td style="text-align:right;" width="110px"><button class="oe_btn_width" name="open_attachment" string="Attachments" type="object" attrs="{'invisible':[('use_attachment','=', 0)]}"/></td>
<th/>
<td/>
<td style="text-align:right;" width="110px"><button class="oe_btn_width" name="open_attachment" string="Attachments" type="object" /></td>
</tr>
</table>
</group>