[FIX] account : add inherited fields to search view
The 'view_partner_bank_search_inherit' is inherited from 'view_partner_bank_search' and it is using replace value of position attribute. This is not letting the fields already added in the base view to display. Steps to reproduce: 1. Go to Bank Accounts in Contacts' configuration. 2. Try to enter some value in search field. Current Behaviour: The search field will not work properly and will not even display the columns to search. Expected Behaviour: The search field should display the columns and search the table. OPW-3340543 closes odoo/odoo#123328 X-original-commit: 6371bc5ce85f728fcaa6561bad4bef1aba161687 Signed-off-by: William André (wan) <wan@odoo.com>
This commit is contained in:
@@ -58,8 +58,7 @@
|
||||
<field name="model">res.partner.bank</field>
|
||||
<field name="inherit_id" ref="base.view_partner_bank_search"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//search" position="replace">
|
||||
<search string="Bank Accounts">
|
||||
<xpath expr="//search" position="inside">
|
||||
<filter string="Trusted" name="trusted" domain="[('allow_out_payment', '=', True)]"/>
|
||||
<filter string="Untrusted" name="untrusted" domain="[('allow_out_payment', '=', False)]"/>
|
||||
<filter string="To validate" name="to_validate" domain="[('allow_out_payment', '=', False), ('related_moves', '!=', False)]"/>
|
||||
@@ -75,7 +74,6 @@
|
||||
<filter string="Created On" name="groupby_create_date" context="{'group_by': 'create_date'}"/>
|
||||
<filter string="Created By" name="groupby_create_by" context="{'group_by': 'create_uid'}"/>
|
||||
</group>
|
||||
</search>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user