Search 1.9 billion lines of Odoo code on GitHub

website_sale_product_ratings

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 &quot;Product Ratings&quot; 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 &lt;div class=&quot;product_rating&quot;&gt; &lt;t t-call=&quot;website_ratings.widget&quot;&gt; &lt;t t-set=&quot;object_id&quot; t-value=&quot;product.id&quot;/&gt; &lt;t t-set=&quot;object_model&quot;&gt;product.template&lt;/t&gt; &lt;t t-set=&quot;ratings&quot; t-value=&quot;product.ratings&quot;/&gt; &lt;t t-set=&quot;numbers_of_ratings&quot; t-value=&quot;product.numbers_of_ratings&quot;/&gt; &lt;t t-set=&quot;input_name&quot; t-value=&quot;&#39;rating_product_&#39; + str(product.id)&quot;/&gt; &lt;/t&gt; &lt;/div&gt; </code></p>