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

Pre-selecting products in orders depending on customer ...

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
productorder
3 Replies
2726 Tampilan
Avatar
Reto Schmid

Hi all


I offer products (e.g. "computing course") to various customers (e.g. "school XY").

These products are customer-specific (e.g. "computing course" for "school XY").


When looking the the proper product on the oder line, odoo should list only the products relevant for the respective customer.


I've tried / thought about the following:

Approach

Comment

Drawback

Adding a prefix to the product name reflecting the customer name.


This prefix is shown on the order  too. This "concatenated product name" is not in line with the product name the customers expects.

Entering the customer name in the field "internal reference" of the product.

That seems to work.

However, it seems to add the "internal reference" to the order which is not in line with the product description the customers expects.

Creating order templates per customer with all the products for this very customer.

By design, odoo adds all the products from the selected template.

Every time I have to manually remove the product line, which is not needed in tha particular sales order.

Moreover, trying to add later on a product - that I removed earlier - leads me again in the position of finding products of other customers. This is what I tried to avoid to begin with.

Do you have an idea how to "pre-select" the subset of relevant products in the product selection field of the oder line?


Thanks a lot

1
Avatar
Buang
Avatar
Chris TRINGHAM
Jawaban Terbai

It's simple to do in Odoo Studio if you have that installed:

1. Add a many2many field on products for a list of customers who will buy the product

2. Add this field to the domain for the product code, something like this


["&", ("sale_ok", "=", True), ("x_studio_customer", "=", parent.partner_id)]

More information: Adding fields using Odoo Studio - please me know if you need more details on this!

Or the same could be achieved by manually adding the field and displaying it in the Form View.  

0
Avatar
Buang
Reto Schmid
Penulis

Hi Chris
Many thanks for your support. I'm very new to odoo. I've installed Studio now and went through the respective documentation and videos.

Reto Schmid
Penulis

I added a new tab to customer called "CU related product" (CU stands for "customization").
I added the many2many field called "CU product of customer".
This part seems to work. I can add / reference products for a specific customer.

I don't understand your comment "add this field to the domain". Can you give me one more hint?

Now, I would like to make sure in my "sales order" to make this new field "CU related product" available in my "product search" in my "sales order -> line item".
This is where I get stuck. Even trying to add this field "CU related product" to "user defined search" does not work, because my new field "CU related product" is not available.

Can you please give me some more hints?

Thank you very much for your support
Reto

Chris TRINGHAM

I added an example above - the domain is matching the customer on the product with the customer on the sales order. This probably isn't exactlly what you want, but maybe it helps.

Reto Schmid
Penulis

Thanks again!!!!
I believe this is exactly what I'm looking for.
However, entering below code in the field "domain" of "product" in "order lines", I'm getting the error message "This domain is not supported".

Do you have an idea what is wrong with "my" code? I also tried out various alternatives with " and '. It did not help. The name of my new attribute is 'CU_product_of_partner' (I changed it compared to my orignal message, since I thought odoo doesn't like spaces in names).

Thank you once more. Thank you for your valuable time and expertise. I really appreciate this a lot!!!

========================

<data>
  <xpath expr="//field[@name='product_template_id']" position="attributes">
    <attribute name="domain">["&amp;", ("sale_ok", "=", True), ("CU_product_of_partner", "=", parent.partner_id)]</attribute>
  </xpath>
</data>
["&", ("sale_ok", "=", True), ("CU_product_of_partner", "=", parent.partner_id)]

========================

I also tried this option. However, I got the same error message:
<data>
  <xpath expr="//field[@name='product_template_id']" position="attributes">
    <attribute name="CU_product_of_partner">["&amp;", ("sale_ok", "=", True), ("CU_product_of_partner", "=", parent.partner_id)]</attribute>
  </xpath>
</data>
["&", ("sale_ok", "=", True), ("CU_product_of_partner", "=", parent.partner_id)]

Chris TRINGHAM

If you are using Studio, the field name should be something like x_studio_cu_product_of_partner. This is a field on product.product / product.template that contains the customer for a product.

Avatar
Reto Schmid
Penulis Jawaban Terbai

Thanks for your thoughts.


The functionality looks promising.


However ... correct me, if I'm wrong:

  • It's not available for "odoo online"; and I am on "odoo online".
  • It's available for odoo V 16.0 but not V 17.0; which I guess is not an issue, right?


Regards

Reto

0
Avatar
Buang
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Jawaban Terbai

Hi,
Please go through our blog 'Product Recommendations in Sales Order'

https://www.cybrosys.com/blog/product-recommendation-in-sales-order-odoo-app

Try this app,

https://apps.odoo.com/apps/modules/13.0/product_recommendation_in_sales_order/


Hope it helps

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

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

Daftar
Post Terkait Replies Tampilan Aktivitas
What field activates the "order grid entry" option in a product ?
product order grid
Avatar
1
Des 23
2454
How to define order units for products? Diselesaikan
product order unit
Avatar
Avatar
Avatar
Avatar
3
Okt 21
10157
[Sales App] add automatically a product B if product A is added to order
sales product order
Avatar
Avatar
Avatar
3
Agu 20
5062
Sales order line pop-up Diselesaikan
sales product order
Avatar
Avatar
Avatar
Avatar
5
Okt 19
9812
How to disable product autocomplete?
product
Avatar
Avatar
Avatar
2
Sep 25
823
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