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.

41 lines
1.2 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', default=60, help='Width in millimeters', required=True,
  8. )
  9. partner_labels_height = fields.Float(
  10. 'Height', default=42.3, help='Height in millimeters', required=True,
  11. )
  12. partner_labels_padding = fields.Float(
  13. 'Padding', default=5, help='Padding in millimeters', required=True,
  14. )
  15. partner_labels_margin_top = fields.Float(
  16. string="Margin Top",
  17. default=1,
  18. help="Margin top in millimeters",
  19. required=True,
  20. )
  21. partner_labels_margin_bottom = fields.Float(
  22. string="Margin Bottom",
  23. default=1,
  24. help="Margin bottom in millimeters",
  25. required=True,
  26. )
  27. partner_labels_margin_left = fields.Float(
  28. string="Margin Left",
  29. default=1,
  30. help="Margin left in millimeters",
  31. required=True,
  32. )
  33. partner_labels_margin_right = fields.Float(
  34. string="Margin Right",
  35. default=1,
  36. help="Margin right in millimeters",
  37. required=True,
  38. )