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

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
2317 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.

Registrarse
Publicaciones relacionadas Respuestas Vistas Actividad
Project or Task for Service Business Resuelto
project task odoo16features
Avatar
Avatar
1
jun 23
3515
Automated Action that sets kanban_state for another task
project task AutomatedActions odoo16features
Avatar
0
jul 23
2647
Project task expense
project task expense odoo16features
Avatar
Avatar
2
may 23
3544
Unable to Select Project for Service Product in Odoo 17 Resuelto
project service product task order
Avatar
Avatar
Avatar
3
abr 24
3202
Installing Project from latest Odoo 16 CE breaks down Odoo database
project odoo16features
Avatar
Avatar
1
oct 23
3219
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.

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