Purpose of this PR to do generic improvement. So in this PR done following improvements: - add context in partner fields in various places to display customer partner first in selection of partner field. task-3099758 closes odoo/odoo#107913 Related: odoo/enterprise#34950 Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
33 lines
1.5 KiB
XML
33 lines
1.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<record id="project_task_form_view_account_inherit" model="ir.ui.view">
|
|
<field name="name">project.task.form.view.account.inherit</field>
|
|
<field name="model">project.task</field>
|
|
<field name="inherit_id" ref="project.view_task_form2"/>
|
|
<field name="arch" type="xml">
|
|
<field name="partner_id" position="attributes">
|
|
<attribute name="context">{'res_partner_search_mode': 'customer'}</attribute>
|
|
</field>
|
|
<xpath expr="//field[@name='child_ids']/tree/field[@name='partner_id']" position="attributes">
|
|
<attribute name="context">{'res_partner_search_mode': 'customer'}</attribute>
|
|
</xpath>
|
|
<xpath expr="//field[@name='depend_on_ids']/tree/field[@name='partner_id']" position="attributes">
|
|
<attribute name="context">{'res_partner_search_mode': 'customer'}</attribute>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="project_task_tree_view_account_inherit" model="ir.ui.view">
|
|
<field name="name">project.task.tree.view.account.inherit</field>
|
|
<field name="model">project.task</field>
|
|
<field name="inherit_id" ref="project.project_task_view_tree_base"/>
|
|
<field name="arch" type="xml">
|
|
<field name="partner_id" position="attributes">
|
|
<attribute name="context">{'res_partner_search_mode': 'customer'}</attribute>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
</odoo>
|