<?xml version="1.0"?>
<filter name="goods" position="after">
                    <filter string="In the BoM" invisible="context.get('active_model') != 'mrp.bom.line'" name="products_in_bom" domain="[('product_catalog_product_is_in_bom', '=', True)]"/>
                    <filter string="In the MO" invisible="context.get('active_model') != 'stock.move' or                                        context.get('product_catalog_order_model') != 'mrp.production'" name="products_in_mo" domain="[('product_catalog_product_is_in_mo', '=', True)]"/>
                </filter>
            