[MERGE] forward port of branch 7.0 up to f4870f8
authorDenis Ledoux <dle@odoo.com>
Tue, 28 Oct 2014 16:58:50 +0000 (17:58 +0100)
committerDenis Ledoux <dle@odoo.com>
Tue, 28 Oct 2014 16:58:50 +0000 (17:58 +0100)
1  2 
addons/sale/wizard/sale_line_invoice.py

@@@ -100,7 -100,8 +100,8 @@@ class sale_order_line_make_invoice(osv.
                      flag = False
                      break
              if flag:
+                 line.order_id.write({'state': 'progress'})
 -                wf_service.trg_validate(uid, 'sale.order', order.id, 'all_lines', cr)
 +                workflow.trg_validate(uid, 'sale.order', order.id, 'all_lines', cr)
  
          if not invoices:
              raise osv.except_osv(_('Warning!'), _('Invoice cannot be created for this Sales Order Line due to one of the following reasons:\n1.The state of this sales order line is either "draft" or "cancel"!\n2.The Sales Order Line is Invoiced!'))