Skip to content

Commit

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

Signed-off-by: Juan Carreras <jc@adhoc.com.ar>
  • Loading branch information
Bruno-Zanotti committed Mar 5, 2024
1 parent 59053bc commit 420bcfe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion report_aeroo/__manifest__.py
Expand Up @@ -6,7 +6,7 @@

{
'name': 'Aeroo Reports',
'version': "16.0.2.0.0",
'version': "16.0.1.2.0",
'category': 'Generic Modules/Aeroo Reports',
'summary': 'Enterprise grade reporting solution',
'author': 'Alistek',
Expand Down
3 changes: 2 additions & 1 deletion report_aeroo/views/report_view.xml
Expand Up @@ -14,7 +14,8 @@
<field name="tml_source"/>
<field name="report_data" attrs="{'invisible': [('tml_source','&lt;&gt;','database')],'required': [('tml_source','=','database'), ('report_type','=','aeroo')]}"/>
<field name="report_file" string="Template Path" attrs="{'invisible': [('tml_source','&lt;&gt;','file')],'required': [('tml_source','=','file'), ('report_type','=','aeroo')]}"/>
<field name="attachment_id" string="Attachment" attrs="{'invisible': [('tml_source','&lt;&gt;','attachment')], 'required': [('tml_source','=','attachment'), ('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" attrs="{'invisible': [('tml_source','&lt;&gt;','attachment')], 'required': [('tml_source','=','attachment'), ('report_type','=','aeroo')]}" context="{'default_res_model': 'report.aeroo'}" options="{'create': True}"/>
<field name="copies" attrs="{'invisible': [('report_name','in',['printscreen.list'])]}"/>
<field name="copies_intercalate" attrs="{'invisible': [('report_name','in',['printscreen.list'])]}"/>
<!-- TODO <field name="report_wizard" attrs="{'invisible': [('report_name','in',['printscreen.list'])]}"/> -->
Expand Down

0 comments on commit 420bcfe

Please sign in to comment.