checkout from launchpad extra addons.
I fixed the bug there.
bzr branch lp:~openerp-commiter/openobject-addons/trunk-extra-addons

https://code.launchpad.net/~openerp-commiter/openobject-addons/trunk-extra-addons

Here is the patch for auto_email_stock module 

=== modified file 'auto_email_stock/wizard/wizard_partial_picking.py'
--- auto_email_stock/wizard/wizard_partial_picking.py   2009-06-05 
13:12:08 +0000
+++ auto_email_stock/wizard/wizard_partial_picking.py   2009-07-21 
12:05:15 +0000
@@ -195,11 +195,11 @@
 
 
 def send_mail(self, cr, uid, data, context):
-    picking_data = 
pooler.get_pool(cr.dbname).get('stock.picking').read(cr, 
uid, data['id'], context)
-    
email=pooler.get_pool(cr.dbname).get('res.partner.address').read(cr,
 uid, picking_data['address_id'][0], 
context)['email']
-    stock_smtpserver_id = 
pooler.get_pool(cr.dbname).get('email.smtpclient').search(cr,
 uid, [('type','=','stock')], context=False)
+    picking_data = 
pooler.get_pool(cr.dbname).get('stock.picking').read(cr, 
uid, data['id'], context=context)
+    
email=pooler.get_pool(cr.dbname).get('res.partner.address').read(cr,
 uid, picking_data['address_id'][0], 
context=context)['email']
+    stock_smtpserver_id = 
pooler.get_pool(cr.dbname).get('email.smtpclient').search(cr,
 uid, [('type','=','stock')], context=context)
     if not stock_smtpserver_id:
-        default_smtpserver_id = 
pooler.get_pool(cr.dbname).get('email.smtpclient').search(cr,
 uid, [('type','=','default')], context=False)
+        default_smtpserver_id = 
pooler.get_pool(cr.dbname).get('email.smtpclient').search(cr,
 uid, [('type','=','default')], context=context)
     smtpserver_id = stock_smtpserver_id or default_smtpserver_id
     if email:
         if not smtpserver_id:



------------------------
OpenERP=Easier, Adaptable, Affordable, Modular




-------------------- m2f --------------------

--
http://www.openobject.com/forum/viewtopic.php?p=39692#39692

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp-users

Reply via email to