|
1 | 1 | # -*- coding: utf-8 -*-
|
2 |
| -############################################################################## |
3 |
| -# |
4 |
| -# Author: David BEAL |
5 |
| -# Copyright 2014 Akretion |
6 |
| -# |
7 |
| -# This program is free software: you can redistribute it and/or modify |
8 |
| -# it under the terms of the GNU Affero General Public License as |
9 |
| -# published by the Free Software Foundation, either version 3 of the |
10 |
| -# License, or (at your option) any later version. |
11 |
| -# |
12 |
| -# This program is distributed in the hope that it will be useful, |
13 |
| -# but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 |
| -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 |
| -# GNU Affero General Public License for more details. |
16 |
| -# |
17 |
| -# You should have received a copy of the GNU Affero General Public License |
18 |
| -# along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 |
| -# |
20 |
| -############################################################################## |
21 |
| - |
22 |
| -{ |
23 |
| - 'name': 'Configuration Helper', |
24 |
| - 'version': '0.8', |
25 |
| - 'author': "Akretion,Odoo Community Association (OCA)", |
26 |
| - 'maintainer': 'Akretion', |
27 |
| - 'category': 'server', |
28 |
| - 'complexity': 'normal', |
29 |
| - 'depends': ['base'], |
30 |
| - 'description': """ |
31 |
| -Configuration Helper |
32 |
| -==================== |
33 |
| -
|
34 |
| -*This module is intended for developer only. It does nothing used alone.* |
35 |
| -
|
36 |
| -This module : |
37 |
| -
|
38 |
| - * create automatically related fields in 'whatiwant.config.settings' |
39 |
| - using those defined in 'res.company' : it avoid duplicated field definitions. |
40 |
| - * company_id field with default value is created |
41 |
| - * onchange_company_id is defined to update all related fields |
42 |
| - * supported fields: char, text, integer, float, datetime, date, boolean, m2o |
43 |
| -
|
44 |
| -
|
45 |
| -How to use |
46 |
| ----------- |
47 |
| -
|
48 |
| -.. code-block:: python |
49 |
| -
|
50 |
| - from . company import ResCompany |
51 |
| -
|
52 |
| - class WhatiwantClassSettings(orm.TransientModel): |
53 |
| - _inherit = ['res.config.settings', 'abstract.config.settings'] |
54 |
| - _name = 'whatiwant.config.settings' |
55 |
| - # fields must be defined in ResCompany class |
56 |
| - # related fields are automatically generated from previous definitions |
57 |
| - _companyObject = ResCompany |
58 |
| -
|
59 |
| -
|
60 |
| -Roadmap |
61 |
| -------- |
62 |
| - * support (or check support) for these field types : o2m, m2m, reference, property, selection |
63 |
| - * automatically generate a default view for 'whatiwant.config.settings' (in --debug ?) |
64 |
| -
|
65 |
| -
|
66 |
| -Contributors |
67 |
| ------------- |
68 |
| -
|
69 |
| -* David BEAL <david.beal@akretion.com> |
70 |
| -* Sébastien BEAU <sebastien.beau@akretion.com> |
71 |
| -* Yannick Vaucher, Camptocamp, (code refactoring from his module 'delivery_carrier_label_postlogistics') |
72 |
| -
|
73 |
| - """, |
74 |
| - 'website': 'http://www.akretion.com/', |
75 |
| - 'data': [ |
76 |
| - ], |
77 |
| - 'tests': [], |
78 |
| - 'installable': False, |
79 |
| - 'auto_install': False, |
80 |
| - 'license': 'AGPL-3', |
81 |
| - 'application': True, |
82 |
| -} |
| 2 | +# © 2014 David BEAL Akretion |
| 3 | +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
| 4 | +{'name': 'Configuration Helper', |
| 5 | + 'version': '9.0.1.0.0', |
| 6 | + 'author': "Akretion,Odoo Community Association (OCA)", |
| 7 | + 'maintainer': 'Akretion', |
| 8 | + 'category': 'server', |
| 9 | + 'complexity': 'normal', |
| 10 | + 'depends': ['base'], |
| 11 | + 'website': 'http://www.akretion.com/', |
| 12 | + 'data': [], |
| 13 | + 'tests': [], |
| 14 | + 'installable': True, |
| 15 | + 'auto_install': False, |
| 16 | + 'license': 'AGPL-3', |
| 17 | + 'application': False, |
| 18 | + } |
0 commit comments