# Create tasks when selling service

**URL:** <https://discuss.tryton.org/t/create-tasks-when-selling-service/9069>\
**Category:** Feature\
**Tags:** project, sales\
**Created:** [January 25, 2026, 6:02pm UTC](https://discuss.tryton.org/t/create-tasks-when-selling-service/9069 "2026-01-25T18:02:31Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [January 25, 2026, 6:02pm UTC](https://discuss.tryton.org/t/create-tasks-when-selling-service/9069/1 "2026-01-25T18:02:31Z")

</div>

## Rational

Some services are not delivered directly at sale confirmation, they can take time. So we need a way to keep track of those tasks to perform.  
Also company may want to invoice the service only once the service has been fulfilled.  
Moreover the company may want to track the time spent for each of this service line to analyse the margin and profit.

## Proposal

We add a checkbox on the service products to define a list of task template designed to create task (project work).  
When a sale line with such product is confirmed, the sale create the corresponding tasks.  
An origin field (to link with a sale line) is added to the project work of type task which prevents to fill the parent field and make the type selection limited to task.  
The invoice method “On Shipment” is renamed to “On fulfillment” and include the management of all tasks being done to invoice the corresponding sale line. When such task is done, it marks the sale to be invoiced. A scheduled task will process those sales (this way only one invoice is created when multiple tasks are done closely).  
If the _Project Revenue Module_ is activated, the calculation of the revenue is based on the sale price (and the list price is hidden).  
If the _Project Invoice Module_ is activated, an invoice method “Sale” is added for such tasks.

The task template define the name of the task, if the timesheet are allowed, the effort computed from the quantity sold and eventually children tasks using the same design.

## Implementation

- [Add sale\_project\_task module (!3074) · Merge requests · Tryton / Tryton · GitLab](https://foss.heptapod.net/tryton/tryton/-/merge_requests/3074)

---

<div class="post-metadata">

**Author:** ![albert](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/albert/32/21_2.png) [@albert](https://discuss.tryton.org/u/albert)\
**Post date:** [January 27, 2026, 9:34am UTC](https://discuss.tryton.org/t/create-tasks-when-selling-service/9069/2 "2026-01-27T09:34:46Z")

</div>

I think it will be an interesting addition.

Maybe something to consider is that using inheritance one can reuse existing projects or tasks: we’ve found in some cases that the company needs to register some information before the project or task is approved and the best place to register that information is in the project/task itself. Maybe they even have to start working on it before its approval (because some blueprints need to be done in order to make a quotation and things like that).

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [January 27, 2026, 9:51am UTC](https://discuss.tryton.org/t/create-tasks-when-selling-service/9069/3 "2026-01-27T09:51:45Z")

</div>

I think in such case the task are created manually and linked to the corresponding sale line (or created from the sale line form).

---

<div class="post-metadata">

**Author:** ![albert](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/albert/32/21_2.png) [@albert](https://discuss.tryton.org/u/albert)\
**Post date:** [January 27, 2026, 10:11am UTC](https://discuss.tryton.org/t/create-tasks-when-selling-service/9069/4 "2026-01-27T10:11:21Z")

</div>

That’s the idea, yes.

---

<div class="post-metadata">

**Author:** ![edbo](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/e/f14d63/32.png) [@edbo](https://discuss.tryton.org/u/edbo)\
**Post date:** [January 27, 2026, 1:07pm UTC](https://discuss.tryton.org/t/create-tasks-when-selling-service/9069/5 "2026-01-27T13:07:10Z")

</div>

Seems a bit like [https://discuss.tryton.org/t/new-invoicing-method-when-selling-both-goods-and-services/](https://discuss.tryton.org/t/new-invoicing-method-when-selling-both-goods-and-services/). This can be a base for that as well I think. But instead of a project it will be a service order where the different tasks are linked to.

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [January 28, 2026, 2:35pm UTC](https://discuss.tryton.org/t/create-tasks-when-selling-service/9069/6 "2026-01-28T14:35:42Z")

</div>

The later proposal is indeed solving the same requirement.  
But I finally think that it will be better to reuse project task instead of creating a new “work order” model. This way all the tasks are in the same place and both usage will benefit from the improvements made for each use case.

---

<div class="post-metadata">

**Author:** ![edbo](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/e/f14d63/32.png) [@edbo](https://discuss.tryton.org/u/edbo)\
**Post date:** [January 28, 2026, 4:20pm UTC](https://discuss.tryton.org/t/create-tasks-when-selling-service/9069/7 "2026-01-28T16:20:31Z")

</div>

I also think that having the tasks in the same place is really nice. But the project itself is also in the same model as the tasks.  
Maybe a further improvement will be that the project fields are moved into their own model. So you have one model for the tasks and one model for the projects. You can also create your own models to group tasks together like a work order. Both can also have their own rights, state and extra fields for employees etc.

The problem is that you will loose the tree view on the project view where you have the projects with their tasks as childs.

I just wanted to mention it but I think it will be a big task.

---

<div class="post-metadata">

**Author:** ![udono](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/udono/32/2114_2.png) [@udono](https://discuss.tryton.org/u/udono)\
**Post date:** [January 31, 2026, 7:40pm UTC](https://discuss.tryton.org/t/create-tasks-when-selling-service/9069/8 "2026-01-31T19:40:00Z")

</div>

> [@ced](#):
>
> which prevents to fill the parent field and make the type selection limited to task.

I wonder why this restriction is required. IMHO it would be nice to have the possibility to subordinate the new _sale project tasks_ in a project structure.

> [@ced](#):
>
> The task template define the name of the task

It would be nice if the task template defaults the name of the task on the sale line, which can be edited by the user. The task template could be quite generic and needs to be specialised for a specific sale.

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [February 1, 2026, 9:35am UTC](https://discuss.tryton.org/t/create-tasks-when-selling-service/9069/9 "2026-02-01T09:35:48Z")

</div>

> [@udono](#):
>
> I wonder why this restriction is required. IMHO it would be nice to have the possibility to subordinate the new _sale project tasks_ in a project structure.

Because project will bring ambigus information about the task like an invoice method, a customer party etc.

> [@udono](#):
>
> It would be nice if the task template defaults the name of the task on the sale line, which can be edited by the user. The task template could be quite generic and needs to be specialised for a specific sale.

I think that the task name from product in combination of the sale line origin will be enough to discriminate tasks.  
But this part will be certainly extensible with custom module.

---

<div class="post-metadata">

**Author:** ![udono](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/udono/32/2114_2.png) [@udono](https://discuss.tryton.org/u/udono)\
**Post date:** [February 1, 2026, 12:38pm UTC](https://discuss.tryton.org/t/create-tasks-when-selling-service/9069/10 "2026-02-01T12:38:23Z")

</div>

> [@ced](#):
>
> > [@udono](#):
> >
> > I wonder why this restriction is required. IMHO it would be nice to have the possibility to subordinate the new _sale project tasks_ in a project structure.
> 
> Because project will bring ambigus information about the task like an invoice method, a customer party etc.

The `sale.sale` object could be the origin of an also newly created parent project, then all the project information could be controlled by the sale and being read only on project. This way it would be possible to use the project for planning and to define the exact tasks later.  
This could be also done in an custom module, when avoiding constraints on database level in the base module.

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [February 1, 2026, 2:29pm UTC](https://discuss.tryton.org/t/create-tasks-when-selling-service/9069/11 "2026-02-01T14:29:07Z")

</div>

> [@udono](#):
>
> all the project information could be controlled by the sale

I do not understand what this means.

---

<div class="post-metadata">

**Author:** ![udono](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/udono/32/2114_2.png) [@udono](https://discuss.tryton.org/u/udono)\
**Post date:** [February 1, 2026, 9:05pm UTC](https://discuss.tryton.org/t/create-tasks-when-selling-service/9069/12 "2026-02-01T21:05:30Z")

</div>

I meant something like this, when reusing existing fields:

| Sale → | Project |
| --- | --- |
| shipment\_party | party |
| shipment\_address | contact\_address |
| description | name |
| | invoice\_method=sale |

This way we could avoid ambiguous information.

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [February 1, 2026, 11:11pm UTC](https://discuss.tryton.org/t/create-tasks-when-selling-service/9069/13 "2026-02-01T23:11:56Z")

</div>

I do not think it would be a clean design but it will create many ambiguity.  
For example what happens to task created in such project but not related to a sale line (or related to a different sale)? Also users would want to group multiple sales into a “single” project.  
For me the only point of this would be to group task from the same sale, but this can be done with an Function field.

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [February 10, 2026, 1:20pm UTC](https://discuss.tryton.org/t/create-tasks-when-selling-service/9069/14 "2026-02-10T13:20:24Z")

</div>

> [@ced](#):
>
> An origin field (to link with a sale line) is added to the project work of type task which prevents to fill the parent field and make the type selection limited to task.

Indeed I think we should allow to have a parent of type task if there is an origin.  
The point is to prevent to add such task under a project.

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [February 10, 2026, 1:44pm UTC](https://discuss.tryton.org/t/create-tasks-when-selling-service/9069/15 "2026-02-10T13:44:46Z")

</div>

> [@ced](#):
>
> The task template define the name of the task, if the timesheet are allowed, the effort computed from the quantity sold and eventually children tasks using the same design.

We need an option to create 1 task per quantity or 1 task with quantity \* effort.

---

<div class="post-metadata">

**Author:** ![Gruenfischer](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/g/3be4f8/32.png) [@Gruenfischer](https://discuss.tryton.org/u/Gruenfischer)\
**Post date:** [February 18, 2026, 7:51pm UTC](https://discuss.tryton.org/t/create-tasks-when-selling-service/9069/16 "2026-02-18T19:51:54Z")

</div>

Multiple sales for one project are standard in my business. You sell one project to the customer, and then the customer’s requirements change and you sell an additional amount of time. From a practical point of view, I need to link many tasks to one sale line and also be able to link another task in the same project to another sale line (for the same buyer).

There are also cases where I bill the holding company, but work for different companies (that I have to report to) within one project.

I’d rather keep it simple, unrestrictive, and open for extension.

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [February 24, 2026, 2:49pm UTC](https://discuss.tryton.org/t/create-tasks-when-selling-service/9069/17 "2026-02-24T14:49:07Z")

</div>

> [@ced](#):
>
> When such task is done, it marks the sale to be invoiced. A scheduled task will process those sales (this way only one invoice is created when multiple tasks are done closely).

Instead of a scheduled task, I think it will be better to just have a task invoice state and a button to manually create the invoice.

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [February 24, 2026, 2:51pm UTC](https://discuss.tryton.org/t/create-tasks-when-selling-service/9069/18 "2026-02-24T14:51:18Z")

</div>

> [@ced](#):
>
> We need an option to create 1 task per quantity or 1 task with quantity \* effort.

I do not think it is doable because it will be very hard to manage with the amendment.

Instead I think that as the sale line will be the origin of the task. If the quantity change, the information about the quantity is also shared on the task and the user will adapt the work to this new information.

---

<div class="post-metadata">

**Author:** ![edbo](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/e/f14d63/32.png) [@edbo](https://discuss.tryton.org/u/edbo)\
**Post date:** [February 24, 2026, 4:50pm UTC](https://discuss.tryton.org/t/create-tasks-when-selling-service/9069/19 "2026-02-24T16:50:31Z")

</div>

Please don’t make the task and it’s origin to intimate. You can sell services with different units like hours, days, weeks etc. or just unit. Changing the quantity should not have an impact on the task. So like you said, the user must adapt to the new information.

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [February 25, 2026, 4:12pm UTC](https://discuss.tryton.org/t/create-tasks-when-selling-service/9069/20 "2026-02-25T16:12:57Z")

</div>

The module is ready for testing (just missing the documentation).

[Next page](https://discuss.tryton.org/t/create-tasks-when-selling-service/9069.md?page=2)
