Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4 Trả lời
7476 Lượt xem

I'm trying to insert a CSS style in the XML report template and from the .css file in static, but I can not make it work.

You have some explicit manual that explains step by step how to do such things.

Greetings and thank you very much for your help

Ảnh đại diện
Huỷ bỏ

Thank you for your help It's Solved

Câu trả lời hay nhất

Hi,

1. Add your CSS file to report_assets_pdf.

Eg:

<template id="assets_common_l10n_mx_edi" inherit_id="web.report_assets_pdf">
<xpath expr="." position="inside">
<link href="/l10n_mx_edi/static/src/less/report.less" rel="stylesheet" type="text/less"/>
</xpath>
</template>

Then you can add new styles to that file.

Thank you.

Ảnh đại diện
Huỷ bỏ