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.

42 lines
1.2 KiB

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