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.

19 lines
587 B

  1. # -*- coding: utf-8 -*-
  2. # Copyright 2013 XCG Consulting (http://odoo.consulting)
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  4. from openerp import fields, models
  5. class Py3oTemplate(models.Model):
  6. _name = '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. ],
  14. string="LibreOffice Template File Type",
  15. required=True,
  16. default='odt')