Skip to content

Commit

Permalink
[FIX] aeroo_report: add options create=True+
Browse files Browse the repository at this point in the history
closes #62

X-original-commit: 420bcfe
Signed-off-by: Juan Carreras <jc@adhoc.com.ar>
Signed-off-by: Bruno Zanotti <bz@adhoc.com.ar>
  • Loading branch information
bruno-zanotti committed Apr 19, 2024
1 parent 0bf5246 commit d6d8795
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion report_aeroo/views/report_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
<field name="tml_source"/>
<field name="report_data" invisible="tml_source != 'database'" required="tml_source == 'database' and report_type == 'aeroo'"/>
<field name="report_file" string="Template Path" invisible="tml_source != 'file'" required="tml_source == 'file' and report_type == 'aeroo'"/>
<field name="attachment_id" string="Attachment" invisible= "tml_source != 'attachment'" required="tml_source == 'attachment' and report_type == 'aeroo'" context="{'default_res_model': 'report.aeroo'}"/>
<!-- Add option {'create': True} just in case the database has the module web_m2x_options installed -->
<field name="attachment_id" string="Attachment" invisible= "tml_source != 'attachment'" required="tml_source == 'attachment' and report_type == 'aeroo'" context="{'default_res_model': 'report.aeroo'}" options="{'create': True}"/>
<field name="copies" invisible="report_name == 'printscreen.list'"/>
<field name="copies_intercalate" invisible="report_name == 'printscreen.list'"/>
<!-- TODO <field name="report_wizard" attrs="{'invisible': [('report_name','in',['printscreen.list'])]}"/> -->
Expand Down

0 comments on commit d6d8795

Please sign in to comment.