Odoo
Implementation
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Invoicing (account) |
| Lines of code | 205 |
| Technical Name |
all_field_translate_in_arabic |
| License | OPL-1 |
| Website | https://lucidbrainz.com |
| Versions | 15.0 16.0 17.0 18.0 19.0 |
All Field Translate in Arabic - Dynamic Translation Module
Dynamic Field Selection | Real-Time Arabic Translation | Google Translate API Integration | Zero Database Storage
Overview
All Field Translate in Arabic by LucidBrainz is an intelligent translation solution for Odoo 15 that provides dynamic Arabic translation capabilities for any customer/partner field. This innovative module allows administrators to select which field should be translated to Arabic through a simple dropdown in General Settings, with translations appearing instantly in real-time using Google Translate API. The module features a computed field architecture that translates selected field values on-the-fly without storing translation data in the database, ensuring zero storage overhead and maximum flexibility. Administrators can dynamically switch between different fields (Name, Email, Phone, Address, City, Country, etc.) and see translations update immediately across all customer records. The system intelligently handles various field types including text fields, Many2one relationships, and foreign keys, automatically extracting display names when needed. Built with comprehensive error handling, detailed logging for debugging, and automatic recomputation when source field values change through @api.depends decorators. The module uses Google Translate's free API endpoint with no authentication required, providing reliable translation service with proper timeout and connection error handling. Perfect for businesses operating in Arabic-speaking regions, companies requiring multilingual customer data display, organizations needing flexible translation field selection, and enterprises wanting zero-impact translation solutions. The lightweight Python implementation adds only one computed field to res.partner model and one configuration model for storing selected field preferences. Settings are persisted using a separate all.translate.config model ensuring configuration survives database restarts and user logouts. The module activates immediately after installation with no data migration, no complex setup wizards, and no manual configuration files. Simply install, select your field from Settings, and watch real-time Arabic translations appear instantly in customer forms. Ready to add professional Arabic translation capabilities to your Odoo system!
Key Features
- Dynamic Field Selection: Choose ANY res.partner field (Name, Email, Phone, Address, City, Country, etc.) from Settings dropdown and switch anytime with instant updates
- Real-Time Translation: Instant Arabic translations using computed fields with store=False - no database storage, automatic updates via @api.depends
- Google Translate API: Free API integration with auto language detection and reliable Arabic translation - no authentication required
- Zero Database Impact: Translations computed on-the-fly without database writes - handle millions of records with zero storage overhead
- Many2one Field Support: Intelligently handles foreign keys (state_id, country_id) by extracting display names automatically
- Error Handling: Comprehensive try-except blocks with user-friendly messages for API failures, timeouts, and connection errors
- Timeout Protection: 10-second API timeout prevents system hangs - ensures responsive UI even with poor connectivity
- Readonly Translation Field: Professional "Translated Value (Arabic)" field displays prominently in customer forms - users can view but not edit
- Universal Compatibility: Works across all customer records - individuals, companies, delivery addresses, and shows in Contacts, Sales, Invoicing modules
- Minimal Dependencies: Only requires 'requests' Python library - compatible with both Odoo Community and Enterprise editions
- Clean Architecture: Extends models using _inherit - no database migrations, coexists with other partner customizations
- Arabic RTL Display: Properly renders right-to-left Arabic script with full support for diacritics and special characters
- Instant Activation: Works immediately after installation - no setup wizard, CSV imports, or manual configuration needed
- Lightweight Code: Just 2 Python files, 2 XML views, 1 CSV - under 300 lines total with minimal memory/CPU usage
How It Works
Step 1: Select Field to Translate
Administrator navigates to Settings → General Settings → Sales and
selects desired field (Name, Address, Email, Phone, etc.) from the "Field to
Translate" dropdown. Configuration saves permanently in all.translate.config
model and persists across sessions.
Step 2: Open Customer Form
User opens any customer record from Contacts → Customers. System
automatically triggers _compute_translated_value_ar() method which
retrieves the selected field configuration from settings and extracts the field value
from customer record.
Step 3: Translate via Google API
Module sends field value to Google Translate free API
(translate.googleapis.com) with parameters: auto-detect source language,
target language Arabic. API returns JSON response with translated text within 10-second
timeout.
Step 4: Display Translation
Arabic translation appears instantly in readonly "Translated Value
(Arabic)" field below customer address. Translation computed on-the-fly with
store=False ensuring zero database storage overhead.
Step 5: Real-Time Updates
When user edits the source field, @api.depends decorator automatically
triggers recomputation. New translation fetches and displays immediately without manual
refresh. Switch translation field anytime from Settings without module restart.
Odoo 15 All Field Translate in Arabic - Module Screenshots
Our Services
Odoo
Customization
Odoo
Migration
Support &
Maintenance
📞 Contact Us
WhatsApp:
Email:
Website: |
🌐 Follow Us📘 Facebook 📸 Instagram 💼 LinkedIn 🎥 YouTube |
© 2025 LucidBrainz | All Rights Reserved | License: LGPL-3 | Version: 15.0.1.0.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