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.

42 lines
1.7 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. domain="[('partner_id', '=', partner_id)]"/>
  11. </field>
  12. </field>
  13. </record>
  14. <record id="view_task_form2_agreement" model="ir.ui.view">
  15. <field name="name">project.task.form.agreement</field>
  16. <field name="model">project.task</field>
  17. <field name="inherit_id" ref="project.view_task_form2"/>
  18. <field name="arch" type="xml">
  19. <xpath expr="//field[@name='user_id']" position="after">
  20. <field name="agreement_id" readonly="1"/>
  21. <field name="serviceprofile_id"
  22. domain="[('agreement_id', '=', agreement_id)]"/>
  23. </xpath>
  24. </field>
  25. </record>
  26. <!-- Inherit project task search view-->
  27. <record id="view_task_search_form_agreement" model="ir.ui.view">
  28. <field name="name">project.task.select.agreement</field>
  29. <field name="model">project.task</field>
  30. <field name="inherit_id" ref="project.view_task_search_form"/>
  31. <field name="arch" type="xml">
  32. <xpath expr="//group" position="inside">
  33. <filter string="Service Profile" domain="[]"
  34. context="{'group_by':'serviceprofile_id'}"/>
  35. </xpath>
  36. </field>
  37. </record>
  38. </odoo>