report_layout.py 504 B

123456789101112131415161718
  1. # -*- coding: ascii -*-
  2. # Part of Odoo. See LICENSE file for full copyright and licensing details.
  3. from odoo import fields, models
  4. class ReportLayout(models.Model):
  5. _name = "report.layout"
  6. _description = 'Report Layout'
  7. _order = 'sequence'
  8. view_id = fields.Many2one('ir.ui.view', 'Document Template', required=True)
  9. image = fields.Char(string="Preview image src")
  10. pdf = fields.Char(string="Preview pdf src")
  11. sequence = fields.Integer(default=50)
  12. name = fields.Char()