** Changed in: banking-addons
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Banking
Addons Core Editors, which is subscribed to Banking Addons.
https://bugs.launchpad.net/bugs/1231174
Title:
Can't install module account_banking with new DB
Status in OpenERP Banking Addons:
Fix Released
Bug description:
I'm using an up-to-date openerp v7.0 with lp:account-banking revno
187. Here is the scenario to reproduce the bug :
1. Create a new DB without demo data
2. install the module account_banking
=> you get a raise during the installation of the module :
2013-09-25 22:24:38,433 3040 INFO erpv70_bugbank1 openerp.modules.loading:
module account_voucher: loading voucher_sales_purchase_view.xml
2013-09-25 22:24:38,630 3040 INFO erpv70_bugbank1 openerp.modules.loading:
module account_voucher: loading account_voucher_wizard.xml
2013-09-25 22:24:38,634 3040 INFO erpv70_bugbank1 openerp.modules.loading:
module account_voucher: loading account_voucher_pay_invoice.xml
2013-09-25 22:24:38,790 3040 INFO erpv70_bugbank1 openerp.modules.loading:
module account_voucher: loading report/account_voucher_sales_receipt_view.xml
2013-09-25 22:24:38,870 3040 INFO erpv70_bugbank1 openerp.modules.loading:
module account_voucher: loading security/account_voucher_security.xml
2013-09-25 22:24:38,898 3040 INFO erpv70_bugbank1 openerp.modules.loading:
module account_voucher: loading account_voucher_data.xml
2013-09-25 22:24:38,979 3040 INFO erpv70_bugbank1 openerp.modules.module:
module account_banking: creating or updating database tables
2013-09-25 22:24:39,897 3040 ERROR erpv70_bugbank1 openerp.netsvc: Error!
There is no period defined for this date: 2013-09-25.
Please create one.
Traceback (most recent call last):
File "/home/alexis/new_boite/dev/server-70/openerp/netsvc.py", line 292, in
dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File
"/home/alexis/new_boite/dev/server-70/openerp/service/web_services.py", line
626, in dispatch
res = fn(db, uid, *params)
File "/home/alexis/new_boite/dev/server-70/openerp/osv/osv.py", line 188,
in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/home/alexis/new_boite/dev/server-70/openerp/osv/osv.py", line 131,
in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/alexis/new_boite/dev/server-70/openerp/osv/osv.py", line 197,
in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/alexis/new_boite/dev/server-70/openerp/osv/osv.py", line 185,
in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File
"/home/alexis/new_boite/dev/server-70/openerp/addons/base/module/module.py",
line 424, in button_immediate_install
return self._button_immediate_function(cr, uid, ids, self.button_install,
context=context)
File
"/home/alexis/new_boite/dev/server-70/openerp/addons/base/module/module.py",
line 475, in _button_immediate_function
_, pool = pooler.restart_pool(cr.dbname, update_module=True)
File "/home/alexis/new_boite/dev/server-70/openerp/pooler.py", line 39, in
restart_pool
registry = RegistryManager.new(db_name, force_demo, status, update_module)
File "/home/alexis/new_boite/dev/server-70/openerp/modules/registry.py",
line 218, in new
openerp.modules.load_modules(registry.db, force_demo, status,
update_module)
File "/home/alexis/new_boite/dev/server-70/openerp/modules/loading.py",
line 354, in load_modules
loaded_modules, update_module)
File "/home/alexis/new_boite/dev/server-70/openerp/modules/loading.py",
line 256, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict,
report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "/home/alexis/new_boite/dev/server-70/openerp/modules/loading.py",
line 165, in load_module_graph
init_module_models(cr, package.name, models)
File "/home/alexis/new_boite/dev/server-70/openerp/modules/module.py", line
374, in init_module_models
result = obj._auto_init(cr, {'module': module_name})
File "/home/alexis/new_boite/dev/server-70/openerp/osv/orm.py", line 3164,
in _auto_init
default = self._defaults[k](self, cr, SUPERUSER_ID, context)
File
"/home/alexis/new_boite/dev/banking-addons-70/account_banking/account_banking.py",
line 472, in _get_period
periods = self.pool.get('account.period').find(cr, uid, dt=date)
File "/home/alexis/new_boite/dev/addons-70/account/account.py", line 1029,
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-09-25.\nPlease create one.')
To manage notifications about this bug go to:
https://bugs.launchpad.net/banking-addons/+bug/1231174/+subscriptions
--
Mailing list: https://launchpad.net/~banking-addons-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~banking-addons-team
More help : https://help.launchpad.net/ListHelp