Skip to content

Instantly share code, notes, and snippets.

View bealdav's full-sized avatar

David Beal bealdav

  • Akretion
  • Lyon
View GitHub Profile
@bealdav
bealdav / http.py
Created August 19, 2020 14:58 — forked from rvalyi/http.py
import logging
import odoo
from odoo import http
from odoo.tools import config
_logger = logging.getLogger(__name__)
# similar to odoo.http.db_monodb but forcing the PRODUCTION_DB database
# in case there are several databases and request (like portal/website)