openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #21083
[Bug 1097166] [NEW] 7.0 - login impossible if no period in the new year exists
Public bug reported:
I have created a test db "last year" = dec 30th without creating fiscal year and periods for the current year.
trying to update=all raises the error and no login is possible any more
2013-01-08 08:17:14,983 31489 INFO test_30_sum openerp.modules.loading: module point_of_sale: loading test/00_register_open.yml
2013-01-08 08:17:14,988 31489 DEBUG test_30_sum openerp.tools.yaml_import: In order to test the Point of Sale module, I will open all cash registers through the wizard
2013-01-08 08:17:14,988 31489 DEBUG test_30_sum openerp.tools.yaml_import: I go to the window to open the cash registers as admin
2013-01-08 08:17:14,990 31489 DEBUG test_30_sum openerp.tools.yaml_import: I click on the button to open all statements/cash registers
2013-01-08 08:17:15,019 31489 DEBUG test_30_sum openerp.tools.yaml_import: Exception during evaluation of !python block in yaml_file /home/gass/OpenERP/7.0/server/openerp/addons/point_of_sale/test/00_register_open.yml.
Traceback (most recent call last):
File "/home/gass/OpenERP/7.0/server/openerp/tools/yaml_import.py", line 550, in process_python
unsafe_eval(code_obj, {'ref': self.get_id}, code_context)
File "/home/gass/OpenERP/7.0/server/openerp/addons/point_of_sale/test/00_register_open.yml", line 1, in <module>
-
File "/home/gass/OpenERP/7.0/server/openerp/addons/point_of_sale/wizard/pos_open_statement.py", line 65, in open_statement
statement_id = statement_obj.create(cr, uid, data, context=context)
File "/home/gass/OpenERP/7.0/server/openerp/addons/account/account_cash_statement.py", line 220, in create
res_id = super(account_cash_statement, self).create(cr, uid, vals, context=context)
File "/home/gass/OpenERP/7.0/server/openerp/addons/account/account_bank_statement.py", line 33, in create
return super(account_bank_statement, self).create(cr, uid, vals, context=context)
File "/home/gass/OpenERP/7.0/server/openerp/addons/mail/mail_thread.py", line 240, in create
thread_id = super(mail_thread, self).create(cr, uid, values, context=context)
File "/home/gass/OpenERP/7.0/server/openerp/osv/orm.py", line 4319, in create
vals = self._add_missing_default_values(cr, user, vals, context)
File "/home/gass/OpenERP/7.0/server/openerp/osv/orm.py", line 2489, in _add_missing_default_values
defaults = self.default_get(cr, uid, missing_defaults, context)
File "/home/gass/OpenERP/7.0/server/openerp/osv/orm.py", line 1583, in default_get
defaults[f] = self._defaults[f](self, cr, uid, context)
File "/home/gass/OpenERP/7.0/server/openerp/addons/account/account_bank_statement.py", line 64, in _get_period
periods = self.pool.get('account.period').find(cr, uid,context=context)
File "/home/gass/OpenERP/7.0/server/openerp/addons/account/account.py", line 1024, in find
raise osv.except_osv(_('Error !'), _('There is no period defined for this date: %s.\nPlease create one.')%dt)
except_osv: (u'Error !', u'There is no period defined for this date: 2013-01-08.\nPlease create one.')
2013-01-08 08:17:15,020 31489 ERROR test_30_sum openerp.tools.yaml_import: (u'Error !', u'There is no period defined for this date: 2013-01-08.\nPlease create one.')
Traceback (most recent call last):
File "/home/gass/OpenERP/7.0/server/openerp/tools/yaml_import.py", line 864, in process
self._process_node(node)
File "/home/gass/OpenERP/7.0/server/openerp/tools/yaml_import.py", line 877, in _process_node
self.process_python(node)
File "/home/gass/OpenERP/7.0/server/openerp/tools/yaml_import.py", line 550, in process_python
unsafe_eval(code_obj, {'ref': self.get_id}, code_context)
File "/home/gass/OpenERP/7.0/server/openerp/addons/point_of_sale/test/00_register_open.yml", line 1, in <module>
-
File "/home/gass/OpenERP/7.0/server/openerp/addons/point_of_sale/wizard/pos_open_statement.py", line 65, in open_statement
statement_id = statement_obj.create(cr, uid, data, context=context)
File "/home/gass/OpenERP/7.0/server/openerp/addons/account/account_cash_statement.py", line 220, in create
res_id = super(account_cash_statement, self).create(cr, uid, vals, context=context)
File "/home/gass/OpenERP/7.0/server/openerp/addons/account/account_bank_statement.py", line 33, in create
return super(account_bank_statement, self).create(cr, uid, vals, context=context)
File "/home/gass/OpenERP/7.0/server/openerp/addons/mail/mail_thread.py", line 240, in create
thread_id = super(mail_thread, self).create(cr, uid, values, context=context)
File "/home/gass/OpenERP/7.0/server/openerp/osv/orm.py", line 4319, in create
vals = self._add_missing_default_values(cr, user, vals, context)
File "/home/gass/OpenERP/7.0/server/openerp/osv/orm.py", line 2489, in _add_missing_default_values
defaults = self.default_get(cr, uid, missing_defaults, context)
File "/home/gass/OpenERP/7.0/server/openerp/osv/orm.py", line 1583, in default_get
defaults[f] = self._defaults[f](self, cr, uid, context)
File "/home/gass/OpenERP/7.0/server/openerp/addons/account/account_bank_statement.py", line 64, in _get_period
periods = self.pool.get('account.period').find(cr, uid,context=context)
File "/home/gass/OpenERP/7.0/server/openerp/addons/account/account.py", line 1024, in find
raise osv.except_osv(_('Error !'), _('There is no period defined for this date: %s.\nPlease create one.')%dt)
except_osv: (u'Error !', u'There is no period defined for this date: 2013-01-08.\nPlease create one.')
2013-01-08 08:17:15,022 31489 ERROR test_30_sum openerp.netsvc: Error !
There is no period defined for this date: 2013-01-08.
Please create one.
Traceback (most recent call last):
File "/home/gass/OpenERP/7.0/server/openerp/netsvc.py", line 289, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/home/gass/OpenERP/7.0/server/openerp/service/web_services.py", line 425, in dispatch
return fn(*params)
File "/home/gass/OpenERP/7.0/server/openerp/service/web_services.py", line 436, in exp_authenticate
res_users = pooler.get_pool(db).get('res.users')
File "/home/gass/OpenERP/7.0/server/openerp/pooler.py", line 49, in get_pool
return get_db_and_pool(db_name, force_demo, status, update_module)[1]
File "/home/gass/OpenERP/7.0/server/openerp/pooler.py", line 33, in get_db_and_pool
registry = RegistryManager.get(db_name, force_demo, status, update_module)
File "/home/gass/OpenERP/7.0/server/openerp/modules/registry.py", line 192, in get
update_module)
File "/home/gass/OpenERP/7.0/server/openerp/modules/registry.py", line 214, in new
openerp.modules.load_modules(registry.db, force_demo, status, update_module)
File "/home/gass/OpenERP/7.0/server/openerp/modules/loading.py", line 345, in load_modules
processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules, update_module)
File "/home/gass/OpenERP/7.0/server/openerp/modules/loading.py", line 260, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "/home/gass/OpenERP/7.0/server/openerp/modules/loading.py", line 196, in load_module_graph
load_demo(module_name, idref, mode)
File "/home/gass/OpenERP/7.0/server/openerp/modules/loading.py", line 78, in <lambda>
load_demo = lambda *args: _load_data(cr, *args, kind='demo')
File "/home/gass/OpenERP/7.0/server/openerp/modules/loading.py", line 126, in _load_data
tools.convert_yaml_import(cr, module_name, fp, kind, idref, mode, noupdate, report)
File "/home/gass/OpenERP/7.0/server/openerp/tools/yaml_import.py", line 928, in yaml_import
yaml_interpreter.process(yaml_string)
File "/home/gass/OpenERP/7.0/server/openerp/tools/yaml_import.py", line 864, in process
self._process_node(node)
File "/home/gass/OpenERP/7.0/server/openerp/tools/yaml_import.py", line 877, in _process_node
self.process_python(node)
File "/home/gass/OpenERP/7.0/server/openerp/tools/yaml_import.py", line 550, in process_python
unsafe_eval(code_obj, {'ref': self.get_id}, code_context)
File "/home/gass/OpenERP/7.0/server/openerp/addons/point_of_sale/test/00_register_open.yml", line 1, in <module>
-
File "/home/gass/OpenERP/7.0/server/openerp/addons/point_of_sale/wizard/pos_open_statement.py", line 65, in open_statement
statement_id = statement_obj.create(cr, uid, data, context=context)
File "/home/gass/OpenERP/7.0/server/openerp/addons/account/account_cash_statement.py", line 220, in create
res_id = super(account_cash_statement, self).create(cr, uid, vals, context=context)
File "/home/gass/OpenERP/7.0/server/openerp/addons/account/account_bank_statement.py", line 33, in create
return super(account_bank_statement, self).create(cr, uid, vals, context=context)
File "/home/gass/OpenERP/7.0/server/openerp/addons/mail/mail_thread.py", line 240, in create
thread_id = super(mail_thread, self).create(cr, uid, values, context=context)
File "/home/gass/OpenERP/7.0/server/openerp/osv/orm.py", line 4319, in create
vals = self._add_missing_default_values(cr, user, vals, context)
File "/home/gass/OpenERP/7.0/server/openerp/osv/orm.py", line 2489, in _add_missing_default_values
defaults = self.default_get(cr, uid, missing_defaults, context)
File "/home/gass/OpenERP/7.0/server/openerp/osv/orm.py", line 1583, in default_get
defaults[f] = self._defaults[f](self, cr, uid, context)
File "/home/gass/OpenERP/7.0/server/openerp/addons/account/account_bank_statement.py", line 64, in _get_period
periods = self.pool.get('account.period').find(cr, uid,context=context)
File "/home/gass/OpenERP/7.0/server/openerp/addons/account/account.py", line 1024, in find
raise osv.except_osv(_('Error !'), _('There is no period defined for this date: %s.\nPlease create one.')%dt)
except_osv: (u'Error !', u'There is no period defined for this date: 2013-01-08.\nPlease create one.')
> /home/gass/OpenERP/7.0/server/openerp/addons/account/account.py(1024)find()
-> raise osv.except_osv(_('Error !'), _('There is no period defined for this date: %s.\nPlease create one.')%dt)
(Pdb)
2013-01-08 08:17:15,026 31489 INFO test_30_sum werkzeug: 127.0.0.1 - - [08/Jan/2013 08:17:15] "POST /web/session/authenticate HTTP/1.1" 200 -
2013-01-08 08:17:23,955 31489 DEBUG bl_20130108_0107 openerp.service.cron: cron3 polling for jobs
2013-01-08 08:17:41,876 31489 DEBUG bl_20130108_0107 openerp.service.cron: cron0 polling for jobs
** Affects: openobject-addons
Importance: Undecided
Status: New
** Summary changed:
- 7.0 - login impossible if no period in te new year exists
+ 7.0 - login impossible if no period in the new year exists
--
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/1097166
Title:
7.0 - login impossible if no period in the new year exists
Status in OpenERP Addons (modules):
New
Bug description:
I have created a test db "last year" = dec 30th without creating fiscal year and periods for the current year.
trying to update=all raises the error and no login is possible any more
2013-01-08 08:17:14,983 31489 INFO test_30_sum openerp.modules.loading: module point_of_sale: loading test/00_register_open.yml
2013-01-08 08:17:14,988 31489 DEBUG test_30_sum openerp.tools.yaml_import: In order to test the Point of Sale module, I will open all cash registers through the wizard
2013-01-08 08:17:14,988 31489 DEBUG test_30_sum openerp.tools.yaml_import: I go to the window to open the cash registers as admin
2013-01-08 08:17:14,990 31489 DEBUG test_30_sum openerp.tools.yaml_import: I click on the button to open all statements/cash registers
2013-01-08 08:17:15,019 31489 DEBUG test_30_sum openerp.tools.yaml_import: Exception during evaluation of !python block in yaml_file /home/gass/OpenERP/7.0/server/openerp/addons/point_of_sale/test/00_register_open.yml.
Traceback (most recent call last):
File "/home/gass/OpenERP/7.0/server/openerp/tools/yaml_import.py", line 550, in process_python
unsafe_eval(code_obj, {'ref': self.get_id}, code_context)
File "/home/gass/OpenERP/7.0/server/openerp/addons/point_of_sale/test/00_register_open.yml", line 1, in <module>
-
File "/home/gass/OpenERP/7.0/server/openerp/addons/point_of_sale/wizard/pos_open_statement.py", line 65, in open_statement
statement_id = statement_obj.create(cr, uid, data, context=context)
File "/home/gass/OpenERP/7.0/server/openerp/addons/account/account_cash_statement.py", line 220, in create
res_id = super(account_cash_statement, self).create(cr, uid, vals, context=context)
File "/home/gass/OpenERP/7.0/server/openerp/addons/account/account_bank_statement.py", line 33, in create
return super(account_bank_statement, self).create(cr, uid, vals, context=context)
File "/home/gass/OpenERP/7.0/server/openerp/addons/mail/mail_thread.py", line 240, in create
thread_id = super(mail_thread, self).create(cr, uid, values, context=context)
File "/home/gass/OpenERP/7.0/server/openerp/osv/orm.py", line 4319, in create
vals = self._add_missing_default_values(cr, user, vals, context)
File "/home/gass/OpenERP/7.0/server/openerp/osv/orm.py", line 2489, in _add_missing_default_values
defaults = self.default_get(cr, uid, missing_defaults, context)
File "/home/gass/OpenERP/7.0/server/openerp/osv/orm.py", line 1583, in default_get
defaults[f] = self._defaults[f](self, cr, uid, context)
File "/home/gass/OpenERP/7.0/server/openerp/addons/account/account_bank_statement.py", line 64, in _get_period
periods = self.pool.get('account.period').find(cr, uid,context=context)
File "/home/gass/OpenERP/7.0/server/openerp/addons/account/account.py", line 1024, in find
raise osv.except_osv(_('Error !'), _('There is no period defined for this date: %s.\nPlease create one.')%dt)
except_osv: (u'Error !', u'There is no period defined for this date: 2013-01-08.\nPlease create one.')
2013-01-08 08:17:15,020 31489 ERROR test_30_sum openerp.tools.yaml_import: (u'Error !', u'There is no period defined for this date: 2013-01-08.\nPlease create one.')
Traceback (most recent call last):
File "/home/gass/OpenERP/7.0/server/openerp/tools/yaml_import.py", line 864, in process
self._process_node(node)
File "/home/gass/OpenERP/7.0/server/openerp/tools/yaml_import.py", line 877, in _process_node
self.process_python(node)
File "/home/gass/OpenERP/7.0/server/openerp/tools/yaml_import.py", line 550, in process_python
unsafe_eval(code_obj, {'ref': self.get_id}, code_context)
File "/home/gass/OpenERP/7.0/server/openerp/addons/point_of_sale/test/00_register_open.yml", line 1, in <module>
-
File "/home/gass/OpenERP/7.0/server/openerp/addons/point_of_sale/wizard/pos_open_statement.py", line 65, in open_statement
statement_id = statement_obj.create(cr, uid, data, context=context)
File "/home/gass/OpenERP/7.0/server/openerp/addons/account/account_cash_statement.py", line 220, in create
res_id = super(account_cash_statement, self).create(cr, uid, vals, context=context)
File "/home/gass/OpenERP/7.0/server/openerp/addons/account/account_bank_statement.py", line 33, in create
return super(account_bank_statement, self).create(cr, uid, vals, context=context)
File "/home/gass/OpenERP/7.0/server/openerp/addons/mail/mail_thread.py", line 240, in create
thread_id = super(mail_thread, self).create(cr, uid, values, context=context)
File "/home/gass/OpenERP/7.0/server/openerp/osv/orm.py", line 4319, in create
vals = self._add_missing_default_values(cr, user, vals, context)
File "/home/gass/OpenERP/7.0/server/openerp/osv/orm.py", line 2489, in _add_missing_default_values
defaults = self.default_get(cr, uid, missing_defaults, context)
File "/home/gass/OpenERP/7.0/server/openerp/osv/orm.py", line 1583, in default_get
defaults[f] = self._defaults[f](self, cr, uid, context)
File "/home/gass/OpenERP/7.0/server/openerp/addons/account/account_bank_statement.py", line 64, in _get_period
periods = self.pool.get('account.period').find(cr, uid,context=context)
File "/home/gass/OpenERP/7.0/server/openerp/addons/account/account.py", line 1024, in find
raise osv.except_osv(_('Error !'), _('There is no period defined for this date: %s.\nPlease create one.')%dt)
except_osv: (u'Error !', u'There is no period defined for this date: 2013-01-08.\nPlease create one.')
2013-01-08 08:17:15,022 31489 ERROR test_30_sum openerp.netsvc: Error !
There is no period defined for this date: 2013-01-08.
Please create one.
Traceback (most recent call last):
File "/home/gass/OpenERP/7.0/server/openerp/netsvc.py", line 289, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/home/gass/OpenERP/7.0/server/openerp/service/web_services.py", line 425, in dispatch
return fn(*params)
File "/home/gass/OpenERP/7.0/server/openerp/service/web_services.py", line 436, in exp_authenticate
res_users = pooler.get_pool(db).get('res.users')
File "/home/gass/OpenERP/7.0/server/openerp/pooler.py", line 49, in get_pool
return get_db_and_pool(db_name, force_demo, status, update_module)[1]
File "/home/gass/OpenERP/7.0/server/openerp/pooler.py", line 33, in get_db_and_pool
registry = RegistryManager.get(db_name, force_demo, status, update_module)
File "/home/gass/OpenERP/7.0/server/openerp/modules/registry.py", line 192, in get
update_module)
File "/home/gass/OpenERP/7.0/server/openerp/modules/registry.py", line 214, in new
openerp.modules.load_modules(registry.db, force_demo, status, update_module)
File "/home/gass/OpenERP/7.0/server/openerp/modules/loading.py", line 345, in load_modules
processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules, update_module)
File "/home/gass/OpenERP/7.0/server/openerp/modules/loading.py", line 260, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "/home/gass/OpenERP/7.0/server/openerp/modules/loading.py", line 196, in load_module_graph
load_demo(module_name, idref, mode)
File "/home/gass/OpenERP/7.0/server/openerp/modules/loading.py", line 78, in <lambda>
load_demo = lambda *args: _load_data(cr, *args, kind='demo')
File "/home/gass/OpenERP/7.0/server/openerp/modules/loading.py", line 126, in _load_data
tools.convert_yaml_import(cr, module_name, fp, kind, idref, mode, noupdate, report)
File "/home/gass/OpenERP/7.0/server/openerp/tools/yaml_import.py", line 928, in yaml_import
yaml_interpreter.process(yaml_string)
File "/home/gass/OpenERP/7.0/server/openerp/tools/yaml_import.py", line 864, in process
self._process_node(node)
File "/home/gass/OpenERP/7.0/server/openerp/tools/yaml_import.py", line 877, in _process_node
self.process_python(node)
File "/home/gass/OpenERP/7.0/server/openerp/tools/yaml_import.py", line 550, in process_python
unsafe_eval(code_obj, {'ref': self.get_id}, code_context)
File "/home/gass/OpenERP/7.0/server/openerp/addons/point_of_sale/test/00_register_open.yml", line 1, in <module>
-
File "/home/gass/OpenERP/7.0/server/openerp/addons/point_of_sale/wizard/pos_open_statement.py", line 65, in open_statement
statement_id = statement_obj.create(cr, uid, data, context=context)
File "/home/gass/OpenERP/7.0/server/openerp/addons/account/account_cash_statement.py", line 220, in create
res_id = super(account_cash_statement, self).create(cr, uid, vals, context=context)
File "/home/gass/OpenERP/7.0/server/openerp/addons/account/account_bank_statement.py", line 33, in create
return super(account_bank_statement, self).create(cr, uid, vals, context=context)
File "/home/gass/OpenERP/7.0/server/openerp/addons/mail/mail_thread.py", line 240, in create
thread_id = super(mail_thread, self).create(cr, uid, values, context=context)
File "/home/gass/OpenERP/7.0/server/openerp/osv/orm.py", line 4319, in create
vals = self._add_missing_default_values(cr, user, vals, context)
File "/home/gass/OpenERP/7.0/server/openerp/osv/orm.py", line 2489, in _add_missing_default_values
defaults = self.default_get(cr, uid, missing_defaults, context)
File "/home/gass/OpenERP/7.0/server/openerp/osv/orm.py", line 1583, in default_get
defaults[f] = self._defaults[f](self, cr, uid, context)
File "/home/gass/OpenERP/7.0/server/openerp/addons/account/account_bank_statement.py", line 64, in _get_period
periods = self.pool.get('account.period').find(cr, uid,context=context)
File "/home/gass/OpenERP/7.0/server/openerp/addons/account/account.py", line 1024, in find
raise osv.except_osv(_('Error !'), _('There is no period defined for this date: %s.\nPlease create one.')%dt)
except_osv: (u'Error !', u'There is no period defined for this date: 2013-01-08.\nPlease create one.')
> /home/gass/OpenERP/7.0/server/openerp/addons/account/account.py(1024)find()
-> raise osv.except_osv(_('Error !'), _('There is no period defined for this date: %s.\nPlease create one.')%dt)
(Pdb)
2013-01-08 08:17:15,026 31489 INFO test_30_sum werkzeug: 127.0.0.1 - - [08/Jan/2013 08:17:15] "POST /web/session/authenticate HTTP/1.1" 200 -
2013-01-08 08:17:23,955 31489 DEBUG bl_20130108_0107 openerp.service.cron: cron3 polling for jobs
2013-01-08 08:17:41,876 31489 DEBUG bl_20130108_0107 openerp.service.cron: cron0 polling for jobs
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1097166/+subscriptions
Follow ups
References