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

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)])
        response.data = slide_slide_obj.datas and slide_slide_obj.datas.decode('base64') or ''
        response.mimetype = 'application/pdf'
        return response

show filename of binary files odoo

Pyhton Code

class MyModel(models.Model):
    _name = 'my.model'

    image = fields.Binary('Image', required=True)
    image_filename = fields.Char("Image Filename")

XML File

<record id="view_form_my_model" model="ir.ui.view">
  <field name="name">My Model Form</field>
  <field name="model">my.model</field>
  <field name="arch" type="xml">
        <group name="group_top">
          <group name="group_left">
            <field name="image_filename" invisible="0"/>
            <field widget="binary" height="64" name="image" filename="image_filename" />
          <group name="group_right">