mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-26 20:31:59 +02:00
65 lines
3.3 KiB
XML
65 lines
3.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<template id="gmc_xml"><t t-translation="off"><?xml version="1.0" encoding="UTF-8"?></t>
|
|
<rss xmlns:g="http://base.google.com/ns/1.0" version="2.0">
|
|
<channel>
|
|
<title t-out="title"/>
|
|
<t t-translation="off"><link><t t-out="link"/></link></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']"/>
|
|
|
|
<!-- 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">
|
|
<g:<t t-out="tag_label[0]"/>>
|
|
<t t-out="tag_label[1]"/>
|
|
</g:<t t-out="tag_label[0]"/>>
|
|
</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>
|
|
</item>
|
|
</t>
|
|
</channel>
|
|
</rss>
|
|
</template>
|
|
</odoo>
|