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
    • eLearning
    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

Is it possible to relate Products and Vendors?

Suscribirse

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

Se marcó esta pregunta
purchaseproductrelatedvendorefficiency
2 Respuestas
7830 Vistas
Avatar
Ricardo Gross

Hi,

It is possible that when creating an RFQ and selecting a vendor, the list of products that can be added is limited to products related to that vendor, or if I add first the product I can only choose the vendor(s) related to this product?

Thanks,

Ricardo

3
Avatar
Descartar
Chris TRINGHAM

Can you use Supplier Price Lists (product.supplierinfo) for the linkage?

Avatar
Ray Carnes (ray)
Mejor respuesta

Adding this domain to the product_id field on the Request for Quotation Form View will do that:

 ['|',  ('seller_ids.name', '=', parent.partner_id),
        ('seller_ids.name.child_ids', '=', parent.partner_id),
        ('purchase_ok', '=', True)] 
2
Avatar
Descartar
Oscar Beltran

Hi Ray, thanks for your great Idea. I try to use your code in V13 last update. It seems that the code is changed a little.

I get this result:

["&","|",["seller_ids.name","=","parent.partner_id"],["seller_ids.name.child_ids","=","parent.partner_id"],["purchase_ok","=",True]]

However, I am doing something wrong, because I do not get any product. Can you please guide. Tks a lot.

Ray Carnes (ray)

Your domain is wrong. I posted an example tested with v13. You are asking Odoo to show you products where (1) the name of one of the Vendors is the same as the Vendor on the PO "and" (2) the name of one of the child records of the Vendors is the same as the Vendor on the PO "or" (3) the product can be purchased. (1) and (2) cannot be true at the same time.

Avatar
Antoine Huvelle (ahu)
Mejor respuesta

Some update for Odoo 16 as the datamodel changed slightly:

domain="[('seller_ids.partner_id','=',parent.partner_id),('purchase_ok', '=', True), '|', ('company_id', '=', False), ('company_id', '=', parent.company_id)]"

Seems to work in terms of limiting the access to only the product sold by this supplier.

1
Avatar
Descartar
Gulraiz Raza

Hello Ray & Antoine, hope you are keeping well.
I am new Odoo user, just wanted to say thanks for your help.
I was struggling with this for a long time and finally I got it today :)
I found clues to the problem in both of your answers and that is how it became possible for me. So yeah, thanks once again.

Here I would like to share how I did it! I thought this might be useful for new avid users.

First clue to the problem was knowing that you had to change the field domain code, in this case the product field domain code, Ray was explicit about it, as to where to find it. That was such a great help!!!!! That got me going. Secondly, notice he was also clear that the code had to be ADDED and not changed, (point that I completely missed :) and went about trying to changing the code, good luck with that!!! So, this is something really to watch out)

Time to jump to Antoine's code (because its applicable to current version), he got the code right (Thank you, Antoine) however, he was not explicit like Ray. So knowing that you need to ADD the code as an extension and not changing the already
existing code is the solution.

Finally here is my complete working domain code (the existing plus the Antoine's extension)
domain="[('purchase_ok', '=', True), '|', ('company_id', '=', False), ('company_id', '=', parent.company_id), ('seller_ids.partner_id','=',parent.partner_id),('purchase_ok', '=', True), '|', ('company_id', '=', False), ('company_id', '=', parent.company_id)]"/>

To edit the product form, here is step by step instructions;
>First enable the developers mode
> then go to the RFQ form page
> click on the developer mode mark next to chat
> on the pop up menu look for edit view form and click to open it
> a new window will open
> on the Architecture tab, scroll down to row 90 & 115 where you will find the required field: product_id
> scroll to the right further up the columns up you will find the domain code where it will say (domain=) this is where you copy paste the above code (remember to change on both row 90 and 115) > save and go back to RFQ > its done!

Still learning and hoping to progress! please correct if I am wrong!

Ricardo Gross
Autor

Hi Gulraiz, good explanation, but still incomplete, because if for some reason, you have to do an update of the purchase module or a base upgrade, your changes will be lost, so it would be important to add the steps:
- go to settings->technical->views
- open the view "purchase.order.form"
- in developer tools open -> view metadata and by clicking on top (false) change the value of No Update to "true (change)"
so your changes will not be lost in an update

Gulraiz Raza

Yes Ricardo, when I made the change, system did display a message window saying that this change will not last an update, it talked about making the changes in the inherit view but I did not know what to do. So I did what you said, and that makes sense. While I still don't fully appreciate the different views but I think I am beginning to understand some bit :) Thank you so much once again. Good day to all, Later.

¿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
Vendor tax access to users in products purchase tab
purchase product vendor taxes
Avatar
Avatar
2
ago 24
1500
How to apply Vendor discount for specific product in purchase side?
purchase product vendor Discount
Avatar
Avatar
Avatar
2
dic 23
2543
Vendor Pricelist on Products isn't opening in new window (v14.0)
purchase product vendor pricelist
Avatar
Avatar
2
mar 21
3441
V13 - How to see the products that a vendor sell to us, from the vendor view. Resuelto
product vendor
Avatar
Avatar
1
dic 22
3087
Assign vendor to purchase order (EE 14)
purchase vendor
Avatar
Avatar
1
dic 22
2819
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