Ir al contenido
Odoo Menú
  • Iniciar sesión
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • PdV para tiendas
    • PdV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en vivo
    • eLearning
    Cadena de suministro
    • Inventario
    • Manufactura
    • PLM
    • Compras
    • Mantenimiento
    • Calidad
    Recursos humanos
    • Empleados
    • Reclutamiento
    • Vacaciones
    • Evaluaciones
    • Referencias
    • Flotilla
    Marketing
    • Redes sociales
    • Marketing por correo
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyectos
    • Registro de horas
    • Servicio externo
    • Soporte al cliente
    • Planeación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Artículos
    • WhatsApp
    Aplicaciones externas Studio de Odoo Plataforma de Odoo en la nube
  • Industrias
    Venta minorista
    • Librería
    • Tienda de ropa
    • Mueblería
    • Tienda de abarrotes
    • Ferretería
    • Juguetería
    Alimentos y hospitalidad
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidora de bebidas
    • Hotel
    Bienes inmuebles
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión de bienes inmuebles
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Firma contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Manufactura
    • Textil
    • Metal
    • Muebles
    • Comida
    • Cervecería
    • Regalos corporativos
    Salud y ejercicio
    • Club deportivo
    • Óptica
    • Gimnasio
    • Especialistas en bienestar
    • Farmacia
    • Peluquería
    Trades
    • Personal de mantenimiento
    • Hardware y soporte de TI
    • Sistemas de energía solar
    • Zapateros y fabricantes de calzado
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin fines de lucro
    • Agencia para la protección del medio ambiente
    • Alquiler de anuncios publicitarios
    • Fotografía
    • Alquiler de bicicletas
    • Distribuidor de software
    Descubre todas las industrias
  • Odoo Community
    Aprende
    • Tutoriales
    • Documentación
    • Certificaciones
    • Capacitación
    • Blog
    • Podcast
    Fortalece la educación
    • Programa educativo
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtén el software
    • Descargar
    • Compara ediciones
    • Versiones
    Colabora
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Conviértete en partner
    • Servicios para partners
    • Registra tu firma contable
    Obtén servicios
    • Encuentra un partner
    • Encuentra un contador
    • Contacta a un consultor
    • Servicios de implementación
    • Referencias de clientes
    • Soporte
    • Actualizaciones
    GitHub YouTube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicita una demostración
  • Precios
  • Ayuda

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

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyectos
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

How to show prices per measurement unit?

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
pricesmeasureSKUliterkilogram
2 Respuestas
224 Vistas
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
Mejor respuesta

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
Mejor respuesta

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
¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Registrarse
Publicaciones relacionadas Respuestas Vistas Actividad
Product variants with the same sku?
SKU
Avatar
Avatar
1
oct 25
520
SKU productos en mi tienda odoo
SKU
Avatar
Avatar
1
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
mar 15
3779
Can I collect prices with OpenERP from a external application ?
prices
Avatar
Avatar
1
mar 15
4315
Add secondary(mandatory) prices to products
prices webshop
Avatar
Avatar
1
sept 25
1361
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento en Odoo.sh
  • Soporte
  • Actualizaciones del software
  • Desarrollos personalizados
  • Educación
  • Encuentra un contador
  • Encuentra un partner
  • Conviértete en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contáctanos
  • Empleos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Legal • Privacidad
  • Seguridad
الْعَرَبيّة 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 es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y estar totalmente integrado.

Sitio web hecho con

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