[FIX] Partner : titlee can have a choice to be null

lp bug: https://launchpad.net/bugs/495374 fixed

bzr revid: jvo@tinyerp.com-20091211161917-u7fyq6abr0xsi8zv
This commit is contained in:
Jay (Open ERP)
2009-12-11 21:49:17 +05:30
parent 055e2de6ed
commit e0a39bb115
+1 -1
View File
@@ -116,7 +116,7 @@ def _partner_title_get(self, cr, uid, context={}):
obj = self.pool.get('res.partner.title')
ids = obj.search(cr, uid, [('domain', '=', 'partner')])
res = obj.read(cr, uid, ids, ['shortcut','name'], context)
return [(r['shortcut'], r['name']) for r in res]
return [(r['shortcut'], r['name']) for r in res] + [('','')]
def _lang_get(self, cr, uid, context={}):
obj = self.pool.get('res.lang')