minhng92 / odoo-16-docker-compose Goto Github PK
View Code? Open in Web Editor NEWSet up Odoo 16 (released 2022) quickly for development/production using Docker Compose.
Set up Odoo 16 (released 2022) quickly for development/production using Docker Compose.
The icons that appear in the preview do not appear in the PDF file when I download it.
HI
I was wondering if someone could shed somelight,
Currently i having nginx reverse proxy which goes to odoo but for some reason every time i try to login it goes back to the IP address
i also tried changing on odoo the web base url but it keeps changing back to the IP?
Thank you
Hi, currently I'm running your odoo-16-docker-compose, and it is running well and open normally via browser : http://localhost:10016
How can I go to Odoo shell, like I've read on odoo tutorial :
$ odoo shell -c odoo.conf -d db_training
I've tried with this command :
$ docker exec -it odoo16-docker-compose bash -c "odoo shell -c /etc/odoo/odoo.conf -d db_training"
but it gave an error :
File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 64, in new
return cls.registries[db_name]
File "", line 2, in getitem
File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 87, in locked
return func(inst, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/tools/lru.py", line 34, in getitem
a = self.d[obj]
KeyError: 'db_training'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/odoo", line 8, in
odoo.cli.main()
File "/usr/lib/python3/dist-packages/odoo/cli/command.py", line 66, in main
o.run(args)
File "/usr/lib/python3/dist-packages/odoo/cli/shell.py", line 123, in run
self.shell(config['db_name'])
File "/usr/lib/python3/dist-packages/odoo/cli/shell.py", line 109, in shell
registry = odoo.registry(dbname)
File "/usr/lib/python3/dist-packages/odoo/init.py", line 104, in registry
return modules.registry.Registry(database_name)
File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 66, in new
return cls.new(db_name)
File "", line 2, in new
File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 87, in locked
return func(inst, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 78, in new
registry.init(db_name)
File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 159, in init
with closing(self.cursor()) as cr:
File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 852, in cursor
return self._db.cursor()
File "/usr/lib/python3/dist-packages/odoo/sql_db.py", line 740, in cursor
return Cursor(self.__pool, self.__dbname, self.__dsn)
File "/usr/lib/python3/dist-packages/odoo/sql_db.py", line 267, in init
self._cnx = pool.borrow(dsn)
File "", line 2, in borrow
File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 87, in locked
return func(inst, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/sql_db.py", line 668, in borrow
result = psycopg2.connect(
File "/usr/lib/python3/dist-packages/psycopg2/init.py", line 127, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
Is the server running locally and accepting connections on that socket?
I don't know if this happens only to me 😟 when you try to print any document (quotation, sales order, purchase order,...) it keeps spinning and nothing happens. If you refresh the page, it still responds properly. I have tried all of your odoo repo (from 13 to 16) and the same things happens (or maybe I have done something wrongly because that task is pretty basic, I've used your 1-command script install).
Hope you doing well!
I'm running odoo-16-docker-compose and I'd like to upgrade to enterprise version. Please advise how to do it.
I want to do like
python3 odoo-bin --addons-path=/Users/khantnyar/Downloads/odoo/odoo/addons -d odoo16db -i base -c odoo.conf
everything is fine with your compose but I want to add -I base how can I do this ?
I am using Docker with a container for version 16 on Ubuntu 22.4 with nginx server by nginx manager
I did a search on the forum and found that a line should be added to the config file
add_header 'Content-Security-Policy' 'upgrade-insecure-requests';
But the problem was not solved
wkhtml2pdf needs to be updated, it still doesn't display the right way... like a missing logo, box etc...
is there a way of adding appropriate wkhtmltopdf in docker ?
First, congratulations for your work it help a lot of people
second, you can give some advice how to include a layer for vscode debugging into the instances generated from your dockerfiles?
third, i've tried to change the logleve on odoo.conf, but it dont have any effects in the logfile, is there something else that can be made?
Hi How do we update the ODoo version.
curl -s https://raw.githubusercontent.com/minhng92/odoo-16-docker-compose/master/run.sh | sudo bash -s odoo-one 10016 20016
Is this the latest Odoo 16
the run.sh script uses docker-compose command which is deprecated in the latest release.
Does anyone have this problem
i have restored my database from odoo sh. so using enterprise addons
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 1987, in call
response = request._serve_db()
File "/usr/lib/python3/dist-packages/odoo/http.py", line 1583, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 134, in retrying
result = func()
File "/usr/lib/python3/dist-packages/odoo/http.py", line 1610, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 1723, in dispatch
return self.request.registry['ir.http']._dispatch(endpoint)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 156, in _dispatch
result.flatten()
File "/usr/lib/python3/dist-packages/odoo/http.py", line 1098, in flatten
self.response.append(self.render())
File "/usr/lib/python3/dist-packages/odoo/http.py", line 1090, in render
return request.env["ir.ui.view"]._render_template(self.template, self.qcontext)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 2128, in _render_template
return self.env['ir.qweb']._render(template, values)
File "/usr/lib/python3/dist-packages/odoo/tools/profiler.py", line 292, in _tracked_method_render
return method_render(self, template, values, **options)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_qweb.py", line 580, in _render
result = ''.join(rendering)
File "<190>", line 329, in template_190
odoo.addons.base.models.ir_qweb.QWebException: Error while render the template
ValueError: L'élément '' ne peut être localisé dans la vue parente
Template: web.webclient_bootstrap
Path: /t/t/t[1]/t[4]
Node:
2023-09-05 13:08:35,712 1 INFO werkzeug: 172.24.0.1 - - [05/Sep/2023 13:08:35] "GET /web HTTP/1.1" 500 - 157 0.191 4.618
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.