Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

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

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

How to show prices per measurement unit?

Subscriure's

Get notified when there's activity on this post

This question has been flagged
pricesmeasureSKUliterkilogram
2 Respostes
225 Vistes
Avatar
Luc Bernard

In Belgium for food and drinks on price tags it's obliged to publish the price per measurement unit (/liter or /kilogram) in addition to the SKU price.

So, f.e. 1 bottle contains 0,75l of water and costs 1,50 €/pc. Then the water price is 2,00 €/l.

Is there a way to automatically calculate the 2,00 €/l if the product is sold per piece in bottles of 0,75l with barcode?

0
Avatar
Descartar
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Best Answer

Hi,


To automatically calculate and display the price per measurement unit (e.g., €/liter) on price tags in Odoo, even when selling per piece, you can use a computed field and a custom report. Add a field to store the product's volume/weight and another computed field to calculate the price per unit based on the sales price and volume/weight. Then, create a custom QWeb report to display the product name, price, and calculated price per unit on the price tag.

Alternatively, if using Odoo POS, you can modify the POS receipt to include the price per unit. For a simpler but less flexible approach, Odoo Studio can be used to add the necessary fields and modify views. Remember to be consistent with units of measure, consider rounding and localization, and integrate barcode information if needed.

Python

from odoo import models, fields, api


class ProductTemplate(models.Model):  # Or ProductProduct

    _inherit = 'product.template'  # Or 'product.product'


    volume_liters = fields.Float(string='Volume (Liters)', default=1.0)  # Or weight_kg, etc.

    price_per_liter = fields.Float(

        string='Price per Liter',

        compute='_compute_price_per_liter',

        store=True,  # Store the computed value for performance

    )

    @api.depends('list_price', 'volume_liters')  # 'list_price' is the standard sales price field

    def _compute_price_per_liter(self):

        for product in self:

            if product.volume_liters > 0:

                product.price_per_liter = product.list_price / product.volume_liters

            else:

                product.price_per_liter = 0.0

Qweb template

<t t-name="my_module.price_tag">

    <t t-foreach="docs" t-as="product">

        <div class="price_tag">

            <h2><t t-esc="product.name"/></h2>

            <p>Price: <t t-esc="product.list_price"/> €/pc</p>

            <p>Price per Liter: <t t-esc="product.price_per_liter"/> €/liter</p>

        </div>

    </t>

</t>


Hope it helps

0
Avatar
Descartar
Avatar
Vashmitha V
Best Answer

Hello there,

For this, you first need to configure the UoM.

Here is the 1 pc Bottle =0.75L, so UoM is L(0.75)


And add an attribute in that product w/o the creation of a variant with an extra price.

Then SO would be,

Here 0.75L water means 1 qty of L(0.75)  + with barcode/labeled (0.5)
=> 1.5=0.5=2



Hope this will help you. Before doing this, decide the product will sold on which UoM is L or L(0.75) or any other measure. This will differ accordingly.

0
Avatar
Descartar
Enjoying the discussion? Don't just read, join in!

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

Registrar-se
Related Posts Respostes Vistes Activitat
Product variants with the same sku?
SKU
Avatar
Avatar
1
d’oct. 25
520
SKU productos en mi tienda odoo
SKU
Avatar
Avatar
1
de jul. 25
1478
Is it possible to sell based on width and length of a certain piece and it will calculate area automatically? Example making a window from glass sheets of fixed area. Customer request 3 windows of a certain size. you prepare the invoice by entering width and length and it calculates the area automatically and decide on the required glass sheets
measure
Avatar
0
de març 15
3779
Can I collect prices with OpenERP from a external application ?
prices
Avatar
Avatar
1
de març 15
4315
Add secondary(mandatory) prices to products
prices webshop
Avatar
Avatar
1
de set. 25
1361
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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