Google Reviews Snippet | Google Review Snippet
by Ahson Mahmood https://www.linkedin.com/in/ahsonmahmood/$ 10.04
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Website (website)
• Discuss (mail) |
| Lines of code | 664 |
| Technical Name |
website_google_reviews_snippet |
| License | OPL-1 |
| Website | https://www.linkedin.com/in/ahsonmahmood/ |
| Versions | 15.0 16.0 17.0 18.0 19.0 |
★ Website Google Reviews
Display, manage and curate Google Business Reviews on your Odoo website with intelligent caching, advanced filtering and real-time synchronization.
Review cards with star ratings, author photos and auto-sliding carousel
Reduce API costs by up to 90% with local caching • Accumulate reviews over multiple fetches • Advanced deduplication ensures no duplicates • Fully secure with XSS protection
✨ KEY FEATURES
LIVE MODE
Fetches reviews directly from Google Places API in real-time. Always displays the most current customer feedback on every page load.
SAVE MODE
Fetch once and persist locally in your database. Dramatically reduces API costs and accelerates page load performance.
SMART FILTERING
Set minimum star rating thresholds and review count limits. Display only your highest-rated feedback to build maximum trust.
SORTING OPTIONS
Sort reviews by latest, highest rating or lowest rating. Full control over the presentation order of your testimonials.
CUSTOM BRANDING
Configure the background color of your reviews section to match your website's brand identity perfectly.
BACKEND MANAGEMENT
Full CRUD access to saved reviews from your Odoo backend. Edit, curate and manage your review collection with ease.
Automatically retrieves reviews using both most_relevant and newest sort orders from Google Places API, yielding up to 10 unique reviews per batch. In Save Mode, reviews accumulate over multiple fetches with intelligent deduplication — build a comprehensive review library over time without any manual effort.
⚙ QUICK SETUP
- Navigate: Go to Website → Configuration → Settings → Google Reviews
- Credentials: Enter your Google API Key and Place ID
- Mode: Choose Live Mode (real-time) or enable Save Mode (cached locally)
- Filters: Configure rating threshold, review limit and sorting
- Deploy: Drag the Google Reviews snippet onto any page from Website Builder
📸 SCREENSHOTS
Settings panel with API credentials, mode selection and filtering options
Google Reviews configuration under Website settings tab
Backend review management with full CRUD operations
🔧 TECHNICAL HIGHLIGHTS
| Security | XSS-protected rendering, sanitized controller responses |
| JS Architecture | Odoo 15 publicWidget pattern with lifecycle management |
| API Integration | Google Places API with dual-fetch and deduplication |
| Error Handling | Structured UserError propagation with server-side logging |
| Frontend | Modular external CSS, auto-sliding carousel with cleanup |
🏆 WHY CHOOSE THIS MODULE?
- 💰 Save Mode — Dramatically reduce API costs and speed up your website
- ⚡ Live Mode — Always display the most current customer feedback
- 🎯 Smart Filtering — Show only your best reviews with rating and count filters
- 🔄 Flexible Sorting — Display reviews in the order that works best for you
- 🎨 Brand Consistency — Custom background colors and full design control
- 🛠 Manual Control — Manage reviews directly from your Odoo backend
- 🔒 Security First — XSS-protected rendering and hardened error handling
💬 SUPPORT & CONTACT
Author: Ahson Mahmood
Website: ahsonmahmood.com
Email: contact@ahsonmahmood.com
LinkedIn: linkedin.com/in/ahsonmahmood
📋 CHANGE LOG
v0.3 — Latest
- Resolved critical XSS security vulnerability in review rendering
- Migrated JavaScript architecture to Odoo 15 publicWidget system
- Restructured settings integration under Website configuration tab
- Implemented dual-fetch strategy for up to 10 unique reviews per batch
- Introduced intelligent review accumulation with persistent storage
- Engineered advanced deduplication across Live and Save modes
- Optimized frontend asset pipeline with proper CSS registration
- Refactored all inline styles into modular external stylesheet
- Integrated contextual editor placeholder for seamless website editing
- Hardened error handling with structured UserError propagation
- Fortified controller responses against information disclosure
- Implemented comprehensive server-side diagnostic logging
- Resolved memory leak with proper auto-slider lifecycle management
- Refined snippet template layout with CSS-driven image alignment
- Corrected manifest asset declarations and image references
- Enhanced review model with proper record name configuration
v0.2
- Added background-color picker for reviews section
- Introduced rating, limit, and sorting filters
- Filters work on Live and Save mode both
- Enhanced Live & Save Mode synchronization
- Improved Odoo settings layout
- Optimized controller + API performance
- Fixed responsive alignment issues
v0.1
- Initial release of Google Reviews Snippet
- Integrated Google Places API (Live Mode)
- Implemented Save Mode with caching
- Created responsive review display layout
- Added configuration for API Key & Place ID
COMPATIBLE WITH
Odoo 15
DEPENDENCIES
Website
LICENSE
Odoo Proprietary License v1.0
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module