İçereği Atla
Odoo Menü
  • Portal
  • Ücretsiz deneyin
  • Uygulamalar
    Finans
    • Muhasebe
    • Faturalama
    • Masraf Yönetimi
    • Elektronik Çizelge (BI)
    • Belgeler
    • İmza
    Satış
    • Müşteri İlişkileri Yönetimi (CRM)
    • Satış
    • Satış Noktası Mağaza
    • Satış Noktası Restoran
    • Abonelikler
    • Kiralama
    Web Sitesi
    • Web Sitesi Oluşturucu
    • eTicaret
    • Blog
    • Forum
    • Canlı Sohbet
    • eÖğrenme
    Tedarik Zinciri
    • Envanter
    • Üretim
    • Ürün Yaşam Döngüsü Yönetimi
    • Satın Alma
    • Bakım
    • Kalite
    İnsan Kaynakları
    • Çalışanlar
    • İşe Alım
    • İzin
    • Değerlendirme
    • Referans
    • Filo Yönetimi
    Pazarlama
    • Sosyal Medyada Pazarlama
    • E-posta ile Pazarlama
    • SMS ile Pazarlama
    • Etkinlikler
    • Pazarlama Otomasyonu
    • Anket
    Hizmetler
    • Proje Yönetimi
    • Çalışma Çizelgeleri
    • Saha Hizmeti
    • Yardım Masası
    • Planlama
    • Randevular
    Verimlilik
    • Sohbet
    • Onay
    • Nesnelerin İnterneti
    • VoIP
    • Bilgi Bankası
    • WhatsApp
    Üçüncü taraf uygulamalar Odoo Stüdyo Odoo Bulut Platformu
  • Sektörler
    Perakende satış
    • Kitapçı
    • Giyim Mağazası
    • Mobilya Mağazası
    • Gıda Marketi
    • Hırdavat Dükkanı
    • Oyuncak Dükkanı
    Gıda ve Konaklama
    • Bar ve Pub
    • Restoran
    • Fast Food Restoranı
    • Konuk Evi
    • İçecek Distribütörü
    • Otel
    Gayrimenkul
    • Emlak Acentesi
    • Mimarlık Firması
    • İnşaat
    • Emlak Yönetimi
    • Bahçe Tasarımı
    • Mülk Sahipleri Derneği
    Uzmanlık
    • Muhasebe Firması
    • Odoo Partner
    • Pazarlama Ajansı
    • Hukuk Firması
    • Yetenek Kazanımı
    • Denetim ve Belgelendirme
    Üretim
    • Tekstil
    • Metal
    • Mobilyalar
    • Gıda
    • Bira fabrikası
    • Kurumsal Hediye
    Sağlık ve Spor
    • Spor Kulübü
    • Optik Mağazası
    • Fitness Merkezi
    • Sağlıklı Yaşam Merkezi
    • Eczane
    • Kuaför Salonu
    Ticaret
    • Tamirci
    • BT Donanım & Destek
    • Güneş Enerjisi Sistemleri
    • Ayakkabı İmalatçısı
    • Temizlik Hizmetleri
    • HVAC Hizmetleri
    Diğerleri
    • Kar Amacı Gütmeyen Kuruluş
    • Çevre Ajansı
    • Reklam Panosu Kiralama
    • Fotoğrafçılık
    • Bisiklet Kiralama
    • Yazılım Bayisi
    Tüm Sektörlere Göz Atın
  • Topluluk
    Öğrenim
    • Eğitim Araçları
    • Dokümantasyon
    • Sertifikasyonlar
    • Eğitim Etkinlikleri
    • Blog
    • Podcast
    Eğitim ve Gelişim
    • Eğitim Programı
    • Scale Up! İşletme Oyunu
    • Odoo'yu Ziyaret Edin
    Yazılım
    • İndirin
    • Sürümleri Kıyaslayın
    • Sürümler
    İş Birliği
    • Github
    • Forum
    • Etkinlikler
    • Çeviriler
    • Partner Olun
    • Partnerler için Hizmetler
    • Muhasebe Firmanızı Kaydettirin
    Hizmetler
    • Partner Bulun
    • Muhasebeci Bulun
    • Bir danışmanla görüşün
    • Kurulum Hizmetleri
    • Müşteri Referansları
    • Destek
    • Sürüm Yükseltme
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Demo randevusu alın
  • Fiyatlandırma
  • Yardım

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

  • Müşteri İlişkileri Yönetimi
  • e-Commerce
  • Muhasebe
  • Envanter
  • PoS
  • Proje Yönetimi
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
Yardım

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

Abone Ol

Get notified when there's activity on this post

Bu soru işaretlendi
3 Cevaplar
1211 Görünümler
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
Vazgeç
Avatar
Ritik (Wan Buffer Services)
En İyi Yanıt

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
Vazgeç
Avatar
Odiware Technologies
En İyi Yanıt

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
Vazgeç
Avatar
Bala Yaswanth
Üretici En İyi Yanıt

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
Vazgeç
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Üye Ol
Topluluk
  • Eğitim Araçları
  • Dokümantasyon
  • Forum
Açık Kaynak
  • İndirin
  • Github
  • Runbot
  • Çeviriler
Hizmetler
  • Odoo.sh Hosting
  • Destek
  • Sürüm Yükseltme
  • Özel Geliştirmeler
  • Eğitim
  • Muhasebeci Bulun
  • Partner Bulun
  • Partner Olun
Hakkında
  • Şirketimiz
  • Pazarlama Gereçleri
  • İletişim
  • Kariyer
  • Etkinlikler
  • Podcast
  • Blog
  • Müşteriler
  • Hukuki • Gizlilik
  • Güvenlik
الْعَرَبيّة 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, müşteri ilişkileri yönetimi, eTicaret, muhasebe, envanter, satış noktası, proje yönetimi gibi şirketinizin tüm ihtiyaçlarını karşılayan bir açık kaynak işletme uygulamaları paketidir.

Odoo’nun eşsiz değer önermesi, aynı anda hem kullanımının çok kolay olup hem de tamamen entegre olmasıdır.

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