Divyesh Makwana(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-907261-mdi into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #907261 in OpenERP Addons: "Account:-problem with passing of 'journal_id'
in context while creating Journal Items in gtk."
https://bugs.launchpad.net/openobject-addons/+bug/907261
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-907261-mdi/+merge/87717
Hello Sir,
I have fix the issue: https://bugs.launchpad.net/openobject-addons/+bug/907261
"Account:-problem with passing of 'journal_id' in context while creating
Journal Items in gtk".
I remove the 'readonly' attribute from 'journal_id' field.
Because Gtk does not send the value of read-only field to Server.
Thanks and Regards,
Divyesh Makwana(MDI)
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-907261-mdi/+merge/87717
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-907261-mdi.
=== modified file 'account/account_move_line.py'
--- account/account_move_line.py 2011-12-31 07:57:20 +0000
+++ account/account_move_line.py 2012-01-06 10:10:18 +0000
@@ -494,7 +494,7 @@
'amount_residual_currency': fields.function(_amount_residual, string='Residual Amount', multi="residual", help="The residual amount on a receivable or payable of a journal entry expressed in its currency (maybe different of the company currency)."),
'amount_residual': fields.function(_amount_residual, string='Residual Amount', multi="residual", help="The residual amount on a receivable or payable of a journal entry expressed in the company currency."),
'currency_id': fields.many2one('res.currency', 'Currency', help="The optional other currency if it is a multi-currency entry."),
- 'journal_id': fields.related('move_id', 'journal_id', string='Journal', type='many2one', relation='account.journal', required=True, select=True, readonly=True,
+ 'journal_id': fields.related('move_id', 'journal_id', string='Journal', type='many2one', relation='account.journal', required=True, select=True,
store = {
'account.move': (_get_move_lines, ['journal_id'], 20)
}),
@@ -1249,8 +1249,6 @@
if len(period_candidate_ids) != 1:
raise osv.except_osv(_('Encoding error'), _('No period found or more than one period found for the given date.'))
context['period_id'] = period_candidate_ids[0][0]
- if not context.get('journal_id', False) and context.get('search_default_journal_id', False):
- context['journal_id'] = context.get('search_default_journal_id')
self._update_journal_check(cr, uid, context['journal_id'], context['period_id'], context)
move_id = vals.get('move_id', False)
journal = journal_obj.browse(cr, uid, context['journal_id'], context=context)
_______________________________________________
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