Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

account_payment_blocking make l10n-switzerland tests fail #179

Closed
yvaucher opened this issue Jun 16, 2015 · 2 comments
Closed

account_payment_blocking make l10n-switzerland tests fail #179

yvaucher opened this issue Jun 16, 2015 · 2 comments

Comments

@yvaucher
Copy link
Member

The tests are loaded and fails.

https://travis-ci.org/OCA/l10n-switzerland/jobs/66542118

Here is the error:

Traceback (most recent call last):
  File "/home/travis/odoo-8.0/openerp/service/server.py", line 919, in preload_registries
    registry = RegistryManager.new(dbname, update_module=update_module)
  File "/home/travis/odoo-8.0/openerp/modules/registry.py", line 370, in new
    openerp.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/home/travis/odoo-8.0/openerp/modules/loading.py", line 312, in load_modules
    modobj.update_list(cr, SUPERUSER_ID)
  File "/home/travis/odoo-8.0/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/travis/odoo-8.0/openerp/addons/base/module/module.py", line 654, in update_list
    handler.load_addons()
  File "/home/travis/odoo-8.0/openerp/http.py", line 1307, in load_addons
    m = __import__('openerp.addons.' + module)
  File "/home/travis/odoo-8.0/openerp/modules/module.py", line 80, in load_module
    mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)
  File "/home/travis/bank-payment/account_payment_blocking/__init__.py", line 24, in <module>
    from . import tests
  File "/home/travis/bank-payment/account_payment_blocking/tests/__init__.py", line 23, in <module>
    from . import test_account_banking_payment_blocking
  File "/home/travis/bank-payment/account_payment_blocking/tests/test_account_banking_payment_blocking.py", line 26, in <module>
    DB = common.DB
AttributeError: 'module' object has no attribute 'DB'

This only failed with Odoo, OCB is working properly.

@yvaucher yvaucher changed the title account_payment_blocking make l10n-switzerland tests fail. account_payment_blocking make l10n-switzerland tests fail Jun 16, 2015
@yvaucher
Copy link
Member Author

Ok this was fixed in
1b67285

Thanks

@sbidoul
Copy link
Member

sbidoul commented Jun 16, 2015

See also: odoo/odoo#7054

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants