Rifakat (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.1-opw-575524-rha into
lp:openobject-addons/6.1.
Requested reviews:
Naresh(OpenERP) (nch-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-575524-rha/+merge/109119
Hello,
Converted string period to id while we enter any period from the seach view for
journal items.
Steps to reproduce with French chart of account:
1. Open Journal Items, provide journal 'Bank' and period '06/2012' from search
2. Create new journal item,
Reference: Test
Account: 401100
Name: Test
Debit: 100
3. Press enter, it will generate remaining lines automaticallly
4. Now try to change 'Reference' and press enter, It will raise error.
It is due to period passed through context is in string '06/2012', which should
be
converted to appropriate id.
Kindly review this fix.
Regards,
Rifakat Haradwala
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-575524-rha/+merge/109119
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.1-opw-575524-rha.
=== modified file 'account/account_move_line.py'
--- account/account_move_line.py 2012-03-06 16:10:40 +0000
+++ account/account_move_line.py 2012-06-07 11:59:22 +0000
@@ -1170,6 +1170,8 @@
ctx['period_id'] = line.move_id.period_id.id
else:
ctx['period_id'] = line.period_id.id
+ else:
+ ctx = self.convert_to_period(cr, uid, ctx)
#Check for centralisation
journal = journal_obj.browse(cr, uid, ctx['journal_id'], context=ctx)
if journal.centralisation:
_______________________________________________
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