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.

43 lines
1.9 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright 2019 ACSONE SA/NV
  3. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
  4. <odoo>
  5. <record model="ir.ui.view" id="ir_actions_report_form_view">
  6. <field name="name">ir.actions.report.form (in report_substitute)</field>
  7. <field name="model">ir.actions.report</field>
  8. <field name="inherit_id" ref="base.act_report_xml_view"/>
  9. <field name="arch" type="xml">
  10. <xpath expr="//page[@name='advanced']" position="after">
  11. <page name="report_substitution_rule" string="Substitution Rules">
  12. <field name="action_report_substitution_rule_ids">
  13. <tree>
  14. <field name="sequence" widget="handle"/>
  15. <field name="substitution_action_report_id"/>
  16. <field name="domain"/>
  17. </tree>
  18. <form>
  19. <sheet>
  20. <group>
  21. <field name="action_report_id"
  22. invisible="1" readonly="1"
  23. required="0"/>
  24. <field name="model" invisible="1"/>
  25. <field name="substitution_action_report_id"
  26. domain="[('model', '=', model), ('id', '!=', parent.id)]"/>
  27. </group>
  28. <group>
  29. <field name="domain" widget="domain"
  30. options="{'model': 'model'}"/>
  31. </group>
  32. </sheet>
  33. </form>
  34. </field>
  35. </page>
  36. </xpath>
  37. </field>
  38. </record>
  39. </odoo>