Author: |
Trey (www.trey.es) |
License: |
AGPL-3 |
Branch: |
8.0 |
Repository: |
AcruxLab/trey-addons |
Dependencies: |
base,
website,
website_ratings,
and
website_sale |
Languages: |
Markdown (19, 6.8%),
Python (48, 17.1%),
SVG (182, 65.0%),
and
XML (31, 11.1%) |
Other repositories: |
DudhatShivam/trey-addons,
HarshalBhoir/trey-addons,
OdooBulgaria/trey-addons,
RL-OtherApps/trey-addons,
TheCloneMaster/trey-addons,
Ubaid-UrRehman/trey-addons,
WebMoz/trey-addons,
acysos/trey-addons,
aitmlouk/trey-addons,
alanljj/trey-addons,
anasallaham/trey-addons,
anodino-dev/trey-addons,
blueoceandevops/trey-addons,
bouet/trey-addons,
carlos-domatix/trey-addons,
durvillo/trey-addons,
gitstalker/trey-addons,
grottas/trey-addons,
invitu/trey-addons,
judaa11/trey-addons,
khaledhathout/trey-addons,
kit9/trey-addons,
marionumza/trey-addons,
nguyenductamlhp/trey-addons,
nicolasramos/trey-addons,
oihane/trey-addons,
one2pret/trey-addons,
systechsolutions/trey-addons,
tate11/trey-addons,
treytux/trey-addons,
vanthaiunghoa/trey-addons,
vidtsin/trey-addons,
and
yasmanycastillo/trey-addons |
<h2>Cómo utilizarlo</h2>
<p>Puede mostrarse el widget activando la opción de personalización "Product
Ratings" tanto desde el listado como desde la ficha de producto.</p>
<p>O bien, no activar dichos widgets e insertar en nuestro código la siguiente
llamada para ubicarlos en cualquier posición dentro de la página:</p>
<p><code>xml
<div class="product_rating">
<t t-call="website_ratings.widget">
<t t-set="object_id" t-value="product.id"/>
<t t-set="object_model">product.template</t>
<t t-set="ratings" t-value="product.ratings"/>
<t t-set="numbers_of_ratings"
t-value="product.numbers_of_ratings"/>
<t t-set="input_name" t-value="'rating_product_' +
str(product.id)"/>
</t>
</div>
</code></p>