After OpenERP 7 upgrade "ERROR: relation "ir_model_constraint" does not exist" - odoo

I'd been using OpenERP 6 OK and decided to upgrade to version 7.
I downloaded openerp_7.0alpha-20121206-000102-1_all.deb from http://nightly.openerp.com/trunk/nightly/deb/ and installed it. Now when I browse to http://localhost:8069 I can no longer select the database (because when there is one DB there is no reason to show the selector,) and after log in I get:
OpenERP Server Error
Client Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/openerp/addons/web/http.py", line 195, in dispatch
response["result"] = method(self, **self.params)
File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 833, in authenticate
req.session.authenticate(db, login, password, env)
File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 113, in authenticate
uid = self.proxy('common').authenticate(db, login, password, env)
File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 28, in proxy_method
result = self.session.send(self.service_name, method, *args)
File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 101, in send
raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info)
Server Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 87, in send
return openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/usr/lib/pymodules/python2.7/openerp/netsvc.py", line 361, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 413, in dispatch
return fn(*params)
File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 424, in exp_authenticate
res_users = pooler.get_pool(db).get('res.users')
File "/usr/lib/pymodules/python2.7/openerp/pooler.py", line 50, in get_pool
return get_db_and_pool(db_name, force_demo, status, update_module)[1]
File "/usr/lib/pymodules/python2.7/openerp/pooler.py", line 33, in get_db_and_pool
registry = RegistryManager.get(db_name, force_demo, status, update_module, pooljobs)
File "/usr/lib/pymodules/python2.7/openerp/modules/registry.py", line 156, in get
update_module, pooljobs)
File "/usr/lib/pymodules/python2.7/openerp/modules/registry.py", line 178, in new
openerp.modules.load_modules(registry.db, force_demo, status, update_module)
File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 296, in load_modules
loaded_modules, processed_modules = load_module_graph(cr, graph, status, perform_checks=(not update_module), report=report)
File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 164, in load_module_graph
init_module_models(cr, package.name, models)
File "/usr/lib/pymodules/python2.7/openerp/modules/module.py", line 373, in init_module_models
result = obj._auto_init(cr, {'module': module_name})
File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 3211, in _auto_init
self._add_sql_constraints(cr)
File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 3350, in _add_sql_constraints
self._save_constraint(cr, conname, 'u')
File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 2859, in _save_constraint
""", (constraint_name, self._module))
File "/usr/lib/pymodules/python2.7/openerp/sql_db.py", line 162, in wrapper
return f(self, *args, **kwargs)
File "/usr/lib/pymodules/python2.7/openerp/sql_db.py", line 227, in execute
res = self._obj.execute(query, params)
ProgrammingError: relation "ir_model_constraint" does not exist
LINE 2: SELECT 1 FROM ir_model_constraint, ir_module_mod...
^
So I try to run it manually like:
sudo openerp-server stop
su - openerp
openerp-server -d openerp1 -u all
and I get
2012-12-07 07:00:43,417 7584 ERROR openerp1 openerp: Failed to initialize database `openerp1`.
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/openerp/cli/server.py", line 97, in preload_registry
db, registry = openerp.pooler.get_db_and_pool(dbname, update_module=openerp.tools.config['init'] or openerp.tools.config['update'], pooljobs=False)
File "/usr/lib/pymodules/python2.7/openerp/pooler.py", line 33, in get_db_and_pool
registry = RegistryManager.get(db_name, force_demo, status, update_module, pooljobs)
File "/usr/lib/pymodules/python2.7/openerp/modules/registry.py", line 156, in get
update_module, pooljobs)
File "/usr/lib/pymodules/python2.7/openerp/modules/registry.py", line 178, in new
openerp.modules.load_modules(registry.db, force_demo, status, update_module)
File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 296, in load_modules
loaded_modules, processed_modules = load_module_graph(cr, graph, status, perform_checks=(not update_module), report=report)
File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 164, in load_module_graph
init_module_models(cr, package.name, models)
File "/usr/lib/pymodules/python2.7/openerp/modules/module.py", line 373, in init_module_models
result = obj._auto_init(cr, {'module': module_name})
File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 3211, in _auto_init
self._add_sql_constraints(cr)
File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 3350, in _add_sql_constraints
self._save_constraint(cr, conname, 'u')
File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 2859, in _save_constraint
""", (constraint_name, self._module))
File "/usr/lib/pymodules/python2.7/openerp/sql_db.py", line 162, in wrapper
return f(self, *args, **kwargs)
File "/usr/lib/pymodules/python2.7/openerp/sql_db.py", line 227, in execute
res = self._obj.execute(query, params)
ProgrammingError: relation "ir_model_constraint" does not exist
LINE 2: SELECT 1 FROM ir_model_constraint, ir_module_mod...
What can I do, or should I have done to upgrade?

There is no free upgrade mechanism from OpenERP 6.0 to 7.0 for now. OpenERP SA makes a living by selling a commercial upgrade solution, for which you get a considerable discount if you have a yearly support contract with them.
Using -u all will probably attempt to upgrade you database schema, but il will not migrate your data (i.e. if a column was renamed, you will not get your data moved from the old column to the new one), and the views will not be migrated either : the new views with the same XML ids replace the old ones, new views are created, and old views are still there, possibly referencing fields which no longer exist. Basically your DB is now a total mess, and hopefully you have a backup which you can use to continue running v 6.0.

Did you have installed V6.1 too in the same machine?
This error happend when you have mixed old version modules and new ones.
I recommend install a Virtual Machine and try again on it, if im right, you ca unistall the package, delete all files (modules) related to the package and re-install.
If you need to repair database to old version, re-instal 6.1 or 6.0 and bring up your server with parameters -u all -d nameofdb.
Regards.

Related

Error with fetching chromium with fetch command

When I try to fetch chromium with the command it gives me a whole bunch of errors and at the end says "FileNotFoundError: [WinError 2] The system cannot find the file specified"
After the error occurred (output bellow) I tried to add the DEPOT_TOOLS_WIN_TOOLCHAIN to the system environment variables but after a restart nothing happened. Does anyone have a solution to this?
Error Output:
[0:00:00] Started.
Traceback (most recent call last):
File "C:\src\depot_tools\metrics.py", line 301, in print_notice_and_exit
yield
File "C:\src\depot_tools\gclient.py", line 3495, in <module>
sys.exit(main(sys.argv[1:]))
File "C:\src\depot_tools\gclient.py", line 3481, in main
return dispatcher.execute(OptionParser(), argv)
File "C:\src\depot_tools\subcommand.py", line 252, in execute
return command(parser, args[1:])
File "C:\src\depot_tools\gclient.py", line 3032, in CMDsync
ret = client.RunOnDeps('update', args)
File "C:\src\depot_tools\gclient.py", line 2026, in RunOnDeps
work_queue.flush(revision_overrides,
File "C:\src\depot_tools\gclient_utils.py", line 1016, in flush
reraise(e[0], e[1], e[2])
File "C:\src\depot_tools\gclient_utils.py", line 70, in reraise
raise value
File "C:\src\depot_tools\gclient_utils.py", line 1093, in run
self.item.run(*self.args, **self.kwargs)
File "C:\src\depot_tools\gclient.py", line 1005, in run
self._got_revision = self._used_scm.RunCommand(command, options, args,
File "C:\src\depot_tools\gclient_scm.py", line 128, in RunCommand
return getattr(self, command)(options, args, file_list)
File "C:\src\depot_tools\gclient_scm.py", line 610, in update
mirror = self._GetMirror(url, options, revision, revision_ref)
File "C:\src\depot_tools\gclient_scm.py", line 1060, in _GetMirror
if not self.cache_dir:
File "C:\src\depot_tools\gclient_scm.py", line 225, in cache_dir
return git_cache.Mirror.GetCachePath()
File "C:\src\depot_tools\git_cache.py", line 193, in GetCachePath
cachepath = subprocess.check_output(
File "C:\src\depot_tools\.cipd_bin\3.8\bin\Lib\subprocess.py", line 415, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "C:\src\depot_tools\.cipd_bin\3.8\bin\Lib\subprocess.py", line 493, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\src\depot_tools\.cipd_bin\3.8\bin\Lib\subprocess.py", line 858, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\src\depot_tools\.cipd_bin\3.8\bin\Lib\subprocess.py", line 1311, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
Subprocess failed with return code 1.
You should delete config DEPOT_TOOLS_UPDATE on environment.

Odoo 14: Point of Sale Installation Error

I have installed running Odoo 14 in Docker using the default setup without any additional customisations. For the past several days I've been trying to install the Point of Sale module from within Odoo with no success - every time I get the error below.
Could anyone please help me figure out what's wrong and get PoS working?
Thank you!
Odoo Server Error
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/usr/lib/python3/dist-packages/odoo/http.py", line 682, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 358, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 346, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 911, in __call__
return self.method(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 530, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1363, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1351, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 396, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 383, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "<decorator-gen-71>", line 2, in button_immediate_install
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 73, in check_and_log
return method(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 474, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 592, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 89, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 455, in load_modules
loaded_modules, update_module, models_to_check)
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 348, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 221, in load_module_graph
load_data(cr, idref, mode, kind='data', package=package)
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 69, in load_data
tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind)
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 733, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate)
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 799, in convert_xml_import
obj.parse(doc.getroot())
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 719, in parse
self._tag_root(de)
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 677, in _tag_root
f(rec)
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 684, in _tag_root
etree.tostring(rec, encoding='unicode').rstrip()
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/http.py", line 638, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 314, in _handle_exception
raise exception.with_traceback(None) from new_cause
odoo.tools.convert.ParseError: while parsing /usr/lib/python3/dist-packages/odoo/addons/point_of_sale/data/point_of_sale_data.xml:13, near
<record id="product_category_pos" model="product.category">
<field name="parent_id" ref="product.product_category_1"/>
<field name="name">PoS</field>
</record>
General advice
If you want to improve your chances of success, don't try to load any modules from other versions or third parties, and try to stick to the basic functionality, or try an older version, or packaging that is supported by another company, such as https://github.com/Elico-Corp/odoo-docker or a fork such as https://hub.docker.com/r/flectrahq/flectra/
If you really want to fix it...
It looks like you're using an incompatible version of the point-of-sale add-on.
You will need to start with Odoo's above average documentation: https://www.odoo.com/documentation/14.0/
Seeing as that you're dealing with a module, you will need to invest some time into https://www.odoo.com/documentation/14.0/howtos/backend.html
If you want to learn more about Python, give yourself a few months, and start with something like this: https://www.udemy.com/course/the-complete-python-course/ and then move on to https://subscription.packtpub.com/search?query=working%20with%20odoo%2011&released=Available
Sticking to trial-and-error...
To move your database, just go to the database manager: http://odoo:8069/web/database/manager#action=database_manager and export your database from there, then import it via the same URL on your new instance.
Some Odoo background
Besides the fact that any software sometimes introduce breaking changes, and that the internals of any ERP demand a high level of technical expertise, Odoo CE seems further disadvantaged by especially careless Odoo employees as "breaking changes" play into their tactic of motivating use their hosted service - which is their main revenue model. (Also evidenced by their effort to rewrite modules under a non-GPL licence.)
They clearly lack the faith in humanity that drives open source. Lets keep motivating them to share, help and open up. Open source is more than a cheap marketing gimmick: The power of open source comes from trust, and unconditional giving, which drives a much larger market that any number of corporations can handle.

Brand new odoo installation [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I have installed brand new odoo 10 version and getting this error. I have 2 odoo installations with 2 environmentalist odoo9 is working ok, but when i switch to odoo10 getting this error just after i run database and try to connect to localhost.
2017-04-20 19:20:21,036 5916 ERROR 10_blabla werkzeug: Error on request:
Traceback (most recent call last):
File "/home/grf/virtualenv/odoo/10.0/lib/python2.7/site-packages/werkzeug/serving.py", line 193, in run_wsgi
execute(self.server.app)
File "/home/grf/virtualenv/odoo/10.0/lib/python2.7/site-packages/werkzeug/serving.py", line 181, in execute
application_iter = app(environ, start_response)
File "/home/grf/vcs/odoo/odoo/service/server.py", line 246, in app
return self.app(e, s)
File "/home/grf/vcs/odoo/odoo/service/wsgi_server.py", line 184, in application
return application_unproxied(environ, start_response)
File "/home/grf/vcs/odoo/odoo/service/wsgi_server.py", line 170, in application_unproxied
result = handler(environ, start_response)
File "/home/grf/vcs/odoo/odoo/http.py", line 1306, in __call__
return self.dispatch(environ, start_response)
File "/home/grf/vcs/odoo/odoo/http.py", line 1280, in __call__
return self.app(environ, start_wrapped)
File "/home/grf/virtualenv/odoo/10.0/lib/python2.7/site-packages/werkzeug/wsgi.py", line 599, in __call__
return self.app(environ, start_response)
File "/home/grf/vcs/odoo/odoo/http.py", line 1471, in dispatch
result = ir_http._dispatch()
File "/home/grf/vcs/odoo/odoo/addons/base/ir/ir_http.py", line 199, in _dispatch
return cls._handle_exception(e)
File "/home/grf/vcs/odoo/odoo/addons/base/ir/ir_http.py", line 169, in _handle_exception
return request._handle_exception(exception)
File "/home/grf/vcs/odoo/odoo/http.py", line 766, in _handle_exception
return super(HttpRequest, self)._handle_exception(exception)
File "/home/grf/vcs/odoo/odoo/addons/base/ir/ir_http.py", line 195, in _dispatch
result = request.dispatch()
File "/home/grf/vcs/odoo/odoo/http.py", line 825, in dispatch
r = self._call_function(**self.params)
File "/home/grf/vcs/odoo/odoo/http.py", line 331, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/grf/vcs/odoo/odoo/service/model.py", line 119, in wrapper
return f(dbname, *args, **kwargs)
File "/home/grf/vcs/odoo/odoo/http.py", line 324, in checked_call
result = self.endpoint(*a, **kw)
File "/home/grf/vcs/odoo/odoo/http.py", line 933, in __call__
return self.method(*args, **kw)
File "/home/grf/vcs/odoo/odoo/http.py", line 504, in response_wrap
response = f(*args, **kw)
File "/home/grf/vcs/odoo/addons/web/controllers/main.py", line 440, in web_client
context = request.env['ir.http'].webclient_rendering_context()
AttributeError: 'ir.http' object has no attribute 'webclient_rendering_context'
UPDATE
1 more error
2017-04-21 06:13:04,897 4479 ERROR newdb odoo.modules.registry: Failed to load registry
Traceback (most recent call last):
File "/home/grf/vcs/odoo/odoo/modules/registry.py", line 78, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/home/grf/vcs/odoo/odoo/modules/loading.py", line 339, in load_modules
loaded_modules, update_module)
File "/home/grf/vcs/odoo/odoo/modules/loading.py", line 237, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "/home/grf/vcs/odoo/odoo/modules/loading.py", line 131, in load_module_graph
model_names = registry.load(cr, package)
File "/home/grf/vcs/odoo/odoo/modules/registry.py", line 261, in load
model = cls._build_model(self, cr)
File "/home/grf/vcs/odoo/odoo/models.py", line 540, in _build_model
raise TypeError("Model %r inherits from non-existing model %r." % (name, parent))
TypeError: Model 'ir.qweb.widget.precision' inherits from non-existing model 'ir.qweb.widget'.
2017-04-21 06:13:04,900 4479 CRITICAL newdb odoo.service.server: Failed to initialize database `newdb`.
Traceback (most recent call last):
File "/home/grf/vcs/odoo/odoo/service/server.py", line 898, in preload_registries
registry = Registry.new(dbname, update_module=update_module)
File "/home/grf/vcs/odoo/odoo/modules/registry.py", line 78, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/home/grf/vcs/odoo/odoo/modules/loading.py", line 339, in load_modules
loaded_modules, update_module)
File "/home/grf/vcs/odoo/odoo/modules/loading.py", line 237, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "/home/grf/vcs/odoo/odoo/modules/loading.py", line 131, in load_module_graph
model_names = registry.load(cr, package)
File "/home/grf/vcs/odoo/odoo/modules/registry.py", line 261, in load
model = cls._build_model(self, cr)
File "/home/grf/vcs/odoo/odoo/models.py", line 540, in _build_model
raise TypeError("Model %r inherits from non-existing model %r." % (name, parent))
TypeError: Model 'ir.qweb.widget.precision' inherits from non-existing model 'ir.qweb.widget'.
Clear your browser cookies then check.
Just check your port of config file and also check weather it is taking correct database or not means for odoo10 you have created new database. Check database while running odoo10 and make sure it only takes database which you created for running odoo10.
You can enter db_filter field in your config file to make sure that server is running on new database. Before running new server make sure you logout from your last database where odoo9 is running.
If you still facing issue just let me know. I will try my best to solve your issue.
Find it, odoo can't find ir.qweb.widget model.
Check your odoo addons folder.
Check that it is odoo-10 or not.
Try to run with --load=web command line argument.

Getting error while installing module

I am getting this error while installing new module. I have updated module list several time in order to resolve the issue. but no hope. here is the trace i am facing on my terminal.
2015-09-01 11:59:30,947 24953 ERROR software_001 openerp.http: Exception during JSON request handling.
Traceback (most recent call last):
File "/home/software/ws/odoo/80/openerp/http.py", line 537, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/software/ws/odoo/80/openerp/http.py", line 574, in dispatch
result = self._call_function(**self.params)
File "/home/software/ws/odoo/80/openerp/http.py", line 310, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/software/ws/odoo/80/openerp/service/model.py", line 113, in wrapper
return f(dbname, *args, **kwargs)
File "/home/software/ws/odoo/80/openerp/addons/base/module/module.py", line 494, in _button_immediate_function
registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)
File "/home/software/ws/odoo/80/openerp/modules/registry.py", line 370, in new
openerp.modules.load_modules(registry._db, force_demo, status, update_module)
File "/home/software/ws/odoo/80/openerp/modules/loading.py", line 355, in load_modules
loaded_modules, update_module)
File "/home/software/ws/odoo/80/openerp/modules/loading.py", line 255, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "/home/software/ws/odoo/80/openerp/modules/loading.py", line 176, in load_module_graph
_load_data(cr, module_name, idref, mode, kind='data')
File "/home/software/ws/odoo/80/openerp/modules/loading.py", line 118, in _load_data
tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
File "/home/software/ws/odoo/80/openerp/tools/convert.py", line 892, in convert_file
fp = misc.file_open(pathname)
File "/home/software/ws/odoo/80/openerp/tools/misc.py", line 199, in file_open
return _fileopen(name, mode=mode, basedir=rtp, pathinfo=pathinfo, basename=basename)
File "/home/software/ws/odoo/80/openerp/tools/misc.py", line 246, in _fileopen
raise IOError('File not found: %s' % basename)
IOError: File not found: test_module/
I have checked each file, but no clues.
One possible way of this kind of error is blank data in __openerp__.py file.
you should check __openerp__.py file. blank value in data list will cause this kind of error. remove ' ' or " " from data list.
{'name': 'Odoo Test',
'version': '0.0.1',
'category': 'Generic Modules/Others',
'license': 'AGPL-3',
'author': "atularvind",
'website': 'http://www.atularvind.com/',
'depends': [],
'data': ['test_view.xml'],# [] instead of ["",]
'demo': [],
'installable': True,
}
You're Not allowing to install Module just Because of Security reason, Your Module Operation Not Permitted...!!
So Need to do Just One Thing is Give File Permissions to Particular Module Using Chmod 777.
Go To root>> cd /home/odoo/addons/browseinfo/
Now Type Command==>> chmod 777 -R browseinfo/
That'it, You sets the permission of a file/Folder...!!!
Restart Your Server & Install/Upgrade Your Module...!!!

BadStatusLine: '' error on deleting google calendar event from python code

I've successfully created and updated the calendar events from python. And the below is my code to delete an event from python code.
def delete_google_event(self, cr, uid, task, user):
g_client = gtools.gcal.google_calendar_interface()
g_client.connect(user.google_email, user.google_password)
g_client.delete(task.google_event_id)
message = "Google event deleted, old id: %s" % (task.google_event_id)
I get the below error when using the above code. From the error message BadStatusLine: '' i understand that i receive a request from the server that system do not understand. But not sure how to solve it. And also the error seems to be with google cal API. Will there be any versioning prob? (i do it in openerp and i guess it's not a problem of openerp)
{/usr/lib/python2.7/dist-packages/gtools/gcal.py} deleting http://www.google.com/calendar/feeds/default/private/full/fpdoqrq4q5rroggkn2uaamojb0
{/usr/lib/python2.7/dist-packages/gtools/gcal.py} quering element uri: http://www.google.com/calendar/feeds/default/private/full/fpdoqrq4q5rroggkn2uaamojb0
!!!!http://localhost:9888/
!!!!
!!!!http://localhost:9888/
!!!!http://localhost:9888/
!!!!
!!!!http://localhost:9888/
2013-09-02 12:21:16,945 17720 ERROR jul-16-7575-t1 openerp.osv.osv: Uncaught exception
Traceback (most recent call last):
File "/opt/workspace/openerp space/openerp-7.0-20130716-231027/openerp/osv/osv.py", line 131, in wrapper
return f(self, dbname, *args, **kwargs)
File "/opt/workspace/openerp space/openerp-7.0-20130716-231027/openerp/osv/osv.py", line 197, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/opt/workspace/openerp space/openerp-7.0-20130716-231027/openerp/osv/osv.py", line 185, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/opt/workspace/openerp space/openerp-7.0-20130716-231027/openerp/addons/google_calendar_task_sync/project_google_calendar.py", line 67, in unlink
self.delete_google_event(cr, uid, task, goog_uid)
File "/opt/workspace/openerp space/openerp-7.0-20130716-231027/openerp/addons/google_calendar_task_sync/project_google_calendar.py", line 92, in delete_google_event
g_client.delete(task.google_event_id)
File "/usr/lib/python2.7/dist-packages/gtools/gcal.py", line 78, in delete
self.cal_srv.DeleteEvent(event_uri)
File "/usr/lib/pymodules/python2.7/gdata/calendar/service.py", line 313, in DeleteEvent
url_params=url_params, escape_params=escape_params)
File "/usr/lib/pymodules/python2.7/gdata/service.py", line 1429, in Delete
headers=extra_headers, url_params=url_params)
File "/usr/lib/pymodules/python2.7/atom/__init__.py", line 92, in optional_warn_function
return f(*args, **kwargs)
File "/usr/lib/pymodules/python2.7/atom/service.py", line 185, in request
data=data, headers=all_headers)
File "/usr/lib/pymodules/python2.7/gdata/auth.py", line 725, in perform_request
return http_client.request(operation, url, data=data, headers=headers)
File "/usr/lib/pymodules/python2.7/atom/http.py", line 174, in request
return connection.getresponse()
File "/usr/lib/python2.7/httplib.py", line 1030, in getresponse
response.begin()
File "/usr/lib/python2.7/httplib.py", line 407, in begin
version, status, reason = self._read_status()
File "/usr/lib/python2.7/httplib.py", line 371, in _read_status
raise BadStatusLine(line)
BadStatusLine: ''
I've referred this link Why am I getting this error in python ? (httplib). Still not sure of the prob. Kindly give me some clues to fix this. Thanks a lot for your time.
Hurrah!! It works fine in the Direct Connection. But not under proxy.