hey, i'm using odoov14 , i wanted to make order line field of purchase order visible in search view.
here my python code.
from odoo import models, fields, api
class CustomPurchaseReportFields(models.Model):
_inherit = 'purchase.order.line'
in xml
xml version="1.0" encoding="UTF-8" ?>
id="purchase_order_view_search" model="ir.ui.view">
name="name">purchase.order.view.search
name="model">purchase.order
name="inherit_id" ref="purchase.view_purchase_order_filter"/>
name="arch" type="xml">
name="name" position="after">
name="order_line" string="AWB No"
filter_domain="[('order_line.awb_no.name','ilike',self)]"/>