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

Sale Order Deadline to Project Task Deadline

Suscribirse

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

Se marcó esta pregunta
projecttaskorderodoo16features
1 Responder
2309 Vistas
Avatar
Steven Lunn

Hi all,

so im using a service in a sale order to create a task in a project. Is there a way of using automated actions so that when i update the delivery date in a sales order the task deadline updates if that product exists on the sale order. 

At the moment im adding the delivery date and then going into project tasks and updating that to the same date. i think there must be an easier/faster way.


Also if that is a thing would it be also possible to move a task to completed when the product is delivered or whole sale order delivered.


Many thanks

0
Avatar
Descartar
Avatar
Hamid Ahmadimoghaddam
Mejor respuesta

Hi Steven,

here is what you are searching for.

Now, whenever you update the field Delivery Date (commitment_date) on the sales order, all the tasks related to the lines of the sale order will get updated on the field deadline.

Regarding the last point, it will be somehow the same, but needs more clarification. 

Hamid - bitigloo GmbH

1
Avatar
Descartar
Steven Lunn
Autor

Thats amazing Hamid. but i do have more than one service on the sales order and more than one task so how would i do this based on product id to just update the one task.

Hamid Ahmadimoghaddam

Hey Steven,
the code will update all the tasks that are in any of the lines, not just 1 line and not just 1 task.
If you want to update all the tasks that are linked to that Sales Order and not just the lines you can do this:

for rec in records:
for task in rec.task_ids:
task.update({
'date_deadline': rec.commitment_date
})

Hamid Ahmadimoghaddam

Maybe I misunderstood what you mentioned. Maybe you can explain a little more, what is the expected behavior? And how you can distinguish for which task the deadline should get updated and for which not?

Steven Lunn
Autor

so i have confused the situation.

Each sales order has 3 tasks created from 3 lines/products
Project management
Commissioning
Manufacturing

Project management has a deadline that matches the sale order delivery date
the other 2 the date is set by the engineer

using your solution i understand that all three will update to the delivery date whereas i only need the project management task to reflect that date.

does that make sense ?

Hamid Ahmadimoghaddam

ok, now I got it. A quick but sensitive way is to match it with the product_id and I would definitely use the first code in the screenshot, not the second one in the comments, but adjust it as below:

imagine the id of the product is 10. (you should check it in the product variants, not products).

for rec in records:
for line in rec.order_line:
if line.product_id.detailed_type == "service" and line.task_id and line.product_id.id == 10:
line.task_id.update({
'date_deadline': rec.commitment_date
})

the right way to do it, can be adding a new boolean field on product like "Update Deadline" and then we check this field and update the task if the product has this checkbox as True.

Steven Lunn
Autor

Amazing, Thank you

¿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
Project or Task for Service Business Resuelto
project task odoo16features
Avatar
Avatar
1
jun 23
3491
Automated Action that sets kanban_state for another task
project task AutomatedActions odoo16features
Avatar
0
jul 23
2621
Project task expense
project task expense odoo16features
Avatar
Avatar
2
may 23
3527
Unable to Select Project for Service Product in Odoo 17 Resuelto
project service product task order
Avatar
Avatar
Avatar
3
abr 24
3161
Installing Project from latest Odoo 16 CE breaks down Odoo database
project odoo16features
Avatar
Avatar
1
oct 23
3198
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