Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Schvalování
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Jídlo a pohostinství
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Penzion
    • Distributor nápojů
    • Hotel
    Nemovitost
    • Realitní kancelář
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Poradenství
    • Účetní firma
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textil
    • Kov
    • Nábytek
    • Jídlo
    • Pivovar
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Transakce
    • Údržbář
    • Podpora IT & hardware
    • Systémy solární energie
    • Výrobce obuvi
    • Úklidové služby
    • Služby HVAC
    Ostatní
    • Nezisková organizace
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Procházet všechna odvětví
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Služby pro partnery
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účetnictví
  • Sklad
  • PoS
  • Projekty
  • MRP
All apps
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
Pomoc

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

Odebírat

Get notified when there's activity on this post

This question has been flagged
productorder
3 Odpovědi
2778 Zobrazení
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
Zrušit
Avatar
Chris TRINGHAM
Nejlepší odpověď

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
Zrušit
Reto Schmid
Autor

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
Autor

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
Autor

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
Autor Nejlepší odpověď

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
Zrušit
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Nejlepší odpověď

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

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

Přihlásit se
Related Posts Odpovědi Zobrazení Aktivita
What field activates the "order grid entry" option in a product ?
product order grid
Avatar
1
pro 23
2494
How to define order units for products? Vyřešeno
product order unit
Avatar
Avatar
Avatar
Avatar
3
říj 21
10234
[Sales App] add automatically a product B if product A is added to order
sales product order
Avatar
Avatar
Avatar
3
srp 20
5106
Sales order line pop-up Vyřešeno
sales product order
Avatar
Avatar
Avatar
Avatar
5
říj 19
9883
How to disable product autocomplete?
product
Avatar
Avatar
Avatar
2
zář 25
880
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة 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 je balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

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