Skip ke Konten
Odoo Menu
  • Login
  • Uji coba gratis
  • Aplikasi
    Keuangan
    • Akuntansi
    • Faktur
    • Pengeluaran
    • Spreadsheet (BI)
    • Dokumen
    • Tanda Tangan
    Sales
    • CRM
    • Sales
    • POS Toko
    • POS Restoran
    • Langganan
    • Rental
    Website
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Rantai Pasokan
    • Inventaris
    • Manufaktur
    • PLM
    • Purchase
    • Maintenance
    • Kualitas
    Sumber Daya Manusia
    • Karyawan
    • Rekrutmen
    • Cuti
    • Appraisal
    • Referensi
    • Armada
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Acara
    • Otomatisasi Marketing
    • Survei
    Layanan
    • Project
    • Timesheet
    • Layanan Lapangan
    • Meja Bantuan
    • Planning
    • Appointment
    Produktivitas
    • Diskusi
    • Approval
    • IoT
    • VoIP
    • Pengetahuan
    • WhatsApp
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • Industri-Industri
    Retail
    • Toko Buku
    • Toko Baju
    • Toko Furnitur
    • Toko Kelontong
    • Toko Hardware
    • Toko Mainan
    Makanan & Hospitality
    • Bar dan Pub
    • Restoran
    • Fast Food
    • Rumah Tamu
    • Distributor Minuman
    • Hotel
    Real Estate
    • Agensi Real Estate
    • Firma Arsitektur
    • Konstruksi
    • Estate Management
    • Perkebunan
    • Asosiasi Pemilik Properti
    Konsultansi
    • Firma Akuntansi
    • Mitra Odoo
    • Agensi Marketing
    • Firma huku
    • Talent Acquisition
    • Audit & Sertifikasi
    Manufaktur
    • Tekstil
    • Logam
    • Perabotan
    • Makanan
    • Brewery
    • Corporate Gift
    Kesehatan & Fitness
    • Sports Club
    • Toko Kacamata
    • Fitness Center
    • Wellness Practitioners
    • Farmasi
    • Salon Rambut
    Perdagangan
    • Handyman
    • IT Hardware & Support
    • Sistem-Sistem Energi Surya
    • Pembuat Sepatu
    • Cleaning Service
    • Layanan HVAC
    Lainnya
    • Organisasi Nirlaba
    • Agen Lingkungan
    • Rental Billboard
    • Fotografi
    • Penyewaan Sepeda
    • Reseller Software
    Browse semua Industri
  • Komunitas
    Belajar
    • Tutorial-tutorial
    • Dokumentasi
    • Sertifikasi
    • Pelatihan
    • Blog
    • Podcast
    Empower Education
    • Program Edukasi
    • Game Bisnis 'Scale Up!'
    • Kunjungi Odoo
    Dapatkan Softwarenya
    • Download
    • Bandingkan Edisi
    • Daftar Rilis
    Kolaborasi
    • Github
    • Forum
    • Acara
    • Terjemahan
    • Menjadi Partner
    • Layanan untuk Partner
    • Daftarkan perusahaan Akuntansi Anda.
    Dapatkan Layanan
    • Temukan Mitra
    • Temukan Akuntan
    • Temui penasihat
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Akuntansi
  • Inventaris
  • PoS
  • Project
  • MRP
All apps
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Help

use the input by customer in free text attributes in odoo v18 online

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
3 Replies
1215 Tampilan
Avatar
Bala Yaswanth

Hi I need help.. I created gift card product in ,odoo 18 enterprise online version ,with free text attributes recepient email and custom message, these fields should enable customer to input recepient email and message that should be used to send automed email gift card. these input appear  in sales order line but i could not fetch them to store in model and later use them to send email using a new template or modify the email template that odoo automatically sends. I used automated action on loyality card model with executable code. this code did not give error while saving but stops the sales order confirmation step.

the following code is used to fetch those stored details

mail = line.product_custom_attribute_value_ids.filtered(lambda a: a.custom_product_template_attribute_value_id.name == 'Email').name

                message = line.product_custom_attribute_value_ids.filtered(lambda a: a.custom_product_template_attribute_value_id.name == 'Message').name 


this does not work

               

How could i fetch the values the customer inputs in free text attribute values. is there any alternative way to achieve this functionality.


Thanks in advance

0
Avatar
Buang
Avatar
Ritik (Wan Buffer Services)
Jawaban Terbai

In Odoo 18 Enterprise Online, free text attributes allow customers to input values such as recipient email and a custom message during a sale. However, the system does not automatically store these values in a structured way that enables further use, like triggering automated actions or sending emails.

To properly store and use the input data, consider the following approaches:

  1. Custom Fields on Sale Order Line – Extend the sale order line model (sale.order.line) to store the free text attribute values explicitly.
  2. Automated Action with Python Code – Ensure your automated action correctly retrieves attribute values from sale.order.line and links them to the required model.
  3. Odoo Studio or Custom Module – Use Odoo Studio or develop a module to capture and store these attributes properly within the database.
  4. Email Automation via Server Actions – Create a server action that retrieves the stored values and triggers email automation.

At Wan Buffer Services, we specialize in Odoo customization and can assist in implementing a structured workflow to capture and process customer inputs efficiently.

0
Avatar
Buang
Avatar
Odiware Technologies
Jawaban Terbai

To fetch customer-inputted free text attributes in Odoo 18 from the sales order line, use the correct model relations. Your current code is trying to access name, but for free text attributes, the value is stored differently. Try this:

Corrected Code:

python

CopyEdit

email_attr = line.product_custom_attribute_value_ids.filtered( lambda a: a.custom_product_template_attribute_value_id.name == 'Email' ).custom_value message_attr = line.product_custom_attribute_value_ids.filtered( lambda a: a.custom_product_template_attribute_value_id.name == 'Message' ).custom_value

Why This Works:

  • custom_value stores the actual user input for free text attributes.
  • name is used for attribute names, not values.

Alternative Approach:

If you still have issues, you can store the values in a custom field in sale.order.line during order confirmation and later use them for the email template.

0
Avatar
Buang
Avatar
Bala Yaswanth
Penulis Jawaban Terbai

need help in implementing few functionality in webshop 

1.The current eCommerce filter for the "color" attribute lists all 1500 colors, making it difficult for customers to filter products effectively. Instead of listing all colors, we need to group colors into 14 main colors and only display these in the filtering options. I tried changing the html script of shop page and the java script but did not work out for me. 

2. Gift card. The website should allow customer to input the message which should appear in the gift card email sent automatically and the template the customer selects should be in place of standard image in the email. Validity should be one year. I created a gift card product with multiple price varinats and template. I had issues updating the expiry date in automation rules and editing the email template

3. Return voucher: the gift card can be used for refund. However this gift card should be valid for three months and the orders placed using that specific gift voucher should not be returnable. 

I tried to do these using the automated actions and modifying html ,however could not achieve the functionality. So I am looking for some tips or support on this.

0
Avatar
Buang
Menikmati diskusi? Jangan hanya membaca, ikuti!

Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!

Daftar
Komunitas
  • Tutorial-tutorial
  • Dokumentasi
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Terjemahan
Layanan
  • Odoo.sh Hosting
  • Bantuan
  • Peningkatan
  • Custom Development
  • Pendidikan
  • Temukan Akuntan
  • Temukan Mitra
  • Menjadi Partner
Tentang Kami
  • Perusahaan kami
  • Aset Merek
  • Hubungi kami
  • Tugas
  • Acara
  • Podcast
  • Blog
  • Pelanggan
  • Hukum • Privasi
  • Keamanan
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo adalah rangkaian aplikasi bisnis open source yang mencakup semua kebutuhan perusahaan Anda: CRM, eCommerce, akuntansi, inventaris, point of sale, manajemen project, dan seterusnya.

Mudah digunakan dan terintegrasi penuh pada saat yang sama adalah value proposition unik Odoo.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now