OCA reporting engine fork for dev and update.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
3.4 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="report_xlsx_hf_tree" model="ir.ui.view">
  4. <field name="name">report_xlsx_hf Tree</field>
  5. <field name="model">report.xlsx.hf</field>
  6. <field name="type">tree</field>
  7. <field name="arch" type="xml">
  8. <tree>
  9. <field name="name"/>
  10. <field name="hf_type"/>
  11. <field name="value"/>
  12. </tree>
  13. </field>
  14. </record>
  15. <record id="report_xlsx_hf_form" model="ir.ui.view">
  16. <field name="name">report_xlsx_hf Form</field>
  17. <field name="model">report.xlsx.hf</field>
  18. <field name="type">form</field>
  19. <field name="arch" type="xml">
  20. <form>
  21. <sheet>
  22. <group>
  23. <field name="name"/>
  24. <field name="hf_type"/>
  25. </group>
  26. <div colspan="2"><i class="fa fa-info-circle" aria-hidden="true"/> Search in the <a href="https://xlsxwriter.readthedocs.io/page_setup.html#set_header">documentation</a> for set_header and set_footer to find the proper syntax to fill "Value" and "Options".</div>
  27. <group>
  28. <field name="value" placeholder="&amp;LHello &amp;CWorld &amp;R!!!"/>
  29. <field name="manual_options" placeholder="{'margin': 0.3}"/>
  30. </group>
  31. <separator string="Images"/>
  32. <div><i class="fa fa-info-circle" aria-hidden="true"/>
  33. If you select an image, you don't have to specify any image options (image_left, image_data_left, ...) but you need to add the control character <span style="background-color: #ebecec;">&amp;G</span> in the value.</div>
  34. <div>
  35. If you add the three images, the value must contain <span style="background-color: #ebecec;">&amp;L&amp;G &amp;C&amp;G &amp;R&amp;G</span> or <span style="background-color: #ebecec;">&amp;L&amp;[Picture] &amp;C&amp;[Picture] &amp;R&amp;[Picture]</span>.</div>
  36. <group>
  37. <field name="image_left_name" invisible="1"/>
  38. <field name="image_left" filename="image_left_name"/>
  39. <field name="image_center_name" invisible="1"/>
  40. <field name="image_center" filename="image_center_name"/>
  41. <field name="image_right_name" invisible="1"/>
  42. <field name="image_right" filename="image_right_name"/>
  43. </group>
  44. <separator string="Associated report(s)"/>
  45. <field name="header_report_ids" attrs="{'invisible': [('hf_type', '!=', 'header')]}" nolabel="1" colspan="2"/>
  46. <field name="footer_report_ids" attrs="{'invisible': [('hf_type', '!=', 'footer')]}" nolabel="1" colspan="2"/>
  47. </sheet>
  48. </form>
  49. </field>
  50. </record>
  51. <record id="report_xlsx_hf_action" model="ir.actions.act_window">
  52. <field name="name">XLSX Header/Footer</field>
  53. <field name="res_model">report.xlsx.hf</field>
  54. <field name="view_type">form</field>
  55. <field name="view_mode">tree,form</field>
  56. </record>
  57. <menuitem id="report_xlsx_hf_menu" parent="report.reporting_menuitem"
  58. name="XLSX Header/Footer" action="report_xlsx_hf_action" sequence="100"/>
  59. </odoo>