[FIX] Proper ticket price micodata

bzr revid: ddm@openerp.com-20140205075141-xxedwfwf3lz2v0ej
This commit is contained in:
ddm@openerp.com 2014-02-05 08:51:41 +01:00
parent 6818f6f84b
commit 706881ab38
2 changed files with 4 additions and 2 deletions

View File

@ -40,10 +40,12 @@
</td>
<td><span itemprop="priceValidUntil" t-field="ticket.deadline"/></td>
<td>
<t t-if="ticket.price or editable"><span itemprop="price" t-field="ticket.price" t-field-options='{
<t t-if="ticket.price or editable"><span t-field="ticket.price" t-field-options='{
"widget": "monetary",
"display_currency": "website.pricelist_id.currency_id"
}'/>
<meta itemprop="price" t-att-content="ticket.price"/>
<meta itemprop="priceCurrency" t-att-content="website.pricelist_id.currency_id.name"/>
</t>
<t t-if="not ticket.price and not editable">
<span>Free</span>

View File

@ -334,7 +334,7 @@
"widget": "monetary",
"display_currency": "website.pricelist_id.currency_id"
}'/>
<meta itemprop="price" t-att-content="product.product_variant_ids[0].price"/>
<meta itemprop="price" t-att-content="product.product_variant_ids[0].price"/>
<meta itemprop="priceCurrency" t-att-content="website.pricelist_id.currency_id.name"/>
</h4>
</div>