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.

82 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,Odoo Community Association (OCA)",
  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'
  35. using 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, property, selection
  52. * automatically generate a default view for 'whatiwant.config.settings' (in --debug ?)
  53. Contributors
  54. ------------
  55. * David BEAL <david.beal@akretion.com>
  56. * Sébastien BEAU <sebastien.beau@akretion.com>
  57. * Yannick Vaucher, Camptocamp, (code refactoring from his module 'delivery_carrier_label_postlogistics')
  58. """,
  59. 'website': 'http://www.akretion.com/',
  60. 'data': [
  61. ],
  62. 'tests': [],
  63. 'installable': False,
  64. 'auto_install': False,
  65. 'license': 'AGPL-3',
  66. 'application': True,
  67. }