How to git clone without SSL Verify ?

git config http.sslVerify false

in your specific repo to disable SSL certificate checking for that repo only.

In case you don’t have a git repo yet then you can modify the global config

git config --global http.sslVerify false

OSError: [Errno 98] Address already in use

odoo@odoo-11:~/odoo$ ps -fA | grep python

root 1680 1 1 09:16 ? 00:00:01 /usr/bin/python3 /usr/sbin/aptd
odoo 2369 2350 0 09:19 pts/10 00:00:00 grep python
odoo 5760 1 0 يون10 ? 00:01:07 python3 ./odoo-bin -d hr

odoo@odoo-11:~/odoo$ sudo kill 1680
odoo@odoo-11:~/odoo$ sudo kill 2369
odoo@odoo-11:~/odoo$ sudo kill 5760

How to Reset Encrypted Password for Admin User in Odoo v8, v9, v10 and v11?

Login as postgres user:

sudo su postgres;

Switch to the database in question:

psql <databaseName>;

List all users with their passwords:

select * from res_users;

Now copy the password and use it in the following command:

update res_users set password_crypt = ‘<copiedPasswordFromAbove>’ where id = ‘1’;

That’s it. Go and login with username admin and password you used to register the user in the first place.

If it helped you… don’t forget to share this post on your wall. It may be helpful to someone else.

Dump Postgresql

Dump DB
$ sudo pg_dump --no-owner db_name > /opt/db_name.sql or .dump

Restore DB
$ sudo su postgres
$ psql
$ create database db_name;
$ psql db_name > db_name.sql
Dump DB
$ sudo pg_dump --no-owner db_name | gzip > /opt/db_name.sql.gz

Restore DB
createdb  db_name -T template1 -U odoo -h localhost
zless db_name.sql.gz | psql db_name

VirtualBox can’t find host-only adapters on Windows 10

I get the same results when using the command lines tools. The creation of new interfaces works without problems:

C:\> VBoxManage.exe hostonlyif create
Interface 'VirtualBox Host-Only Ethernet Adapter #5' was successfully created

But VirtualBox can’t find the adapters, as the following command does not return any output:

$ VBoxManage.exe list hostonlyifs

open binary data (pdf) using controller odoo

URL :-

import base64
import logging
import werkzeug

from odoo import http, _
from odoo.exceptions import AccessError, UserError
from odoo.http import request

class DownloadPDF(http.Controller):

    @http.route('/web/binary/download_pdf/<id>', type='http', auth="public",website=True)
    def download_pdf(self,id,**kw):        
        response = werkzeug.wrappers.Response()
        slide_slide_obj = request.env['slide.slide'].sudo().search([('id','=',id)]) = slide_slide_obj.datas and slide_slide_obj.datas.decode('base64') or ''
        response.mimetype = 'application/pdf'
        return response