Merge lp:~openerp-dev/openobject-addons/trunk-bug-876223-mma into lp:openobject-addons

Proposed by Mayur Maheshwari(OpenERP)
Status: Merged
Merged at revision: 5577
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-876223-mma
Merge into: lp:openobject-addons
Diff against target: 20 lines (+4/-1)
1 file modified
auction/wizard/auction_pay_buy.py (+4/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-876223-mma
Reviewer Review Type Date Requested Status
Bhumika Shrimali Pending
Review via email: mp+79526@code.launchpad.net

Description of the change

Hello,

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

Thanks.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'auction/wizard/auction_pay_buy.py'
2--- auction/wizard/auction_pay_buy.py 2011-01-14 00:11:01 +0000
3+++ auction/wizard/auction_pay_buy.py 2011-11-10 07:23:35 +0000
4@@ -82,12 +82,15 @@
5 lots = lot_obj.browse(cr, uid, context.get('active_ids', []), context=context)
6 for lot in lots:
7 if datas['buyer_id']:
8+ if isinstance(datas['buyer_id'], (tuple, list)):
9+ datas['buyer_id'] = datas['buyer_id'][0]
10 lot_obj.write(cr, uid, [lot.id], {'ach_uid': datas['buyer_id']})
11 if not lot.auction_id:
12 raise osv.except_osv(_('Error!'), _('No auction date for "%s": Please set one.') % (lot.name))
13 lot_obj.write(cr, uid, [lot.id], {'is_ok':True})
14-
15 for st, stamount in [('statement_id1', 'amount'), ('statement_id2', 'amount2'), ('statement_id3', 'amount3')]:
16+ if isinstance(datas[st], tuple):
17+ datas[st] = datas[st][0]
18 if datas[st]:
19 new_id = bank_statement_line_obj.create(cr, uid, {
20 'name':'Buyer:'+ str(lot.ach_login or '')+', auction:'+ lots[0].auction_id.name,

Subscribers

People subscribed via source and target branches

to all changes: