bzr revid: fp@tinyerp.com-20081027134700-xjzef3vf23cffzel
This commit is contained in:
Fabien Pinckaers 2008-10-27 14:47:00 +01:00
parent 66c69e0499
commit 76fc92c10d
4 changed files with 314 additions and 312 deletions

View File

@ -22,7 +22,9 @@
""",
"depends" : ["base"],
"init_xml" : [],
"demo_xml" : ["base_contact_demo.xml"],
"demo_xml" : [
"base_contact_demo.xml"
],
"update_xml" : [
"security/ir.model.access.csv",
'base_contact_view.xml'

View File

@ -70,7 +70,7 @@ class project_project(osv.osv):
def name_get(self, cr, user, ids, context=None):
result = []
for project in self.browse(cr, user, ids, context):
if project.category_id:
if project.category_id and projet.category_id.code:
result.append((project.id, '['+(project.category_id.code or '')+'] '+project.name))
else:
result.append((project.id, '[?] '+project.name))