You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
2.6 KiB

  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. 'name': 'Configuration Helper',
  23. 'version': '0.8',
  24. 'author': 'Akretion',
  25. 'maintainer': 'Akretion',
  26. 'category': 'server',
  27. 'complexity': 'normal',
  28. 'depends': ['base'],
  29. 'description': """
  30. Configuration Helper
  31. ====================
  32. *This module is intended for developer only. It does nothing used alone.*
  33. This module :
  34. * create automatically related fields in 'whatiwant.config.settings' using
  35. those defined in 'res.company' : it avoid duplicated field definitions.
  36. * company_id field with default value is created
  37. * onchange_company_id is defined to update all related fields
  38. * supported fields: char, text, integer, float, datetime, date, boolean, m2o
  39. How to use
  40. ----------
  41. .. code-block:: python
  42. from . company import ResCompany
  43. class WhatiwantClassSettings(orm.TransientModel):
  44. _inherit = ['res.config.settings', 'abstract.config.settings']
  45. _name = 'whatiwant.config.settings'
  46. # fields must be defined in ResCompany class
  47. # related fields are automatically generated from previous definitions
  48. _companyObject = ResCompany
  49. Roadmap
  50. -------
  51. * support (or check support) for these field types : o2m, m2m, reference,
  52. property, selection
  53. * automatically generate a default view for 'whatiwant.config.settings'
  54. (in --debug?)
  55. Contributors
  56. ------------
  57. * David BEAL <david.beal@akretion.com>
  58. * Sébastien BEAU <sebastien.beau@akretion.com>
  59. * Yannick Vaucher, Camptocamp, (code refactoring from his module
  60. 'delivery_carrier_label_postlogistics')
  61. """,
  62. 'website': 'http://www.akretion.com/',
  63. 'data': [
  64. ],
  65. 'tests': [],
  66. 'installable': True,
  67. 'auto_install': False,
  68. 'license': 'AGPL-3',
  69. 'application': True,
  70. }