[FIX]sale wizard: missing import and local variable to call worflow action
bzr revid: csn@openerp.com-20130503124345-f1cvr6wps0d9bcu8
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
|
||||
from openerp.osv import osv, fields
|
||||
from openerp.tools.translate import _
|
||||
from openerp import netsvc
|
||||
|
||||
class sale_order_line_make_invoice(osv.osv_memory):
|
||||
_name = "sale.order.line.make.invoice"
|
||||
@@ -80,6 +81,7 @@ class sale_order_line_make_invoice(osv.osv_memory):
|
||||
|
||||
sales_order_line_obj = self.pool.get('sale.order.line')
|
||||
sales_order_obj = self.pool.get('sale.order')
|
||||
wf_service = netsvc.LocalService('workflow')
|
||||
for line in sales_order_line_obj.browse(cr, uid, context.get('active_ids', []), context=context):
|
||||
if (not line.invoiced) and (line.state not in ('draft', 'cancel')):
|
||||
if not line.order_id in invoices:
|
||||
|
||||
Reference in New Issue
Block a user