Ravi Gohil (Open ERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.0-opw-6139-rgo into
lp:openobject-addons/6.0.
Requested reviews:
Jay Vora (OpenERP) (jvo-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-6139-rgo/+merge/66414
Hello,
There was an issue with BVR Import wizard in l10n_ch module, When importing
data using BVR Import, if the imported .V11 file concerned more than one
invoice, the link to the payment line was not done, if the imported .V11 file
concerned only one invoice, it's fine.
This solves the issue.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-6139-rgo/+merge/66414
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.0-opw-6139-rgo.
=== modified file 'l10n_ch/wizard/bvr_import.py'
--- l10n_ch/wizard/bvr_import.py 2011-06-01 20:40:12 +0000
+++ l10n_ch/wizard/bvr_import.py 2011-06-30 06:15:54 +0000
@@ -181,17 +181,18 @@
'period_id': statement.period_id.id
}
voucher_id = voucher_obj.create(cursor, user, voucher_res, context=context)
- context.update({'move_line_ids': line_ids})
+ ctx = context.copy()
+ ctx.update({'move_line_ids': line_ids})
values['voucher_id'] = voucher_id
voucher_line_dict = False
if result['value']['line_ids']:
for line_dict in result['value']['line_ids']:
- move_line = move_line_obj.browse(cursor, user, line_dict['move_line_id'], context)
+ move_line = move_line_obj.browse(cursor, user, line_dict['move_line_id'], context=ctx)
if move_id == move_line.move_id.id:
voucher_line_dict = line_dict
if voucher_line_dict:
voucher_line_dict.update({'voucher_id':voucher_id})
- voucher_line_obj.create(cursor, user, voucher_line_dict, context=context)
+ voucher_line_obj.create(cursor, user, voucher_line_dict, context=ctx)
if not account_id:
if record['amount'] >= 0:
@@ -224,7 +225,7 @@
_('The properties account payable account receivable are not set'))
values['account_id'] = account_id
values['partner_id'] = partner_id
- statement_line_obj.create(cursor, user, values, context=context)
+ statement_line_obj.create(cursor, user, values, context=ctx)
attachment_obj.create(cursor, user, {
'name': 'BVR',
'datas': file,
_______________________________________________
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