Skip to content

Commit

Permalink
[FIX] delivery: allow to add delivery method in quotation if quotatio…
Browse files Browse the repository at this point in the history
…n in quotation sent stage

opw-607920
  • Loading branch information
beledouxdenis committed Jun 3, 2014
1 parent 6e5bef9 commit 7a157dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/delivery/sale.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def delivery_set(self, cr, uid, ids, context=None):
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)
Expand Down

0 comments on commit 7a157dd

Please sign in to comment.