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
-
10report_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",) |
@ -1,21 +1,19 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<?xml version="1.0" encoding="utf-8" ?> |
|||
<odoo> |
|||
<!-- FORM: report.paperformat --> |
|||
<record id="paperformat_view_form_custom" model="ir.ui.view"> |
|||
<field name="name">paperformat with custom parameters</field> |
|||
<field name="model">report.paperformat</field> |
|||
<field name="inherit_id" ref="base.paperformat_view_form"/> |
|||
<field name="inherit_id" ref="base.paperformat_view_form" /> |
|||
<field name="arch" type="xml"> |
|||
<field name="report_ids" position="after"> |
|||
<field name="custom_params"> |
|||
<tree editable="bottom"> |
|||
<field name="name"/> |
|||
<field name="value"/> |
|||
<field name="name" /> |
|||
<field name="value" /> |
|||
</tree> |
|||
</field> |
|||
</field> |
|||
|
|||
</field> |
|||
</record> |
|||
|
|||
</odoo> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue