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.

73 lines
2.5 KiB

  1. ###################################################################################
  2. #
  3. # Copyright (c) 2017-2019 MuK IT GmbH.
  4. #
  5. # This file is part of MuK Backend Theme
  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 models, fields
  23. class ResCompany(models.Model):
  24. _inherit = 'res.company'
  25. #----------------------------------------------------------
  26. # Database
  27. #----------------------------------------------------------
  28. background_image = fields.Binary(
  29. string="Apps Menu Background Image",
  30. attachment=True)
  31. background_blend_mode = fields.Selection(
  32. selection=[
  33. ('normal', 'Normal'),
  34. ('multiply', 'Multiply'),
  35. ('screen', 'Screen'),
  36. ('overlay', 'Overlay'),
  37. ('hard-light', 'Hard-light'),
  38. ('darken', 'Darken'),
  39. ('lighten', 'Lighten'),
  40. ('color-dodge', 'Color-dodge'),
  41. ('color-burn', 'Color-burn'),
  42. ('hard-light', 'Hard-light'),
  43. ('difference', 'Difference'),
  44. ('exclusion', 'Exclusion'),
  45. ('hue', 'Hue'),
  46. ('saturation', 'Saturation'),
  47. ('color', 'Color'),
  48. ('luminosity', 'Luminosity'),
  49. ],
  50. string="Apps Menu Background Blend Mode",
  51. default='normal')
  52. default_sidebar_preference = fields.Selection(
  53. selection=[
  54. ('invisible', 'Invisible'),
  55. ('small', 'Small'),
  56. ('large', 'Large')
  57. ],
  58. string="Sidebar Type",
  59. default='small')
  60. default_chatter_preference = fields.Selection(
  61. selection=[
  62. ('normal', 'Normal'),
  63. ('sided', 'Sided'),
  64. ],
  65. string="Chatter Position",
  66. default='sided')