Skip to Content
Odoo Menu
  • Zaloguj się
  • Wypróbuj za darmo
  • Aplikacje
    Finanse
    • Księgowość
    • Fakturowanie
    • Wydatki
    • Arkusz kalkulacyjny (BI)
    • Dokumenty
    • Podpisy
    Sprzedaż
    • CRM
    • Sprzedaż
    • PoS Sklep
    • PoS Restauracja
    • Subskrypcje
    • Wypożyczalnia
    Strony Internetowe
    • Kreator Stron Internetowych
    • eCommerce
    • Blog
    • Forum
    • Czat na Żywo
    • eLearning
    Łańcuch dostaw
    • Magazyn
    • Produkcja
    • PLM
    • Zakupy
    • Konserwacja
    • Jakość
    Zasoby Ludzkie
    • Pracownicy
    • Rekrutacja
    • Urlopy
    • Ocena pracy
    • Polecenia Pracownicze
    • Flota
    Marketing
    • Marketing Społecznościowy
    • E-mail Marketing
    • SMS Marketing
    • Wydarzenia
    • Automatyzacja Marketingu
    • Ankiety
    Usługi
    • Projekt
    • Ewidencja czasu pracy
    • Usługi Terenowe
    • Helpdesk
    • Planowanie
    • Spotkania
    Produktywność
    • Dyskusje
    • Zatwierdzenia
    • IoT
    • VoIP
    • Baza wiedzy
    • WhatsApp
    Aplikacje trzecich stron Studio Odoo Odoo Cloud Platform
  • Branże
    Sprzedaż detaliczna
    • Księgarnia
    • Sklep odzieżowy
    • Sklep meblowy
    • Sklep spożywczy
    • Sklep z narzędziami
    • Sklep z zabawkami
    Żywienie i hotelarstwo
    • Bar i Pub
    • Restauracja
    • Fast Food
    • Pensjonat
    • Dystrybutor napojów
    • Hotel
    Agencja nieruchomości
    • Agencja nieruchomości
    • Biuro architektoniczne
    • Budowa
    • Zarządzanie nieruchomościami
    • Ogrodnictwo
    • Stowarzyszenie właścicieli nieruchomości
    Doradztwo
    • Biuro księgowe
    • Partner Odoo
    • Agencja marketingowa
    • Kancelaria prawna
    • Agencja rekrutacyjna
    • Audyt i certyfikacja
    Produkcja
    • Tekstylia
    • Metal
    • Meble
    • Jedzenie
    • Browar
    • Prezenty firmowe
    Zdrowie & Fitness
    • Klub sportowy
    • Salon optyczny
    • Centrum fitness
    • Praktycy Wellness
    • Apteka
    • Salon fryzjerski
    Transakcje
    • Złota rączka
    • Wsparcie Sprzętu IT
    • Systemy energii słonecznej
    • Szewc
    • Firma sprzątająca
    • Usługi HVAC
    Inne
    • Organizacja non-profit
    • Agencja Środowiskowa
    • Wynajem billboardów
    • Fotografia
    • Leasing rowerów
    • Sprzedawca oprogramowania
    Przeglądaj wszystkie branże
  • Community
    Ucz się
    • Samouczki
    • Dokumentacja
    • Certyfikacje
    • Szkolenie
    • Blog
    • Podcast
    Pomóż w nauce innym
    • Program Edukacyjny
    • Scale Up! Gra biznesowa
    • Odwiedź Odoo
    Skorzystaj z oprogramowania
    • Pobierz
    • Porównaj edycje
    • Wydania
    Współpracuj
    • Github
    • Forum
    • Wydarzenia
    • Tłumaczenia
    • Zostań partnerem
    • Usługi dla partnerów
    • Zarejestruj swoją firmę rachunkową
    Skorzystaj z usług
    • Znajdź partnera
    • Znajdź księgowego
    • Spotkaj się z doradcą
    • Usługi wdrożenia
    • Opinie klientów
    • Wsparcie
    • Aktualizacje
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Zaplanuj demo
  • Cennik
  • Pomoc

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Księgowość
  • Zapasy
  • PoS
  • Projekt
  • MRP
All apps
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Pomoc

Sale Order Deadline to Project Task Deadline

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
projecttaskorderodoo16features
1 Odpowiedz
2320 Widoki
Awatar
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
Awatar
Odrzuć
Awatar
Hamid Ahmadimoghaddam
Najlepsza odpowiedź

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
Awatar
Odrzuć
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

Podoba Ci się ta dyskusja? Dołącz do niej!

Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!

Zarejestruj się
Powiązane posty Odpowiedzi Widoki Czynność
Project or Task for Service Business Rozwiązane
project task odoo16features
Awatar
Awatar
1
cze 23
3515
Automated Action that sets kanban_state for another task
project task AutomatedActions odoo16features
Awatar
0
lip 23
2647
Project task expense
project task expense odoo16features
Awatar
Awatar
2
maj 23
3545
Unable to Select Project for Service Product in Odoo 17 Rozwiązane
project service product task order
Awatar
Awatar
Awatar
3
kwi 24
3203
Installing Project from latest Odoo 16 CE breaks down Odoo database
project odoo16features
Awatar
Awatar
1
paź 23
3220
Społeczność
  • Samouczki
  • Dokumentacja
  • Forum
Open Source
  • Pobierz
  • Github
  • Runbot
  • Tłumaczenia
Usługi
  • Hosting Odoo.sh
  • Wsparcie
  • Aktualizacja
  • Indywidualne rozwiązania
  • Edukacja
  • Znajdź księgowego
  • Znajdź partnera
  • Zostań partnerem
O nas
  • Nasza firma
  • Zasoby marki
  • Skontaktuj się z nami
  • Oferty pracy
  • Wydarzenia
  • Podcast
  • Blog
  • Klienci
  • Informacje prawne • Prywatność
  • Bezpieczeństwo Odoo
الْعَرَبيّة 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 to pakiet aplikacji biznesowych typu open source, które zaspokoją wszystkie potrzeby Twojej firmy: CRM, eCommerce, księgowość, inwentaryzacja, punkt sprzedaży, zarządzanie projektami itp.

Unikalną wartością Odoo jest to, że jest jednocześnie bardzo łatwe w użyciu i w pełni zintegrowane.

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