| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
<template id="gmc_xml"><t t-translation="off"><?xml version="1.0" encoding="UTF-8"?></t> |
| 4 |
<rss xmlns:g="http://base.google.com/ns/1.0" version="2.0"> |
| 5 |
<channel> |
| 6 |
<title t-out="title"/> |
| 7 |
<t t-translation="off"><link><t t-out="link"/></link></t> |
| 8 |
<description t-out="description"/> |
| 9 |
<t t-foreach="items.values()" t-as="item"> |
| 10 |
<item> |
| 11 |
<!-- Required --> |
| 12 |
<g:id t-out="item['id']"/> |
| 13 |
<g:title t-out="item['title']"/> |
| 14 |
<g:description t-out="item['description']"/> |
| 15 |
<g:link t-out="item['link']"/> |
| 16 |
<g:image_link t-out="item['image_link']"/> |
| 17 |
<g:availability t-out="item['availability']"/> |
| 18 |
<g:price t-out="item['price']"/> |
| 19 |
<g:identifier_exists t-out="item['identifier_exists']"/> |
| 20 |
<g:gtin t-if="'gtin' in item" t-out="item['gtin']"/> |
| 21 |
|
| 22 |
<!-- Optional --> |
| 23 |
<g:sale_price t-if="'sale_price' in item" t-out="item['sale_price']"/> |
| 24 |
<g:sale_price_effective_date |
| 25 |
t-if="'sale_price_effective_date' in item" |
| 26 |
t-out="item['sale_price_effective_date']" |
| 27 |
/> |
| 28 |
<g:unit_pricing_measure |
| 29 |
t-if="'unit_pricing_measure' in item" |
| 30 |
t-out="item['unit_pricing_measure']" |
| 31 |
/> |
| 32 |
<g:unit_pricing_base_measure |
| 33 |
t-if="'unit_pricing_base_measure' in item" |
| 34 |
t-out="item['unit_pricing_base_measure']" |
| 35 |
/> |
| 36 |
<t t-foreach="item['custom_label']" t-as="tag_label"> |
| 37 |
<t t-translation="off"> |
| 38 |
<g:<t t-out="tag_label[0]"/>> |
| 39 |
<t t-out="tag_label[1]"/> |
| 40 |
</g:<t t-out="tag_label[0]"/>> |
| 41 |
</t> |
| 42 |
</t> |
| 43 |
<t t-foreach="item['additional_image_link']" t-as="link"> |
| 44 |
<g:additional_image_link t-out="link"/> |
| 45 |
</t> |
| 46 |
<t t-foreach="item['product_type']" t-as="type"> |
| 47 |
<g:product_type t-out="type"/> |
| 48 |
</t> |
| 49 |
<g:item_group_id |
| 50 |
t-if="'item_group_id' in item" |
| 51 |
t-out="item['item_group_id']" |
| 52 |
/> |
| 53 |
<g:is_bundle t-out="item['is_bundle']"/> |
| 54 |
<t t-foreach="item['product_detail']" t-as="name_value"> |
| 55 |
<g:product_detail> |
| 56 |
<g:attribute_name t-out="name_value[0]"/> |
| 57 |
<g:attribute_value t-out="name_value[1]"/> |
| 58 |
</g:product_detail> |
| 59 |
</t> |
| 60 |
</item> |
| 61 |
</t> |
| 62 |
</channel> |
| 63 |
</rss> |
| 64 |
</template> |
| 65 |
</odoo> |