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.
38 lines
1.5 KiB
38 lines
1.5 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!--inherited purchase requisition form view to add project and task fields-->
|
|
<record id="view_purchase_requisition_form" model="ir.ui.view">
|
|
<field name="name">
|
|
purchase.requisition.view.form.inherit.purchase.requisition.project.task
|
|
</field>
|
|
<field name="model">purchase.requisition</field>
|
|
<field name="inherit_id"
|
|
ref="purchase_requisition.view_purchase_requisition_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='origin']" position="after">
|
|
<field name="project_id"/>
|
|
<field name="task_ids"
|
|
widget="many2many_tags"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
<!-- add project and task to the group-->
|
|
<record id="purchase_requisition_view_search" model="ir.ui.view">
|
|
<field name="name">
|
|
purchase.requisition.view.search
|
|
</field>
|
|
<field name="model">purchase.requisition</field>
|
|
<field name="arch" type="xml">
|
|
<search>
|
|
<field name="project_id"/>
|
|
<field name="task_ids"/>
|
|
<group expand="0" string="Group By">
|
|
<filter string="Project" name="project"
|
|
context="{'group_by': 'project_id'}"/>
|
|
<filter string="Task" name="task"
|
|
context="{'group_by': 'task_ids'}"/>
|
|
</group>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|