~openerp-community/openobject-addons/taktik

« back to all changes in this revision

Viewing changes to point_of_sale/wizard/wizard_get_sale.py

  • Committer: Fabien Lydoire
  • Date: 2010-01-08 12:48:56 UTC
  • Revision ID: fl@taktik.be-20100108124856-j2ccwjqbuybn0hht
betterĀ posĀ module

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
import pooler
24
24
import wizard
25
 
from tools.translate import _
26
25
 
27
26
picking_form = """<?xml version="1.0"?>
28
27
<form string="Select an Open Sale Order">
40
39
    order = pool.get('pos.order').browse(cr, uid, data['id'], context)
41
40
 
42
41
    if order.state in ('paid', 'invoiced'):
43
 
        raise wizard.except_wizard(_('UserError'), _("You can't modify this order. It has already been paid"))
 
42
        raise wizard.except_wizard('UserError', "You can't modify this order. It has already been paid")
44
43
 
45
44
    pick = pool.get('stock.picking').browse(cr, uid, data['form']['picking_id'], context)
46
45