Skip to content

Commit

Permalink
[MIG] report_qweb_pdf_cover: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JasminSForgeFlow committed Mar 5, 2025
1 parent ec6e945 commit 6bad2c0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion report_qweb_pdf_cover/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"author": "ForgeFlow, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/reporting-engine",
"category": "Reporting",
"version": "16.0.1.0.0",
"version": "18.0.1.0.0",
"license": "AGPL-3",
"depends": ["web"],
"data": ["views/ir_actions_views.xml"],
Expand Down
20 changes: 7 additions & 13 deletions report_qweb_pdf_cover/views/ir_actions_views.xml
Original file line number Diff line number Diff line change
@@ -1,35 +1,29 @@
<?xml version="1.0" encoding="UTF-8" ?>
<?xml version='1.0' encoding='utf-8' ?>
<odoo>
<record id="act_report_xml_view" model="ir.ui.view">
<field name="model">ir.actions.report</field>
<field name="inherit_id" ref="base.act_report_xml_view" />
<field name="arch" type="xml">
<field name="attachment" position="after">
<field
name="use_front_cover"
attrs="{'invisible': [('report_type', '!=', 'qweb-pdf')]}"
/>
<field name="use_front_cover" invisible="report_type != 'qweb-pdf'" />
<field
name="front_cover_overlap"
attrs="{'invisible': ['|', ('report_type', '!=', 'qweb-pdf'),('use_front_cover', '=', False)]}"
invisible="report_type != 'qweb-pdf' or not use_front_cover"
/>
<field
name="front_cover_pdf"
attrs="{'invisible': ['|', ('report_type', '!=', 'qweb-pdf'),('use_front_cover', '=', False)]}"
invisible="report_type != 'qweb-pdf' or not use_front_cover"
widget="pdf_viewer"
/>

<field
name="use_back_cover"
attrs="{'invisible': [('report_type', '!=', 'qweb-pdf')]}"
/>
<field name="use_back_cover" invisible="report_type != 'qweb-pdf'" />
<field
name="back_cover_overlap"
attrs="{'invisible': ['|', ('report_type', '!=', 'qweb-pdf'),('use_back_cover', '=', False)]}"
invisible="report_type != 'qweb-pdf' or not use_back_cover"
/>
<field
name="back_cover_pdf"
attrs="{'invisible': ['|', ('report_type', '!=', 'qweb-pdf'),('use_back_cover', '=', False)]}"
invisible="report_type != 'qweb-pdf' or not use_back_cover"
widget="pdf_viewer"
/>
</field>
Expand Down

0 comments on commit 6bad2c0

Please sign in to comment.