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
794 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 Py3oServer(models.Model):
  5. _name = 'py3o.server'
  6. _description = 'Py3o server'
  7. _rec_name = 'url'
  8. url = fields.Char(
  9. "Py3o Fusion Server URL", required=True,
  10. help="If your Py3o Fusion server is on the same machine and runs "
  11. "on the default port, the URL is http://localhost:8765/form")
  12. is_active = fields.Boolean("Active", default=True)
  13. pdf_options_id = fields.Many2one(
  14. 'py3o.pdf.options', string='PDF Options', ondelete='restrict',
  15. help="PDF options can be set per Py3o Server but also per report. "
  16. "If both are defined, the options on the report are used.")