mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
Move to report_py3o after import from HG
This commit is contained in:
committed by
Elmeri Niemelä
parent
f6845422ac
commit
75ab2d3809
28
report_py3o/models/py3o_template.py
Normal file
28
report_py3o/models/py3o_template.py
Normal file
@@ -0,0 +1,28 @@
|
||||
from openerp.osv import fields, osv
|
||||
|
||||
|
||||
class py3o_template(osv.Model):
|
||||
_name = 'py3o.template'
|
||||
|
||||
_columns = {
|
||||
'name': fields.char(
|
||||
u"Name",
|
||||
),
|
||||
|
||||
'py3o_template_data': fields.binary(
|
||||
u"LibreOffice template",
|
||||
),
|
||||
|
||||
'filetype': fields.selection(
|
||||
[
|
||||
('odt', u"ODF Text Document"),
|
||||
('ods', u"ODF Spreadsheet"),
|
||||
],
|
||||
u"LibreOffice Template File Type",
|
||||
required=True,
|
||||
),
|
||||
}
|
||||
|
||||
_defaults = {
|
||||
'filetype': 'odt'
|
||||
}
|
||||
Reference in New Issue
Block a user