Files
2025-04-21 08:24:42 +08:00

43 lines
2.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<!-- <template id="assets_backend_docx_report_pro" name="docx_report_pro assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<script type="text/javascript" src="/docx_report_pro/static/src/js/docx_report.js"></script>
</xpath>
</template> -->
<record id="act_report_xml_view_docx_report_pro" model="ir.ui.view">
<field name="name">ir.actions.report.docx.pro</field>
<field name="model">ir.actions.report</field>
<field name="priority" eval="80"/>
<field name="inherit_id" ref="base.act_report_xml_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='paperformat_id']" position="after">
<field name="template_docx"
invisible="report_type not in ['docx']" />
<field name="out_report_type"
invisible="report_type not in ['docx']" />
<field name="python_function_prepare"/>
<field name="python_function_name" invisible="python_function_prepare == False" />
<field name="path_source"
invisible="report_type not in ['docx'] or out_report_type in ['docx']" />
<field name="path_convert_folder"
invisible="report_type not in ['docx'] or out_report_type in ['docx']" />
<field name="path_libreoffice"
invisible="report_type not in ['docx'] or out_report_type in ['docx']" />
<separator string="Help" colspan="4"
invisible="report_type not in ['docx'] or out_report_type in ['docx']"/>
<div name="configuration_details" colspan="8"
invisible="out_report_type in ['docx']">
If alfter install libreoffice you still get error with docx-pdf/odt formats
<p>Change rights and give all users access + writing to /home directory</p>
<p>Change rights and give all users access + writing to the directory you want the documents to be saved in: /tmp/backups</p>
</div>
</xpath>
</field>
</record>
</data>
</odoo>