Public release from ruodoo-project: 19.0 - 2026-05-31 21:19:12 UTC
This commit is contained in:
17
docx_report_generation/views/ir_actions_report_views.xml
Normal file
17
docx_report_generation/views/ir_actions_report_views.xml
Normal file
@ -0,0 +1,17 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<odoo>
|
||||
<record id="act_report_xml_inherit_view_form" model="ir.ui.view">
|
||||
<field name="name">ir.actions.report.inherit.view.form</field>
|
||||
<field name="model">ir.actions.report</field>
|
||||
<field name="inherit_id" ref="base.act_report_xml_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='report_name']" position="attributes">
|
||||
<attribute name="readonly">report_type in ['docx-docx', 'docx-pdf']</attribute>
|
||||
<attribute name="required">report_type not in ['docx-docx', 'docx-pdf']</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='report_name']" position="after">
|
||||
<field name="report_docx_template" required="report_type in ['docx-docx', 'docx-pdf']"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user