[FIX] point_of_sale: Sale Details report error corrected.
bzr revid: uco@tinyerp.com-20100810055845-uv3z65btr2wrliom
This commit is contained in:
parent
db34a6bf10
commit
e36a9b47a6
|
@ -27,9 +27,9 @@ class pos_details(report_sxw.rml_parse):
|
|||
|
||||
def _get_invoice(self,inv_id,user):
|
||||
res={}
|
||||
self.cr.execute("select name from account_invoice as ac where id = %d" %(inv_id))
|
||||
res = self.cr.fetchone()
|
||||
if res:
|
||||
if inv_id:
|
||||
self.cr.execute("select name from account_invoice as ac where id = %d" %(inv_id))
|
||||
res = self.cr.fetchone()
|
||||
return res[0]
|
||||
else:
|
||||
return ''
|
||||
|
|
Loading…
Reference in New Issue