diff --git a/report/report_agreement.xml b/report/report_agreement.xml index 2a754c92fe097c5b8cea77516b52b782770aef9d..52c139408eb942396b70d6dea22d3f2d04d7048c 100644 --- a/report/report_agreement.xml +++ b/report/report_agreement.xml @@ -3,7 +3,7 @@ <data> <template id="qweb_agreement_pdf"> - <t t-call="report.html_container"> + <t t-call="web.html_container"> <t t-foreach="docs" t-as="doc"> <t t-call="lefilament_training.training_layout"> <div class="page"> diff --git a/report/report_attendance_sheet.xml b/report/report_attendance_sheet.xml index ce4b38eab67368c24e99bf885cccbcd88149d4dd..ebc07b4f886689923aa148a6c9c0c61e30376df6 100644 --- a/report/report_attendance_sheet.xml +++ b/report/report_attendance_sheet.xml @@ -3,7 +3,7 @@ <data> <template id="qweb_attendance_sheet_pdf"> - <t t-call="report.html_container"> + <t t-call="web.html_container"> <t t-foreach="docs" t-as="doc"> <t t-call="lefilament_training.training_layout"> diff --git a/report/report_attestation.xml b/report/report_attestation.xml index 14f2cb60541922947d833521e31588dd0c87e14e..f6a34bc613fcfb8a32858d4442f6c4e38e14f021 100644 --- a/report/report_attestation.xml +++ b/report/report_attestation.xml @@ -3,7 +3,7 @@ <data> <template id="qweb_attestation_pdf"> - <t t-call="report.html_container"> + <t t-call="web.html_container"> <t t-foreach="docs" t-as="doc"> <t t-foreach="doc.student_ids" t-as="student"> <t t-call="lefilament_training.training_layout"> diff --git a/report/report_program.xml b/report/report_program.xml index dc1359a4b83c4b5c2879a027fdba1fda1d6e41f8..d23f81bdc9533bbb095b867bd20ebc8b3549f3cb 100644 --- a/report/report_program.xml +++ b/report/report_program.xml @@ -3,7 +3,7 @@ <data> <template id="qweb_program_pdf"> - <t t-call="report.html_container"> + <t t-call="web.html_container"> <t t-foreach="docs" t-as="doc"> <t t-call="lefilament_training.training_layout"> <div class="page"> diff --git a/views/assets.xml b/views/assets.xml index a89252cd860ac58334a6499fa6eb20eee3b40030..34d5e12004a76dc76271329f9fb76f3f7a7da5b2 100644 --- a/views/assets.xml +++ b/views/assets.xml @@ -3,11 +3,23 @@ <odoo> <data> + <template id="training_assets" inherit_id="web.report_assets_editor"> + <xpath expr="." position="inside"> + <link rel="stylesheet" href="/lefilament_training/static/src/less/style.less"/> + </xpath> + </template> + <template id="training_assets_common" name="training_assets" inherit_id="web.report_assets_common"> - <xpath expr="." position="inside"> - <link rel="stylesheet" href="/lefilament_training/static/src/less/style.less"/> - </xpath> - </template> + <xpath expr="." position="inside"> + <link rel="stylesheet" href="/lefilament_training/static/src/less/style.less"/> + </xpath> + </template> + + <template id="report_assets_common_custom_fonts" name="Custom QWeb fonts" inherit_id="web.report_assets_common"> + <xpath expr="." position="inside"> + <link rel="stylesheet" href="/lefilament_training/static/src/less/style.less"/> + </xpath> + </template> </data> </odoo>