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
830 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",
  10. required=True,
  11. help="If your Py3o Fusion server is on the same machine and runs "
  12. "on the default port, the URL is http://localhost:8765/form",
  13. )
  14. is_active = fields.Boolean("Active", default=True)
  15. pdf_options_id = fields.Many2one(
  16. "py3o.pdf.options",
  17. string="PDF Options",
  18. ondelete="restrict",
  19. help="PDF options can be set per Py3o Server but also per report. "
  20. "If both are defined, the options on the report are used.",
  21. )