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 pub
    • 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
    • Cervecería
    • Regalos de empresas
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Terapeutas
    • Farmacia
    • Peluquería
    Oficios
    • Handyman
    • Hardware y soporte técnico
    • 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
    Explorar todos los sectores
  • 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
    • Servicios para 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

How to filter CRM Opportunities that have been updated in the last 10 days?

Suscribirse

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

Se marcó esta pregunta
crmopportunitylastupdated
2 Respuestas
143 Vistas
Avatar
Rick Applegate

We need a way to filter out and view opportunities that have been updated within the last 10 days.  So I did the obvious and used the "Last Updated on" filter, however, now whenever we update the related contact details, the "Last Updated on" gets updated.  This causes all opportunities that are related to that contact to show up in the filtered list.  Is there a way to to filter just the CRM records that get updated?

0
Avatar
Descartar
Rick Applegate
Autor

I created the filter, but the problem is that whenever details are updated in the contact record, this triggers the CRM to show as being updated.  I only want them to show as updated when CRM records are updated.

Rick Applegate
Autor

For some reason the forum isn't letting me comment to the posted answers, so forgive me for the reply and odd placement of my response.


I tried doing this multiple ways and each time I still get the same result (same as before).  I tried going into CRM and creating a customer filter as you said and even copy and pasted your code into the code editor.  This still brought up opportunities where the related records were changed.  I tried going to settings/technical/user defined filters; created the filter and the resulting records it shows still included those same records.

Avatar
Ettore Alberto Pietro Lampertico
Mejor respuesta

you can create a custom filter 

write_date  last update

("write_date", ">=", (context_today() - datetime.timedelta(days =10)).strftime("%Y-%m-%d"))


0
Avatar
Descartar
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Mejor respuesta
Hi,

The issue you're experiencing is common - when you filter by "Last Updated," Odoo shows all opportunities where any related record(including contacts, activities, or other linked records) was modified, not just the opportunity itself. This is why you're seeing opportunities appear in your filtered list even when only the related contact details were updated.

To filter only opportunities that were directly updated in the last 10 days, follow these steps:
1. Go to CRM → Opportunities
2. Click on Filters → Add Custom Filter
3. Configure the filter:
   - Field: Last Updated (write_date)
   - Operator: >=(greater than or equal)
   - Value: 10 days ago

For developers or technical users, you can use these domain filters:

    Simple domain: ("write_date", ">=", (context_today() - datetime.timedelta(days=10)).strftime("%Y-%m-%d"))
    Programmatic filter: [('write_date', '>=', (datetime.datetime.now() - datetime.timedelta(days=10)).strftime('%Y-%m-%d 00:00:00'))]
    XML view filter:
    <filter string="Updated Last 10 Days"
            name="last_10_days"
            domain="[('write_date', '&gt;=', (context_today() - datetime.timedelta(days=10)).strftime('%Y-%m-%d'))]"/>

By using `write_date` directly on the opportunity model instead of the generic "Last Updated" filter, you ensure only opportunities that were themselves modified appear in the results. This excludes opportunities that show up merely because a related contact, activity, or other linked record was updated.  Save this filter by clicking the "Favorites" star icon and naming it "Updated Last 10 Days (Opportunities Only)" for quick access in the future.


Hope it helps

-1
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
CRM Phone and Email Updates
crm opportunity
Avatar
0
dic 24
1846
lock CRM
crm opportunity
Avatar
0
sept 24
1874
Edit "New Opportunity" fields
crm opportunity
Avatar
1
mar 21
3028
How I retrive current users groups in OpenERP 7.0 ? Resuelto
crm opportunity
Avatar
Avatar
Avatar
2
ene 24
14049
CRM: Create Automation to re-create a re-order/follow up Resuelto
crm opportunity automation
Avatar
Avatar
2
dic 24
2354
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 empresariales de código abierto que cubre 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.

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