<?xml version="1.0"?>
<t t-name="website_sale.gmc_xml"><t t-translation="off">&lt;?xml version="1.0" encoding="UTF-8"?&gt;</t>
        <rss xmlns:g="http://base.google.com/ns/1.0" version="2.0">
            <channel>
                <title t-out="title"/>
                <t t-translation="off">&lt;link&gt;<t t-out="link"/>&lt;/link&gt;</t>
                <description t-out="description"/>
                <t t-foreach="items.values()" t-as="item">
                    <item>
                        <!-- Required -->
                        <g:id t-out="item['id']"/>
                        <g:title t-out="item['title']"/>
                        <g:description t-out="item['description']"/>
                        <g:link t-out="item['link']"/>
                        <g:image_link t-out="item['image_link']"/>
                        <g:availability t-out="item['availability']"/>
                        <g:price t-out="item['price']"/>
                        <g:identifier_exists t-out="item['identifier_exists']"/>
                        <g:gtin t-if="'gtin' in item" t-out="item['gtin']"/>
                        <t t-foreach="item['shipping']" t-as="shipping">
                            <g:shipping>
                                <g:country t-out="shipping['country']"/>
                                <g:service t-out="shipping['service']"/>
                                <g:price t-out="shipping['price']"/>
                            </g:shipping>
                        </t>

                        <!-- Optional -->
                        <g:sale_price t-if="'sale_price' in item" t-out="item['sale_price']"/>
                        <g:sale_price_effective_date t-if="'sale_price_effective_date' in item" t-out="item['sale_price_effective_date']"/>
                        <g:unit_pricing_measure t-if="'unit_pricing_measure' in item" t-out="item['unit_pricing_measure']"/>
                        <g:unit_pricing_base_measure t-if="'unit_pricing_base_measure' in item" t-out="item['unit_pricing_base_measure']"/>
                        <t t-foreach="item['custom_label']" t-as="tag_label">
                            <t t-translation="off">
                                &lt;g:<t t-out="tag_label[0]"/>&gt;
                                    <t t-out="tag_label[1]"/>
                                &lt;/g:<t t-out="tag_label[0]"/>&gt;
                            </t>
                        </t>
                        <t t-foreach="item['additional_image_link']" t-as="link">
                            <g:additional_image_link t-out="link"/>
                        </t>
                        <t t-foreach="item['product_type']" t-as="type">
                            <g:product_type t-out="type"/>
                        </t>
                        <g:item_group_id t-if="'item_group_id' in item" t-out="item['item_group_id']"/>
                        <g:is_bundle t-out="item['is_bundle']"/>
                        <t t-foreach="item['product_detail']" t-as="name_value">
                            <g:product_detail>
                                <g:attribute_name t-out="name_value[0]"/>
                                <g:attribute_value t-out="name_value[1]"/>
                            </g:product_detail>
                        </t>
                        <t name="shippings" t-foreach="item['free_shipping_threshold']" t-as="shipping">
                            <g:free_shipping_threshold>
                                <g:country t-out="shipping['country']"/>
                                <g:price_threshold t-out="shipping['price_threshold']"/>
                            </g:free_shipping_threshold>
                        </t>
                    </item>
                </t>
            </channel>
        </rss>
    </t>
