yaltik_odoo_custom/dbfilter_from_config/__manifest__.py
2022-04-18 08:40:36 +02:00

38 lines
1.5 KiB
Python

# -*- coding: utf-8 -*-
# Copyright 2022 Fabien Bourgeois <fabien@yaltik.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
{
'name': 'DBFilter from configuration',
'summary': 'Database filtering from configuration',
'description': """ Database filtering from configuration :
- use Odoo own filtering mechanism fist ;
- then apply configuration : `domains_to_databases` : string in form of `database:domain1,domain2|database2:domain3`.
Needs to be added to `server_wide_modules` on configuration or `--load`,
for example `server_wide_modules = base,web,dbfilter_from_config`.
Also required : `proxy_mode` to `True`
Inspired from OCA `dbfilter_from_header`.""",
'version': '12.0.0.0.6',
'category': 'Yaltik',
'author': 'Fabien Bourgeois',
'license': 'AGPL-3',
'application': False,
'installable': True,
'depends': ['base']
}