Odoo
Implementation
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Inventory (stock)
• Purchase (purchase) • Discuss (mail) • Invoicing (account) |
| Lines of code | 591 |
| Technical Name |
lb_purchase_translation |
| License | LGPL-3 |
| Website | https://lucidbrainz.com |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Inventory (stock)
• Purchase (purchase) • Discuss (mail) • Invoicing (account) |
| Lines of code | 591 |
| Technical Name |
lb_purchase_translation |
| License | LGPL-3 |
| Website | https://lucidbrainz.com |
Bilingual Purchase Order Reports - Arabic/English Auto Translation
Dynamic Translation of Purchase Orders & RFQs Based on User Language in Odoo 17
Overview
Bilingual Purchase Order Reports by LucidBrainz is an intelligent translation solution for Odoo 17 that automatically translates purchase orders and request for quotation (RFQ) 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 vendor names, addresses, product descriptions, order notes, tax labels, buyer information, warehouse details, and all UI elements into Arabic or English with zero manual effort. Perfect for international procurement, multi-language companies, import firms, Middle East operations, and any organization dealing with Arabic and English-speaking suppliers. 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 purchase 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 purchase 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 supplier communication, provide localized procurement documentation, improve vendor relations, support multilingual teams, and deliver professional bilingual purchase orders and RFQs!
Key Features
- Automatic Language Detection: Intelligently detects user's language preference (Arabic/English) and automatically translates entire purchase order and RFQ reports accordingly
- Google Translate Integration: Powered by Google Translate API for accurate, real-time translation of vendor names, addresses, product descriptions, buyer names, and notes
- Vendor & Partner Translation: Translates vendor/supplier names, complete addresses (street, city, state, country), VAT numbers, and contact information dynamically
- Product Description Translation: Automatically translates product names, detailed descriptions, specifications, and handles complex product information (500+ character descriptions)
- Unit of Measure Translation: Translates UOM names (Units, Dozens, Kg, Liters, etc.) using Odoo's built-in translation system for consistency
- Order Notes Translation: Translates purchase order notes, terms & conditions, special instructions, and HTML content by intelligently stripping tags and translating text
- Tax & Financial Labels: Translates tax names, tax labels, subtotals, totals, untaxed amounts, and all financial terminology in reports
- Buyer/User Translation: Translates buyer/purchaser names to maintain consistency across the entire report in the target language
- Reference Field Translation: Translates partner reference ("Your Order Reference") field for complete vendor communication
- Bilingual Report Headers: All headers like "Purchase Order", "Request for Quotation", "Buyer", "Order Date", "Vendor Reference" automatically appear in Arabic (أمر شراء، طلب عرض أسعار، المشتري) or English
- Table Headers Translation: Description (الوصف), Quantity (الكمية), Date Required (التاريخ المطلوب), Unit Price (سعر الوحدة), Discount (خصم), Taxes (الضرائب), Amount (المبلغ) - all translated
- Warehouse Information Translation: Translates warehouse names and shipping addresses ("عنوان الشحن") for complete location details
- Company Details Translation: Translates company name, company address, and all company-related information in report headers
- 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, purchase.order, purchase.order.line, res.company, and stock.warehouse models for comprehensive translation coverage
- Shipping Address Translation: Translates delivery/destination addresses with proper labels showing warehouse locations in target language
- RFQ to PO Conversion: Maintains translated content when converting Request for Quotations to confirmed Purchase Orders
- Document State Translation: Translates order states - Draft/RFQ (طلب عرض أسعار), Purchase Order (أمر شراء), Cancelled (ملغى) based on document status
- Date Labels Translation: Translates date-related labels like "Order Date" (تاريخ الطلب), "Order Deadline" (الموعد النهائي للطلب), "Date Required" (التاريخ المطلوب)
- PDF Report Integration: Seamlessly integrates with Odoo's PDF report generation, producing beautiful bilingual purchase orders and RFQs
- Print Preview Support: Translated content appears correctly in both print preview and final PDF downloads
- Financial Totals Translation: Translates "Subtotal" (المجموع الفرعي), "Untaxed Amount" (المجموع غير الخاضع للضريبة), "Total" (الإجمالي) labels
- Discount Field Translation: Translates discount column headers and related fields for complete pricing visibility
- Enhanced Vendor Experience: International vendors receive RFQs and POs 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_purchaseorder_document and report_purchasequotation_document templates without replacing them, ensuring upgrade compatibility
- Multi-Company Compatible: Works perfectly in multi-company environments with different language preferences per company
- Stock Integration: Full compatibility with purchase_stock module for warehouse and delivery management with translated addresses
- 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
- Tax Invoice Labels: Translates tax-related labels including "Tax ID" (الرقم الضريبي) for proper fiscal documentation
- Template Priority Management: Uses proper priority levels for template inheritance ensuring no conflicts with other modules
Module Screenshots
User preferences showing English and Arabic language options. Users can select their preferred language for automatic purchase report translation.
Arabic user viewing purchase order with translated vendor address, product descriptions, buyer name, and all UI elements in Arabic. Notice the RTL layout and Arabic text for all fields.
Generated PDF showing English Request for Quotation with vendor details, product descriptions, table headers (Description, Qty, Unit Price, Taxes, Amount), and complete financial summary.
Same RFQ in Arabic showing complete translation: vendor address, buyer name (المشتري), product descriptions (الوصف), table headers (الكمية، سعر الوحدة، الضرائب، المبلغ), and totals (المجموع الفرعي، الإجمالي). Perfect RTL layout for Arabic users.
Confirmed purchase order showing "Purchase Order" (أمر شراء) header instead of RFQ, with order date (تاريخ الطلب), warehouse shipping address (عنوان الشحن), and all financial details in Arabic.
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