[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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user