Ir al contenido
Odoo Menú
  • Identificarse
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • TPV para tiendas
    • TPV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en directo
    • e-learning
    Cadena de suministro
    • Inventario
    • Fabricación
    • PLM
    • Compra
    • Mantenimiento
    • Calidad
    Recursos Humanos
    • Empleados
    • Reclutamiento
    • Ausencias
    • Evaluación
    • Referencias
    • Flota
    Marketing
    • Marketing social
    • Marketing por correo electrónico
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyecto
    • Partes de horas
    • Servicio de campo
    • Servicio de asistencia
    • Planificación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Conocimientos
    • WhatsApp
    Aplicaciones de terceros Studio de Odoo Plataforma de Odoo Cloud
  • Industrias
    Comercio al por menor
    • Librería
    • Tienda de ropa
    • Tienda de muebles
    • Tienda de ultramarinos
    • Ferretería
    • Juguetería
    Alimentación y hostelería
    • Bar y taberna
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidor de bebidas
    • Hotel
    Inmueble
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión inmobiliaria
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Empresa contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Fabricación
    • Textil
    • Metal
    • Muebles
    • Alimentos
    • Brewery
    • Regalos de empresas
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Terapeutas
    • Farmacia
    • Peluquería
    Oficios
    • Handyman
    • Hardware y asistencia informática
    • Sistemas de energía solar
    • Zapatero
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin ánimo de lucro
    • Agencia de protección del medio ambiente
    • Alquiler de paneles publicitarios
    • Estudio fotográfico
    • Alquiler de bicicletas
    • Distribuidor de software
    Browse all Industries
  • Comunidad
    Aprender
    • Tutoriales
    • Documentación
    • Certificaciones
    • Formación
    • Blog
    • Podcast
    Potenciar la educación
    • Programa de formación
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtener el software
    • Descargar
    • Comparar ediciones
    • Versiones
    Colaborar
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Convertirse en partner
    • Services for Partners
    • Registrar tu empresa contable
    Obtener servicios
    • Encontrar un partner
    • Encontrar un asesor fiscal
    • Contacta con un experto
    • Servicios de implementación
    • Referencias de clientes
    • Ayuda
    • Actualizaciones
    GitHub YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicitar 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
  • Proyecto
  • 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

Apply pricelist in cascad with fix price

Suscribirse

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

Se marcó esta pregunta
sales
1 Responder
1097 Vistas
Avatar
Christian Pompier

hello,

how can i do in odoo to have a cascad in the pricelist with fix price. by example


My customer X has a list price

The same cutomer is plomber, and as plomber he has a pricelist

for each product which are not in pricelist 1 or 2, the price is DEFAULT


how can ask to odoo to check the pricelist 1  and after 2 if the customer is a plomber and 3 if not response 


thans you

0
Avatar
Descartar
Avatar
DataInteger Consultancy Services LLP
Mejor respuesta
What You Want

If a product is not in the Plumber Pricelist , then fallback to Customer-specific Pricelist , and if not found, fallback to Default price (Public or Cost price) .

Why This Is Not Native

Odoo only supports one active pricelist per sale order/customer . It does not support fallback chains across multiple pricelists out of the box.


Solution Outline (Technical)

Step 1: Create Multiple Pricelists

  • pricelist_1 : For plumbers
  • pricelist_2 : For individual customers
  • default : Public or base price (fallback)

Step 2: Custom Module Code (Python)

You will override the get_product_price logic to check multiple pricelists in order.

from odoo import models

class ProductTemplate(models.Model):
    _inherit = 'product.template'

    def get_price_cascade(self, product, partner):
        "Custom method to cascade through pricelists"

        # Step 1: Get all pricelists in priority order
        pricelists = []
        if partner.is_plumber and partner.plumber_pricelist_id:
            pricelists.append(partner.plumber_pricelist_id)
        if partner.property_product_pricelist:
            pricelists.append(partner.property_product_pricelist)

        # Step 2: Try to get price from each pricelist
        for pricelist in pricelists:
            price = pricelist._compute_price_rule([(product, 1.0, partner)], partner)[product.id][0]
            if price:
                return price

        #Step 3: Fallback to default price
        return product.lst_price # or product.standard_price depending on your policy

Step 3: Update Your Sales Order Logic (Optional)

Override or extend the sales order form view to show the calculated price using the new method get_price_cascade .


Add Partner Field: is_plumber and plumber_pricelist_id

Extend the res.partner model:

from odoo import models, fields

class ResPartner(models.Model):
    _inherit = 'res.partner'

    is_plumber = fields.Boolean(string="Is Plumber?")
    plumber_pricelist_id = fields.Many2one('product.pricelist', string="Plumber Pricelist")

Testing Example
  • Product A in pricelist_plumber → Use it
  • Product B not in pricelist_plumber , but in pricelist_customer → Use it
  • Product C not in both → Use lst_price
Can You Do This with No Code?

Not fully. Odoo's standard UI only allows selecting one pricelist per customer or sale.


Thanks & Regards,

Email: contact@datainteger.com

0
Avatar
Descartar
¿Le interesa esta conversación? ¡Participe en ella!

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

Inscribirse
Publicaciones relacionadas Respuestas Vistas Actividad
Is there a way to sell the same product both as a recurring subscription and as a one-time purchase?
sales
Avatar
Avatar
1
nov 25
255
How to allow quotation requests (RFQ) from the eCommerce instead of direct sales
sales
Avatar
Avatar
Avatar
2
nov 25
1068
Cannot make Sales Quotation to one Customer
sales
Avatar
Avatar
2
nov 25
466
Products Image
sales
Avatar
Avatar
2
oct 25
515
Edit the Sign & accept quotation button
sales
Avatar
0
oct 25
1468
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento Odoo.sh
  • Ayuda
  • Actualizar
  • Desarrollos personalizados
  • Educación
  • Encontrar un asesor fiscal
  • Encontrar un partner
  • Convertirse en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contacta con nosotros
  • Puestos de trabajo
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Información 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 totalmente integrado.

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