~ovnicraft/web-addons/6.1-web_report_name

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# -*- coding: utf-8 -*-
##############################################################################
#
#    OpenERP, Open Source Management Solution
#    This module copyright (C) 2013 Therp BV (<http://therp.nl>).
#
#    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": "Web: allow import of models with '_inherits'",
    "version": "1.0r1",
    "author": "Therp BV",
    "category": "Tools",
    "depends": ['web'],
    "description": """
When a model has its '_inherits' defined, the associated fields are always
set to 'required'. These models cannot be imported in the web client 6.1
because the web client insists that these fields be present in the import
file. See https://bugs.launchpad.net/bugs/930318.

This module makes the web client query the content of a model's
'_inherits' so that it can exclude them from the required fields at import
time.

Due to the applied method of 'monkey patching', the installation of this
module on one database will affect all databases on the same OpenERP
installation.

This bug does not affect OpenERP 7.0, in which the import function has
been refactored.
    """,
    'js': [
        'static/src/js/data_import.js',
        ],
}