Files
odoo_source/debian/control
T
Julien Castiaux c59750d824 [IMP] core: smarter geoip
Maxmind offers multiple ip-geolocalization databases, historically we
have been using the City database which contains records on a
city-basis. Many years later it turns out we are primary using geoip to
know the country of the user. Geolocalization in the City database is
considered slow by our standard and we have been clever in order not to
geolocate each request by saving the info in the session.

On the other hand, the Country database that is offered by Maxmind is
much more lightweight and geoip using that country is considered a fast
operation by our standard.

In this work we make Odoo compatible with both the City and the Country
databases. Using multiple database at the same time, we can be smart and
only query each of the two on-demand. If a user ask for its country,
we'll use the fast Country db. If a user ask for its city/timezone we'll
use the slower City db.

By default it loads both database from the `/usr/share/GeoIP/` folder,
respectively the files `GeoLite2-City.mmdb` and `GeoLite2-Country.mmdb`,
you can provide alternative paths using the `--geoip-city-db` and
`--geoip-country-db` CLI options.

In the same mindset as #86015, geoip is still lazy. It is done on-demand
and the result is cached on the current request. The different with the
related PR is that as we know consider geoip to be fast, we no longer
cache the result in the session.

Task: 2848206
Part-of: odoo/odoo#91337
2023-01-03 13:16:02 +01:00

75 lines
2.1 KiB
Plaintext

Source: odoo
Section: net
Priority: optional
Maintainer: Odoo S.A. <info@odoo.com>
Uploaders: Aaron Bohy <aab@odoo.com>, Simon Lejeune <sle@odoo.com>
Build-Depends: debhelper-compat (= 12), dh-python, python3, rsync, python3-setuptools
Standards-Version: 4.5.0
Homepage: http://www.odoo.com/
Vcs-Git: https://github.com/odoo/odoo
Vcs-Browser: https://github.com/odoo/odoo
Package: odoo
Architecture: all
Depends:
${misc:Depends},
${python3:Depends},
adduser,
# support for multilingual fonts
fonts-dejavu-core | fonts-freefont-ttf | fonts-freefont-otf | fonts-noto-core,
fonts-inconsolata,
fonts-font-awesome,
fonts-roboto-unhinted,
gsfonts,
libjs-underscore,
lsb-base,
postgresql-client,
python3-babel,
python3-chardet,
python3-dateutil,
python3-decorator,
python3-docutils,
python3-freezegun,
python3-geoip2,
python3-pil,
python3-jinja2,
python3-libsass,
python3-lxml,
python3-num2words,
python3-ofxparse,
python3-passlib,
python3-polib,
python3-psutil,
python3-psycopg2,
python3-pydot,
python3-openssl,
python3-pypdf2,
python3-qrcode,
python3-renderpm,
python3-reportlab,
python3-requests,
python3-stdnum,
python3-tz,
python3-vobject,
python3-werkzeug,
python3-xlsxwriter,
python3-xlrd,
python3-zeep,
Pre-Depends: ${misc:Pre-Depends}
Conflicts: tinyerp-server, openerp-server, openerp-web, openerp
Replaces: tinyerp-server, openerp-server, openerp-web, openerp
Recommends:
${python3:Recommends},
postgresql,
python3-ldap,
Description: Open Source Apps To Grow Your Business
Odoo, formerly known as OpenERP, is a suite of open-source business apps
written in Python and released under the LGPLv3 license. This suite of
applications covers all business needs, from Website/Ecommerce down to
manufacturing, inventory and accounting, all seamlessly integrated. Odoo's
technical features include a distributed server, flexible workflows, an object
database, a dynamic GUI, customizable reports, and an XML-RPC interface. Odoo
is the most installed business software in the world. It is used by 2.000.000
users worldwide ranging from very small companies (1 user) to very large ones
(300 000 users).