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

Difference between product.product and product.template

Odebírat

Get notified when there's activity on this post

This question has been flagged
productproduct.productproduct.template
2 Odpovědi
22320 Zobrazení
Avatar
Alf Olsen

Hi!

product.product vs product.template

I have already search quite a lot about this subject and studied the source code, but still cant wrap my head around it.

Example from the POS source code:
class ProductTemplate(models.Model):
_inherit = 'product.template'

available_in_pos = fields.Boolean(string='Available in Point of Sale', help='Check if you want this product to appear in the Point of Sale', default=True)
to_weight = fields.Boolean(string='To Weigh With Scale', help="Check if the product should be weighted using the hardware scale integration")
pos_categ_id = fields.Many2one(
'pos.category', string='Point of Sale Category',
help="Those categories are used to group similar products for point of sale.")

Ok, so POS inherits from product.template, but still in the data files (point_of_sale_demo.xml) it uses product.product like so:

<record id="boni_orange" model="product.product">
<field name="available_in_pos">True</field>
<field name="list_price">1.98</field>
<field name="name">Boni Oranges</field>
<field name="to_weight">True</field>
<field name="barcode">2100002000003</field>
<field name="taxes_id">False</field>
<field name="pos_categ_id" ref="fruits_vegetables"/>
<field name="uom_id" ref="product.product_uom_kgm" />
<field name="uom_po_id" ref="product.product_uom_kgm" />
<field name="image" type="base64" file="point_of_sale/static/img/boni_orange-image.jpg"/>
</record>

What is the difference?

Whats really going on here?

Which of the models should I use?

This is very confusing and I can't find a good explanation anywhere, someone care to try?

Thanks! :)


PS. I know there are answers out there trying to expain this, but I still don't get it. Example:

https://www.odoo.com/forum/help-1/question/product-template-vs-product-product-94430



0
Avatar
Zrušit
Cybrosys Techno Solutions Pvt.Ltd

Hi,
Refer to this forum
https://www.odoo.com/pt_BR/forum/ajuda-1/product-template-vs-product-product-94430

Hope it helps

Avatar
Midhun M M
Nejlepší odpověď
  • product.template(Products Menu): Actually it is not a product it is Product template whenever you are creating Product (product.template) than same will be created in also (product.product) it contains the main product and with list of product variant (attributes)

  • product.product (Product Variants): Here there are actual products with their variants as a separate products.Whenever you are creating SO or PO than actually you are using Product variants not Products.


4
Avatar
Zrušit
Faris Fathurrahman

did you just copy Swapnesh Shah's answer from https://www.odoo.com/id_ID/forum/help-1/product-template-vs-product-product-94430?

Midhun M M

Thank you for being so kind 🙏, I posted what I felt was a need.

Avatar
Mitul Shingala
Nejlepší odpověď

Hello 

you can get more idea from below link. https://www.odoo.com/documentation/user/9.0/inventory/settings/products/variants.html

let me give you one example.

you have one product name is " Iphone6 " so this product.template. but the Iphone6 is available in different different  attribute like color, memory. and attribute value like color: red, black,   memory like 16gb, 32gb. 

so the Iphone6 product is like

   1. Iphone6 - 16gb, red

   2. Iphone6 - 16gb, black

   3. Iphone6 - 32gb, red

   4. Iphone6 - 32gb, black.

this above 4 Iphone6 is the variants and store into the product.product.

so the Iphone6 product store is exist into the product.template but the above variants store into the product.product.

1
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
How to Inherit View For Specific Group and restrict Create and Edit ?
product product.product product.template
Avatar
Avatar
1
úno 25
2546
Only show product from product.template model and not product.product model in carousel snippet.
product product.product website product.template
Avatar
0
kvě 23
448
if we create a field in product.template will it automatically comes in product.product
product product.product product.template v14
Avatar
Avatar
1
srp 21
5618
set value on create method V13 ?
product template product.product product.template
Avatar
Avatar
2
pro 19
4723
What is the way that product.product and product.template synchronize data? Vyřešeno
product.product product.template
Avatar
Avatar
Avatar
2
srp 23
6071
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