Bugfix:name_get on pricelist
bzr revid: jvo@tinyerp.com-20081226065018-8249xplpekt34oz1
This commit is contained in:
parent
137146e91e
commit
e82cf76be7
|
@ -91,11 +91,15 @@ class product_pricelist(osv.osv):
|
|||
'version_id': fields.one2many('product.pricelist.version', 'pricelist_id', 'Pricelist Versions'),
|
||||
'currency_id': fields.many2one('res.currency', 'Currency', required=True),
|
||||
}
|
||||
|
||||
def name_get(self, cr, uid, ids, context={}):
|
||||
result= {}
|
||||
result= []
|
||||
|
||||
for pl in self.browse(cr, uid, ids, context):
|
||||
result[pl.id] = pl.name + ' ('+ pl.currency_id.name + ')'
|
||||
name = str(pl.name) + ' ('+ str(pl.currency_id.name) + ')'
|
||||
result.append((pl.id,name))
|
||||
return result
|
||||
|
||||
|
||||
def _get_currency(self, cr, uid, ctx):
|
||||
comp = self.pool.get('res.users').browse(cr,uid,uid).company_id
|
||||
|
|
Loading…
Reference in New Issue