{"en_US": "<data inherit_id=\"stock.report_delivery_document\">\n        <!-- needs to be set before so elif directly follows if later on -->\n        <xpath expr=\"//t[@name='has_packages']\" position=\"before\">\n            <!-- get only the top level kits' (i.e. no subkit) move lines for easier mapping later on + we ignore subkit groupings-->\n            <!-- note that move.name uses top level kit's product.template.display_name value instead of product.template.name -->\n            <t t-set=\"has_kits\" t-value=\"o.move_line_ids.filtered(lambda l: l.move_id.bom_line_id and l.move_id.bom_line_id.bom_id.type == 'phantom')\"/>\n        </xpath>\n        <xpath expr=\"//t[@name='no_package_section']\" position=\"before\">\n            <t t-set=\"has_kits\" t-value=\"o.move_line_ids.filtered(lambda l: l.move_id.bom_line_id and l.move_id.bom_line_id.bom_id.type == 'phantom')\"/>\n            <t t-if=\"has_kits\">\n                <!-- print the products not in a package or kit first -->\n                <t t-set=\"move_lines\" t-value=\"move_lines.filtered(lambda m: not m.move_id.bom_line_id)\"/>\n            </t>\n        </xpath>\n        <xpath expr=\"//t[@name='no_package_move_lines']\" position=\"inside\">\n            <t t-call=\"mrp.stock_report_delivery_kit_sections\"/>\n        </xpath>\n        <xpath expr=\"//t[@name='has_packages']\" position=\"after\">\n            <!-- Additional use case: group by kits when no packages exist and then apply use case 1. (serial/lot numbers used/printed) -->\n            <t t-elif=\"has_kits and not has_packages\">\n                <t t-call=\"mrp.stock_report_delivery_kit_sections\"/>\n                <t t-call=\"mrp.stock_report_delivery_no_kit_section\"/>\n            </t>\n        </xpath>\n    </data>"}