OCA reporting engine fork for dev and update.
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.

24 lines
789 B

  1. # Copyright 2013 XCG Consulting (http://odoo.consulting)
  2. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  3. from odoo import fields, models
  4. class Py3oTemplate(models.Model):
  5. _name = "py3o.template"
  6. _description = "Py3o template"
  7. name = fields.Char(required=True)
  8. py3o_template_data = fields.Binary("LibreOffice Template")
  9. filetype = fields.Selection(
  10. selection=[
  11. ("odt", "ODF Text Document"),
  12. ("ods", "ODF Spreadsheet"),
  13. ("odp", "ODF Presentation"),
  14. ("fodt", "ODF Text Document (Flat)"),
  15. ("fods", "ODF Spreadsheet (Flat)"),
  16. ("fodp", "ODF Presentation (Flat)"),
  17. ],
  18. string="LibreOffice Template File Type",
  19. required=True,
  20. default="odt",
  21. )