Odoo
Implementation
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Sales (sale_management) • Discuss (mail) |
| Lines of code | 458 |
| Technical Name |
lb_sale_order_translation |
| License | LGPL-3 |
| Website | https://lucidbrainz.com |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Sales (sale_management) • Discuss (mail) |
| Lines of code | 458 |
| Technical Name |
lb_sale_order_translation |
| License | LGPL-3 |
| Website | https://lucidbrainz.com |
Bilingual Sale Order Reports - Arabic/English Auto Translation
Dynamic Translation of Sale Orders & Quotations Based on User Language in Odoo 17
Overview
Bilingual Sale Order Reports by LucidBrainz is an intelligent translation solution for Odoo 17 that automatically translates sale orders and quotation reports based on the user's language preference. Say goodbye to manual translation and language barriers! This smart module seamlessly converts all report elements including customer names, addresses, product descriptions, order notes, tax labels, payment terms, and all UI elements into Arabic or English with zero manual effort. Perfect for international businesses, multi-language companies, export-import firms, Middle East operations, and any organization serving Arabic and English-speaking customers. The module features automatic language detection, Google Translate API integration, dynamic field translation, bilingual report headers, intelligent HTML content handling, and fallback mechanisms for failed translations. It extends Odoo's native sale order reports without modifying core functionality, ensuring upgrade safety and clean compatibility. The system automatically detects the logged-in user's language setting and translates the entire sale order PDF into their preferred language. When Arabic users generate reports, everything appears in Arabic (right-to-left), and English users see professional English reports. Ideal for businesses that want to enhance customer experience, provide localized documentation, improve communication, support multilingual teams, and deliver professional bilingual quotations and orders!
Key Features
- Automatic Language Detection: Intelligently detects user's language preference (Arabic/English) and automatically translates entire sale order reports accordingly
- Google Translate Integration: Powered by Google Translate API for accurate, real-time translation of customer names, addresses, product descriptions, and notes
- Customer & Partner Translation: Translates partner names, complete addresses (street, city, state, country), invoice addresses, and shipping addresses dynamically
- Product Description Translation: Automatically translates product names, detailed descriptions, unit of measures, and long product specifications (handles 500+ character descriptions)
- Order Notes Translation: Translates order notes, terms & conditions, payment term notes, and HTML content by intelligently stripping tags and translating text
- Tax & Financial Labels: Translates tax names, tax labels, subtotals, totals, rounding amounts, and all financial terminology in reports
- Salesperson Translation: Translates salesperson/user names to maintain consistency across the entire report in the target language
- Bilingual Report Headers: All headers like "Quotation", "Order", "Your Reference", "Order Date", "Salesperson" automatically appear in Arabic (عرض أسعار، طلب، مرجعك) or English
- Table Headers Translation: Description (الوصف), Quantity (الكمية), Unit Price (سعر الوحدة), Discount (خصم), Taxes (الضرائب), Amount (المبلغ) - all translated
- Arabic Language Support: Detects Arabic language (ar_*) and translates everything into professional Arabic with proper formatting and right-to-left text support
- English Language Support: For all non-Arabic users, automatically translates content into English ensuring consistent English reports
- Fallback Mechanism: If translation fails due to network issues or API errors, automatically displays original text ensuring reports always generate successfully
- HTML Content Handling: Intelligently strips HTML tags from notes and terms & conditions before translation, then preserves formatting in output
- Computed Fields Approach: Uses Odoo computed fields for translation, ensuring clean data model without modifying database structure permanently
- Multiple Model Support: Extends res.partner, sale.order, sale.order.line, and account.payment.term models for comprehensive translation coverage
- Invoice & Shipping Addresses: Separately translates invoice address and shipping address with proper labels ("عنوان الفاتورة", "عنوان الشحن")
- PDF Report Integration: Seamlessly integrates with Odoo's PDF report generation, producing beautiful bilingual quotations and sale orders
- Print Preview Support: Translated content appears correctly in both print preview and final PDF downloads
- Client Order Reference: Translates client order reference field for complete consistency across all order information
- Enhanced Customer Experience: International customers receive quotations in their native language, improving communication and professional appearance
- Zero Configuration Setup: Install the module and start using immediately - translation happens automatically based on user language settings
- Inherits Native Reports: Extends Odoo's standard report_saleorder_document template without replacing it, ensuring upgrade compatibility
- Multi-Company Compatible: Works perfectly in multi-company environments with different language preferences per company
- Quotation to Order Conversion: Maintains translated content when converting quotations to confirmed orders
- Real-Time Translation: Translates content on-the-fly when report is generated, ensuring latest content is always properly translated
- Non-Stored Computed Fields: Translation fields are computed (not stored), keeping database clean and reducing storage requirements
- Clean Code Architecture: Well-structured Python code with proper inheritance, error handling, and logging for easy maintenance
- Error Handling: Robust exception handling ensures report generation never fails even if translation API is unavailable
- Upgrade Safe: Module design ensures compatibility with future Odoo versions and easy uninstallation without data corruption
Module Screenshots
Add Languages dialog showing Arabic and English options. Users can select their preferred language for automatic report translation.
Same dialog in Arabic showing RTL (right-to-left) interface. Module detects Arabic language and translates entire interface.
Arabic user viewing sale order with translated customer address, product descriptions, and all UI elements in Arabic. Notice the RTL layout and Arabic text for all fields.
Generated PDF showing complete Arabic translation: customer address (عنوان الفاتورة), product descriptions (الوصف), table headers (الكمية، سعر الوحدة، الضرائب، المبلغ), and totals (المجموع غير الخاضع للضريبة، الإجمالي).
Our Services
Odoo
Customization
Odoo
Migration
Support &
Maintenance
📞 Contact Us
WhatsApp:
Email:
Website: |
🌐 Follow Us📘 Facebook 📸 Instagram 💼 LinkedIn 🎥 YouTube |
© 2025 LucidBrainz | All Rights Reserved
Please log in to comment on this module