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.

66 lines
2.6 KiB

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