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.

50 lines
1.3 KiB

  1. # Copyright 2017-2019 Therp BV <https://therp.nl>
  2. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
  3. from odoo import fields, models
  4. class ResCompany(models.Model):
  5. _inherit = "res.company"
  6. partner_labels_width = fields.Float(
  7. "Width",
  8. default=60,
  9. help="Width in millimeters",
  10. required=True,
  11. )
  12. partner_labels_height = fields.Float(
  13. "Height",
  14. default=42.3,
  15. help="Height in millimeters",
  16. required=True,
  17. )
  18. partner_labels_padding = fields.Float(
  19. "Padding",
  20. default=5,
  21. help="Padding in millimeters",
  22. required=True,
  23. )
  24. partner_labels_margin_top = fields.Float(
  25. string="Margin Top",
  26. default=1,
  27. help="Margin top in millimeters",
  28. required=True,
  29. )
  30. partner_labels_margin_bottom = fields.Float(
  31. string="Margin Bottom",
  32. default=1,
  33. help="Margin bottom in millimeters",
  34. required=True,
  35. )
  36. partner_labels_margin_left = fields.Float(
  37. string="Margin Left",
  38. default=1,
  39. help="Margin left in millimeters",
  40. required=True,
  41. )
  42. partner_labels_margin_right = fields.Float(
  43. string="Margin Right",
  44. default=1,
  45. help="Margin right in millimeters",
  46. required=True,
  47. )