[IMP]purchase:comment code of edi for pending now

bzr revid: mma@tinyerp.com-20120229113711-jq8in1oww9o03on2
This commit is contained in:
Mayur Maheshwari (OpenERP) 2012-02-29 17:07:11 +05:30
parent 1e4d9f48d2
commit ae97d281d3
1 changed files with 2 additions and 2 deletions

View File

@ -361,8 +361,8 @@ class purchase_order(osv.osv):
#EDI EXport data
id = ids[0]
order = self.browse(cr, uid, id, context)
if not order.partner_id.opt_out:
order.edi_export_and_email(template_ext_id='purchase.email_template_edi_purchase', context=context)
#if not order.partner_id.opt_out:
#order.edi_export_and_email(template_ext_id='purchase.email_template_edi_purchase', context=context)
ctx = context.copy()
ctx.update({'active_model': 'purchase.order', 'active_id': id, 'mail.compose.template_id': template_id})
return {