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.

72 lines
2.9 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <odoo>
  3. <record model="ir.ui.view" id="view_base_comment_template_search">
  4. <field name="name">base.comment.template.search</field>
  5. <field name="model">base.comment.template</field>
  6. <field name="arch" type="xml">
  7. <search string="Comment Templates">
  8. <field name="name"/>
  9. <field name="position"/>
  10. <field name="company_id" groups="base.group_multi_company"/>
  11. </search>
  12. </field>
  13. </record>
  14. <record model="ir.ui.view" id="view_base_comment_template_form">
  15. <field name="name">base.comment.template.form</field>
  16. <field name="model">base.comment.template</field>
  17. <field name="arch" type="xml">
  18. <form string="Comment Templates">
  19. <sheet>
  20. <div class="oe_button_box" name="button_box">
  21. <button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive">
  22. <field name="active" widget="boolean_button" options="{&quot;terminology&quot;: &quot;archive&quot;}"/>
  23. </button>
  24. </div>
  25. <div class="oe_title">
  26. <h1>
  27. <field name="name" placeholder="Name"/>
  28. </h1>
  29. </div>
  30. <group>
  31. <group>
  32. <field name="position" widget="radio" invisible="context.get('default_position')"/>
  33. </group>
  34. <group>
  35. <field name="company_id" groups="base.group_multi_company"/>
  36. </group>
  37. </group>
  38. <notebook>
  39. <page name="text" string="Comment">
  40. <field name="text"/>
  41. </page>
  42. </notebook>
  43. </sheet>
  44. </form>
  45. </field>
  46. </record>
  47. <record model="ir.ui.view" id="view_base_comment_template_tree">
  48. <field name="name">account.comment.template.list</field>
  49. <field name="model">base.comment.template</field>
  50. <field name="priority" eval="6"/>
  51. <field name="arch" type="xml">
  52. <tree>
  53. <field name="name"/>
  54. <field name="position"/>
  55. <field name="company_id" groups="base.group_multi_company"/>
  56. </tree>
  57. </field>
  58. </record>
  59. <record model="ir.actions.act_window" id="action_base_comment_template">
  60. <field name="name">Comment Templates</field>
  61. <field name="type">ir.actions.act_window</field>
  62. <field name="res_model">base.comment.template</field>
  63. <field name="view_type">form</field>
  64. <field name="view_mode">tree,form</field>
  65. <field name="view_id" ref="view_base_comment_template_tree"/>
  66. </record>
  67. </odoo>