diff options
| author | Mqdd <ahmadmiqdad27@gmail.com> | 2026-03-02 16:39:36 +0700 |
|---|---|---|
| committer | Mqdd <ahmadmiqdad27@gmail.com> | 2026-03-02 16:39:36 +0700 |
| commit | fc1cdde83a1bf02889a0299c2b62e594327451f2 (patch) | |
| tree | 6b40f51918ff2132c79f3cb82bdc11213e6aed0b /fixco_custom | |
| parent | c6a755e66b6f37433be715cd54718616f3f26fb0 (diff) | |
<Miqdad> remove soo number in PO
Diffstat (limited to 'fixco_custom')
| -rw-r--r-- | fixco_custom/views/purchase_order.xml | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/fixco_custom/views/purchase_order.xml b/fixco_custom/views/purchase_order.xml index 76df6e4..452edf7 100644 --- a/fixco_custom/views/purchase_order.xml +++ b/fixco_custom/views/purchase_order.xml @@ -84,12 +84,20 @@ <field name="model">purchase.order</field> <field name="inherit_id" ref="purchase.view_purchase_order_filter"/> <field name="arch" type="xml"> - <xpath expr="//search" position="inside"> + <!-- <xpath expr="//search" position="inside"> <field name="soo_number" string="SOO Number" filter_domain="[ ('soo_number', 'ilike', self) ]"/> + </xpath> --> + <xpath expr="(//search/field[@name='name'])[1]" position="attributes"> + <attribute name="filter_domain"> + ['|', + ('name', 'ilike', self), + ('soo_number', 'ilike', self), + ] + </attribute> </xpath> </field> </record> @@ -99,12 +107,20 @@ <field name="model">purchase.order</field> <field name="inherit_id" ref="purchase.purchase_order_view_search"/> <field name="arch" type="xml"> - <xpath expr="//search" position="inside"> + <!-- <xpath expr="//search" position="inside"> <field name="soo_number" string="SOO Number" filter_domain="[ ('soo_number', 'ilike', self) ]"/> + </xpath> --> + <xpath expr="(//search/field[@name='name'])[1]" position="attributes"> + <attribute name="filter_domain"> + ['|', + ('name', 'ilike', self), + ('soo_number', 'ilike', self), + ] + </attribute> </xpath> </field> </record> |
