[FIX] Lunch name changed to have the good breadcrumb
lp bug: https://launchpad.net/bugs/1095566 fixed bzr revid: api@openerp.com-20130103103935-i1vdmukol420r62p
This commit is contained in:
parent
f659d305f7
commit
7b36357001
|
@ -35,6 +35,16 @@ class lunch_order(osv.Model):
|
|||
_description = 'Lunch Order'
|
||||
_order = 'date desc'
|
||||
|
||||
def name_get(self, cr, uid, ids, context=None):
|
||||
if not ids:
|
||||
return []
|
||||
res = []
|
||||
for elmt in self.browse(cr, uid, ids, context=context):
|
||||
name = _("Lunch Order")
|
||||
name = name + ' ' + str(elmt.id)
|
||||
res.append((elmt.id, name))
|
||||
return res
|
||||
|
||||
def _price_get(self, cr, uid, ids, name, arg, context=None):
|
||||
"""
|
||||
get and sum the order lines' price
|
||||
|
|
Loading…
Reference in New Issue