[FIX] point_of_sale: point of sale without partner

bzr revid: ara@tinyerp.com-20110316102706-fvpstppoyl0n0yh4
This commit is contained in:
ARA (OpenERP)
2011-03-16 15:57:06 +05:30
parent d80215ed61
commit bdbc6dff22
+1 -1
View File
@@ -162,7 +162,7 @@ class pos_make_payment(osv.osv_memory):
if data['partner_id'] and data['invoice_wanted']:
partner = obj_partner.browse(cr, uid, data['partner_id'], context=context)
if not partner.address:
raise osv.except_osv(_('Error!'),_("Customer doesn't have an address to make the invoice..."))
raise osv.except_osv(_('Error!'),_("Customer doesn't have an address to make the invoice"))
order_obj.action_invoice(cr, uid, [active_id], context=context)
order_obj.create_picking(cr, uid, [active_id], context=context)
if context.get('return', False):