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.

38 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", default=1, help="Margin top in millimeters", required=True,
  17. )
  18. partner_labels_margin_bottom = fields.Float(
  19. string="Margin Bottom",
  20. default=1,
  21. help="Margin bottom in millimeters",
  22. required=True,
  23. )
  24. partner_labels_margin_left = fields.Float(
  25. string="Margin Left",
  26. default=1,
  27. help="Margin left in millimeters",
  28. required=True,
  29. )
  30. partner_labels_margin_right = fields.Float(
  31. string="Margin Right",
  32. default=1,
  33. help="Margin right in millimeters",
  34. required=True,
  35. )