[IMP]purchase:comment code of edi for pending now
bzr revid: mma@tinyerp.com-20120229113711-jq8in1oww9o03on2
This commit is contained in:
parent
1e4d9f48d2
commit
ae97d281d3
|
@ -361,8 +361,8 @@ class purchase_order(osv.osv):
|
||||||
#EDI EXport data
|
#EDI EXport data
|
||||||
id = ids[0]
|
id = ids[0]
|
||||||
order = self.browse(cr, uid, id, context)
|
order = self.browse(cr, uid, id, context)
|
||||||
if not order.partner_id.opt_out:
|
#if not order.partner_id.opt_out:
|
||||||
order.edi_export_and_email(template_ext_id='purchase.email_template_edi_purchase', context=context)
|
#order.edi_export_and_email(template_ext_id='purchase.email_template_edi_purchase', context=context)
|
||||||
ctx = context.copy()
|
ctx = context.copy()
|
||||||
ctx.update({'active_model': 'purchase.order', 'active_id': id, 'mail.compose.template_id': template_id})
|
ctx.update({'active_model': 'purchase.order', 'active_id': id, 'mail.compose.template_id': template_id})
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in New Issue