Mayur Maheshwari(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-876223-mma into 
lp:openobject-addons.

Requested reviews:
  Mustufa Rangwala (Open ERP) (mra-tinyerp)
Related bugs:
  Bug #876223 in OpenERP Addons: "pay objects of the buyer wizard can't pay  
anything onclick a pay Button iin wizard"
  https://bugs.launchpad.net/openobject-addons/+bug/876223

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-876223-mma/+merge/79526

Hello,

      auction: now pay button is working in pay objects of the buyer wizard

Thanks.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-876223-mma/+merge/79526
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-876223-mma.
=== modified file 'auction/wizard/auction_pay_buy.py'
--- auction/wizard/auction_pay_buy.py	2011-01-14 00:11:01 +0000
+++ auction/wizard/auction_pay_buy.py	2011-10-17 09:29:19 +0000
@@ -82,12 +82,15 @@
             lots = lot_obj.browse(cr, uid, context.get('active_ids', []), context=context)
             for lot in lots:
                 if datas['buyer_id']:
+                    if isinstance(datas['buyer_id'], tuple):
+                        datas['buyer_id'] = datas['buyer_id'][0]
                     lot_obj.write(cr, uid, [lot.id], {'ach_uid': datas['buyer_id']})
                 if not lot.auction_id:
                     raise osv.except_osv(_('Error!'), _('No auction date for "%s": Please set one.') % (lot.name))
                 lot_obj.write(cr, uid, [lot.id], {'is_ok':True})
-    
             for st, stamount in [('statement_id1', 'amount'), ('statement_id2', 'amount2'), ('statement_id3', 'amount3')]:
+                if isinstance(datas[st], tuple):
+                        datas[st] = datas[st][0]
                 if datas[st]:
                     new_id = bank_statement_line_obj.create(cr, uid, {
                         'name':'Buyer:'+ str(lot.ach_login or '')+', auction:'+ lots[0].auction_id.name, 

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to