[FIX] delivery: allow to add delivery method in quotation if quotation in quotation sent stage

opw-607920
This commit is contained in:
Denis Ledoux 2014-06-03 17:12:07 +02:00
parent 6e5bef9bd2
commit 7a157dd35e
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ class sale_order(osv.osv):
if not grid_id:
raise osv.except_osv(_('No Grid Available!'), _('No grid matching for this carrier!'))
if not order.state in ('draft'):
if not order.state in ('draft', 'sent'):
raise osv.except_osv(_('Order not in Draft State!'), _('The order state have to be draft to add delivery lines.'))
grid = grid_obj.browse(cr, uid, grid_id, context=context)