openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #04287
[Bug 910829] [NEW] During installation account yaml
Public bug reported:
Hello,
When I am going to install purchase module, I got below traceback : With
latest code
[2012-01-02 13:05:06,301][trunk2jan12] INFO:init.load:module account:
loading test/account_use_model.yml [2012-01-02
13:05:06,627][trunk2jan12] ERROR:tests.account:(u'Error !', u'You can
not add/modify entries in a closed journal.') Traceback (most recent
call last): File
"/home/tta/source/server/trunk/openerp/tools/yaml_import.py", line 844,
in process self._process_node(node) File
"/home/tta/source/server/trunk/openerp/tools/yaml_import.py", line 859,
in _process_node self.process_python(node) File
"/home/tta/source/server/trunk/openerp/tools/yaml_import.py", line 530,
in process_python unsafe_eval(code_obj, {'ref': self.get_id},
code_context) File
"/home/tta/source/addons/trunk/account/test/account_use_model.yml", line
3, in <module> - File
"/home/tta/source/addons/trunk/account/wizard/account_use_model.py",
line 59, in create_entries move_ids = account_model_obj.generate(cr,
uid, model_ids, context=context) File
"/home/tta/source/addons/trunk/account/account.py", line 2297, in
generate account_move_line_obj.create(cr, uid, val, context=ctx)
File "/home/tta/source/addons/trunk/account/account_move_line.py", line
1254, in create self._update_journal_check(cr, uid,
context['journal_id'], context['period_id'], context) File
"/home/tta/source/addons/trunk/account/account_move_line.py", line 1199,
in _update_journal_check raise osv.except_osv(_('Error !'), _('You
can not add/modify entries in a closed journal.')) except_osv: (u'Error
!', u'You can not add/modify entries in a closed journal.') [2012-01-02
13:05:06,628][trunk2jan12] ERROR:init.test:Tests failed to execute in
module account Traceback (most recent call last): File
"/home/tta/source/server/trunk/openerp/modules/loading.py", line 102, in
load_test _load_data(cr, module_name, idref, mode, 'test') File
"/home/tta/source/server/trunk/openerp/modules/loading.py", line 138, in
_load_data tools.convert_yaml_import(cr, module_name, fp, idref,
mode, noupdate) File
"/home/tta/source/server/trunk/openerp/tools/yaml_import.py", line 909,
in yaml_import yaml_interpreter.process(yaml_string) File
"/home/tta/source/server/trunk/openerp/tools/yaml_import.py", line 844,
in process self._process_node(node) File
"/home/tta/source/server/trunk/openerp/tools/yaml_import.py", line 859,
in _process_node self.process_python(node) File
"/home/tta/source/server/trunk/openerp/tools/yaml_import.py", line 530,
in process_python unsafe_eval(code_obj, {'ref': self.get_id},
code_context) File
"/home/tta/source/addons/trunk/account/test/account_use_model.yml", line
3, in <module> - File
"/home/tta/source/addons/trunk/account/wizard/account_use_model.py",
line 59, in create_entries move_ids = account_model_obj.generate(cr,
uid, model_ids, context=context) File
"/home/tta/source/addons/trunk/account/account.py", line 2297, in
generate account_move_line_obj.create(cr, uid, val, context=ctx)
File "/home/tta/source/addons/trunk/account/account_move_line.py", line
1254, in create self._update_journal_check(cr, uid,
context['journal_id'], context['period_id'], context) File
"/home/tta/source/addons/trunk/account/account_move_line.py", line 1199,
in _update_journal_check raise osv.except_osv(_('Error !'), _('You
can not add/modify entries in a closed journal.')) except_osv: (u'Error
!', u'You can not add/modify entries in a closed journal.') [2012-01-02
13:05:06,793][trunk2jan12] INFO:i18n:module account: loading translation
file (en_US) for language en_US
Thanks,
Tejas ~ tta
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/910829
Title:
During installation account yaml
Status in OpenERP Addons (modules):
New
Bug description:
Hello,
When I am going to install purchase module, I got below traceback :
With latest code
[2012-01-02 13:05:06,301][trunk2jan12] INFO:init.load:module account:
loading test/account_use_model.yml [2012-01-02
13:05:06,627][trunk2jan12] ERROR:tests.account:(u'Error !', u'You can
not add/modify entries in a closed journal.') Traceback (most recent
call last): File
"/home/tta/source/server/trunk/openerp/tools/yaml_import.py", line
844, in process self._process_node(node) File
"/home/tta/source/server/trunk/openerp/tools/yaml_import.py", line
859, in _process_node self.process_python(node) File
"/home/tta/source/server/trunk/openerp/tools/yaml_import.py", line
530, in process_python unsafe_eval(code_obj, {'ref': self.get_id},
code_context) File
"/home/tta/source/addons/trunk/account/test/account_use_model.yml",
line 3, in <module> - File
"/home/tta/source/addons/trunk/account/wizard/account_use_model.py",
line 59, in create_entries move_ids =
account_model_obj.generate(cr, uid, model_ids, context=context) File
"/home/tta/source/addons/trunk/account/account.py", line 2297, in
generate account_move_line_obj.create(cr, uid, val, context=ctx)
File "/home/tta/source/addons/trunk/account/account_move_line.py",
line 1254, in create self._update_journal_check(cr, uid,
context['journal_id'], context['period_id'], context) File
"/home/tta/source/addons/trunk/account/account_move_line.py", line
1199, in _update_journal_check raise osv.except_osv(_('Error !'),
_('You can not add/modify entries in a closed journal.')) except_osv:
(u'Error !', u'You can not add/modify entries in a closed journal.')
[2012-01-02 13:05:06,628][trunk2jan12] ERROR:init.test:Tests failed to
execute in module account Traceback (most recent call last): File
"/home/tta/source/server/trunk/openerp/modules/loading.py", line 102,
in load_test _load_data(cr, module_name, idref, mode, 'test')
File "/home/tta/source/server/trunk/openerp/modules/loading.py", line
138, in _load_data tools.convert_yaml_import(cr, module_name, fp,
idref, mode, noupdate) File
"/home/tta/source/server/trunk/openerp/tools/yaml_import.py", line
909, in yaml_import yaml_interpreter.process(yaml_string) File
"/home/tta/source/server/trunk/openerp/tools/yaml_import.py", line
844, in process self._process_node(node) File
"/home/tta/source/server/trunk/openerp/tools/yaml_import.py", line
859, in _process_node self.process_python(node) File
"/home/tta/source/server/trunk/openerp/tools/yaml_import.py", line
530, in process_python unsafe_eval(code_obj, {'ref': self.get_id},
code_context) File
"/home/tta/source/addons/trunk/account/test/account_use_model.yml",
line 3, in <module> - File
"/home/tta/source/addons/trunk/account/wizard/account_use_model.py",
line 59, in create_entries move_ids =
account_model_obj.generate(cr, uid, model_ids, context=context) File
"/home/tta/source/addons/trunk/account/account.py", line 2297, in
generate account_move_line_obj.create(cr, uid, val, context=ctx)
File "/home/tta/source/addons/trunk/account/account_move_line.py",
line 1254, in create self._update_journal_check(cr, uid,
context['journal_id'], context['period_id'], context) File
"/home/tta/source/addons/trunk/account/account_move_line.py", line
1199, in _update_journal_check raise osv.except_osv(_('Error !'),
_('You can not add/modify entries in a closed journal.')) except_osv:
(u'Error !', u'You can not add/modify entries in a closed journal.')
[2012-01-02 13:05:06,793][trunk2jan12] INFO:i18n:module account:
loading translation file (en_US) for language en_US
Thanks,
Tejas ~ tta
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/910829/+subscriptions
Follow ups
References