Saran440
5 years ago
committed by
fshah
6 changed files with 52 additions and 65 deletions
-
13report_wkhtmltopdf_param/__manifest__.py
-
10report_wkhtmltopdf_param/models/report.py
-
31report_wkhtmltopdf_param/models/report_paperformat.py
-
18report_wkhtmltopdf_param/models/report_paperformat_parameter.py
-
25report_wkhtmltopdf_param/tests/test_report_paperformat.py
-
2report_wkhtmltopdf_param/views/paperformat.xml
@ -1,25 +1,21 @@ |
|||
# Copyright 2017 Avoin.Systems |
|||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). |
|||
|
|||
from odoo import models, fields |
|||
from odoo import fields, models |
|||
|
|||
|
|||
class ReportPaperformatParameter(models.Model): |
|||
_name = 'report.paperformat.parameter' |
|||
_description = 'wkhtmltopdf parameters' |
|||
_name = "report.paperformat.parameter" |
|||
_description = "wkhtmltopdf parameters" |
|||
|
|||
paperformat_id = fields.Many2one( |
|||
'report.paperformat', |
|||
'Paper Format', |
|||
required=True, |
|||
"report.paperformat", "Paper Format", required=True, |
|||
) |
|||
|
|||
name = fields.Char( |
|||
'Name', |
|||
"Name", |
|||
required=True, |
|||
help='The command argument name. Remember to add prefix -- or -' |
|||
help="The command argument name. Remember to add prefix -- or -", |
|||
) |
|||
|
|||
value = fields.Char( |
|||
'Value', |
|||
) |
|||
value = fields.Char("Value",) |
Write
Preview
Loading…
Cancel
Save
Reference in new issue