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.

71 lines
2.8 KiB

  1. ###################################################################################
  2. #
  3. # Copyright (C) 2017 MuK IT GmbH
  4. #
  5. # This program is free software: you can redistribute it and/or modify
  6. # it under the terms of the GNU Affero General Public License as
  7. # published by the Free Software Foundation, either version 3 of the
  8. # License, or (at your option) any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU Affero General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU Affero General Public License
  16. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. #
  18. ###################################################################################
  19. from odoo import api, fields, models
  20. class ResConfigSettings(models.TransientModel):
  21. _inherit = 'res.config.settings'
  22. module_muk_web_preview_audio = fields.Boolean(
  23. string="Preview Audio",
  24. help="Extendes the Preview Dialog to support audio.")
  25. module_muk_web_preview_csv = fields.Boolean(
  26. string="Preview CSV",
  27. help="Extendes the Preview Dialog to support csv files.")
  28. module_muk_web_preview_image = fields.Boolean(
  29. string="Preview Image",
  30. help="Extendes the Preview Dialog to support image files.")
  31. module_muk_web_preview_mail = fields.Boolean(
  32. string="Preview Mail",
  33. help="Extendes the Preview Dialog to support mails.")
  34. module_muk_web_preview_markdown = fields.Boolean(
  35. string="Preview Markdown",
  36. help="Extendes the Preview Dialog to support markdown files.")
  37. module_muk_web_preview_msoffice = fields.Boolean(
  38. string="Preview MS Office",
  39. help="Extendes the Preview Dialog to support office files.")
  40. module_muk_web_preview_opendocument = fields.Boolean(
  41. string="Preview Open Document",
  42. help="Extendes the Preview Dialog to support open document files.")
  43. module_muk_web_preview_rtf = fields.Boolean(
  44. string="Preview RTF",
  45. help="Extendes the Preview Dialog to support RTF files.")
  46. module_muk_web_preview_rst = fields.Boolean(
  47. string="Preview ReStructuredText",
  48. help="Extendes the Preview Dialog to support reStructuredText.")
  49. module_muk_web_preview_text = fields.Boolean(
  50. string="Preview Text",
  51. help="Extendes the Preview Dialog to support text files.")
  52. module_muk_web_preview_vector = fields.Boolean(
  53. string="Preview Vector",
  54. help="Extendes the Preview Dialog to support vector files.")
  55. module_muk_web_preview_video = fields.Boolean(
  56. string="Preview Video",
  57. help="Extendes the Preview Dialog to support video files.")