report_paperformat_views.xml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <data>
  4. <!-- report.paperformat -->
  5. <record id="paperformat_view_tree" model="ir.ui.view">
  6. <field name="name">paper_format_view_tree</field>
  7. <field name="model">report.paperformat</field>
  8. <field name="arch" type="xml">
  9. <tree string="Paper format configuration">
  10. <field name="name" />
  11. </tree>
  12. </field>
  13. </record>
  14. <record id="paperformat_view_form" model="ir.ui.view">
  15. <field name="name">paper_format_view_form</field>
  16. <field name="model">report.paperformat</field>
  17. <field name="arch" type="xml">
  18. <form string="Paper format configuration">
  19. <sheet>
  20. <group>
  21. <field name="name" />
  22. <field name="format" />
  23. <field name="page_height" attrs="{'invisible': [('format','!=','custom')]}" />
  24. <field name="page_width" attrs="{'invisible': [('format','!=','custom')]}" />
  25. <field name="orientation" />
  26. <field name="margin_top" />
  27. <field name="margin_bottom" />
  28. <field name="margin_left" />
  29. <field name="margin_right" />
  30. <field name="header_line" />
  31. <field name="header_spacing" />
  32. <field name="disable_shrinking" />
  33. <field name="dpi" />
  34. <field name="report_ids" widget="many2many_tags" options="{'not_delete': True}"/>
  35. </group>
  36. </sheet>
  37. </form>
  38. </field>
  39. </record>
  40. <record id="paper_format_action" model="ir.actions.act_window">
  41. <field name="name">Paper Format General Configuration</field>
  42. <field name="res_model">report.paperformat</field>
  43. <field name="view_mode">tree,form</field>
  44. </record>
  45. <record id='reports_action' model='ir.actions.act_window'>
  46. <field name="name">Reports</field>
  47. <field name="res_model">ir.actions.report</field>
  48. <field name="view_mode">tree,form</field>
  49. </record>
  50. <menuitem
  51. id="reporting_menuitem"
  52. name="Reporting"
  53. parent="base.menu_custom"
  54. sequence="15"
  55. groups="base.group_no_one"
  56. />
  57. <menuitem
  58. id="paper_format_menuitem"
  59. name="Paper Format"
  60. parent="reporting_menuitem"
  61. action="paper_format_action"
  62. sequence="2"
  63. groups="base.group_no_one"
  64. />
  65. <menuitem
  66. id="reports_menuitem"
  67. name="Reports"
  68. parent="reporting_menuitem"
  69. action="reports_action"
  70. sequence="3"
  71. groups="base.group_no_one"
  72. />
  73. </data>
  74. </odoo>