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.

41 lines
1.6 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="edit_project_agreement" model="ir.ui.view">
  4. <field name="name">project.project.form.agreement</field>
  5. <field name="model">project.project</field>
  6. <field name="inherit_id" ref="project.edit_project"/>
  7. <field name="arch" type="xml">
  8. <field name="sequence" position="after">
  9. <field name="agreement_id"/>
  10. </field>
  11. </field>
  12. </record>
  13. <record id="view_task_form2_agreement" model="ir.ui.view">
  14. <field name="name">project.task.form.agreement</field>
  15. <field name="model">project.task</field>
  16. <field name="inherit_id" ref="project.view_task_form2"/>
  17. <field name="arch" type="xml">
  18. <xpath expr="//field[@name='user_id']" position="after">
  19. <field name="agreement_id" readonly="1"/>
  20. <field name="serviceprofile_id"
  21. domain="[('agreement_id', '=', agreement_id)]"/>
  22. </xpath>
  23. </field>
  24. </record>
  25. <!-- Inherit project task search view-->
  26. <record id="view_task_search_form_agreement" model="ir.ui.view">
  27. <field name="name">project.task.select.agreement</field>
  28. <field name="model">project.task</field>
  29. <field name="inherit_id" ref="project.view_task_search_form"/>
  30. <field name="arch" type="xml">
  31. <xpath expr="//group" position="inside">
  32. <filter string="Service Profile" domain="[]"
  33. context="{'group_by':'serviceprofile_id'}"/>
  34. </xpath>
  35. </field>
  36. </record>
  37. </odoo>