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.

79 lines
2.5 KiB

  1. ###################################################################################
  2. #
  3. # Copyright (c) 2017-today MuK IT GmbH.
  4. #
  5. # This file is part of MuK Grid Snippets
  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. )
  32. background_blend_mode = fields.Selection(
  33. selection=[
  34. ('normal', 'Normal'),
  35. ('multiply', 'Multiply'),
  36. ('screen', 'Screen'),
  37. ('overlay', 'Overlay'),
  38. ('hard-light', 'Hard-light'),
  39. ('darken', 'Darken'),
  40. ('lighten', 'Lighten'),
  41. ('color-dodge', 'Color-dodge'),
  42. ('color-burn', 'Color-burn'),
  43. ('hard-light', 'Hard-light'),
  44. ('difference', 'Difference'),
  45. ('exclusion', 'Exclusion'),
  46. ('hue', 'Hue'),
  47. ('saturation', 'Saturation'),
  48. ('color', 'Color'),
  49. ('luminosity', 'Luminosity'),
  50. ],
  51. string="Apps Menu Background Blend Mode",
  52. default='normal'
  53. )
  54. default_sidebar_preference = fields.Selection(
  55. selection=[
  56. ('invisible', 'Invisible'),
  57. ('small', 'Small'),
  58. ('large', 'Large')
  59. ],
  60. string="Sidebar Type",
  61. default='small'
  62. )
  63. default_chatter_preference = fields.Selection(
  64. selection=[
  65. ('normal', 'Normal'),
  66. ('sided', 'Sided'),
  67. ],
  68. string="Chatter Position",
  69. default='sided'
  70. )