İç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

Print price list with variants values

Abone Ol

Get notified when there's activity on this post

Bu soru işaretlendi
pricelistsvariants
2 Cevaplar
3440 Görünümler
Avatar
Roberto Barreiro

I'm ussing Odoo8, and to print price list I click on "Sales/Product variants/Print Pricelist", but it only prints product code, product name, and price, so the only way to distinguish one product variant from another is to look at the code, which is very uncomfortable, and unacceptable to customers. I would like the values of the variants to be displayed next to the product name. I know the view used to print this template is "report_pricelist" but I can't get the attribute values for each variant to print.

I have tried adding the line "<span t-esc =" p.get ['attribute_value_ids.value'] "/>" but I get the following error:


QWebException: "attribute_value_ids.value" when evaluating

"p ['attribute_value_ids.value']"


Any hints on how I can get to print the value of the variant attributes?

0
Avatar
Vazgeç
Avatar
Roberto Barreiro
Üretici En İyi Yanıt

.

0
Avatar
Vazgeç
Avatar
Hedge
En İyi Yanıt

Hi !

I recently have the same question, I used :
<t t-esc="<your-attribute-query-name.product_template_attribute_value_ids.name" class=""/>

hope it help, and I've well understood your question ;-D

Have a nice day,
Hedge

0
Avatar
Vazgeç
Roberto Barreiro
Üretici

Thanks for your answer, but I don't really understand the "your-attribute-query-name" part. To give an example with a standard attribute, you mean in the case of the "color" attribute the correct code would be <t t-esc="color.product_template_attribute_value_ids.name" class=""/>

I tryied it but it doesn't work, in my particular case I get the following error:

QWebException: "'NoneType' object has no attribute 'product_template_attribute_value_ids'" while evaluating 'color.product_template_attribute_value_ids.name'

Hedge

In fact, first in the .py file under controller folder I have a request

produits=request.env['product.template'].search([('is_published','=',True),('qty_available','>',0)],0,200,'id desc ')

In the xml file :

<t t-foreach="produits" t-as="toto"> <= this "connect" with the request in .py file.

<t t-set="attribute" t-value="toto.product_variant_ids" /> <= this make a "query" of attribute aka variants note the name 'toto' that make "link"

<t t-foreach="attribute" t-as="tutu"> <= this connect with the "attribute" request

and then :

<t t-esc="tutu.product_template_attribute_value_ids.name" class=""/> <= this show each attribute name resulting from tutu

So you can replace Tutu and toto by your query name's :)

<of course, remove my explanations begining by <= :-D)

Hope its help

Roberto Barreiro
Üretici

That's usefull! Thanks, I was trying to modifify the price_list view, but I will try to develop an addon with your info.

Hedge

With pleasure !!

I've been helped, my turn to help ;-)

Roberto Barreiro
Üretici

Excuseme folk, can you tell how you have defined the class and the function at the py controller?

Hedge

with odoo.sh or if your run odoo locally

But perhaps you can simply try to use :

p.get ['attribute_value_ids.name’] in code in place of .value

Roberto Barreiro
Üretici

No way to make it work, I will contact somebody to do the work. Thank you any way ;)

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
İlgili Gönderiler Cevaplar Görünümler Aktivite
How do i set set prices for Variants?
sales pricelists variants
Avatar
Avatar
Avatar
Avatar
Avatar
4
Eki 23
3168
How to import Products Variants specific data
variants
Avatar
Avatar
2
Ağu 25
1239
Tiered discounts Çözüldü
pricelists
Avatar
Avatar
1
Nis 25
1886
Missing Advanced & Multiple Pricelist functions Çözüldü
pricelists
Avatar
Avatar
1
Kas 24
2179
Assign pricelists to a group of customers Çözüldü
pricelists
Avatar
Avatar
1
Mar 24
3977
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