# How to not automatically process records?

**URL:** <https://discuss.tryton.org/t/how-to-not-automatically-process-records/2831>\
**Category:** Developer\
**Created:** [June 5, 2020, 5:47am UTC](https://discuss.tryton.org/t/how-to-not-automatically-process-records/2831 "2020-06-05T05:47:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![oscarQ](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/oscarq/32/413_2.png) [@oscarQ](https://discuss.tryton.org/u/oscarQ)\
**Post date:** [June 5, 2020, 5:47am UTC](https://discuss.tryton.org/t/how-to-not-automatically-process-records/2831/1 "2020-06-05T05:47:54Z")

</div>

If I’m not wrong, when the worker is not activated in the `tryrond.conf` file, for example, a sale will be processed automatically when it gets confirmed. The same will happen when you have the worker activated in the `trytond.conf` but, you leave the `sale_process_after` field empty in the sale configuration.  
I know that there is the possibility to just set the `sale_process_after` field to a big value, but it will create a register to `ir_queue` table each time anyway, so is there any way to just let the user process records manually?

- Tryton version : 5.2

---

<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:** [June 5, 2020, 10:23am UTC](https://discuss.tryton.org/t/how-to-not-automatically-process-records/2831/2 "2020-06-05T10:23:09Z")

</div>

No the processing state is just an internal state, once a sale is confirmed there is no reason to no process it.

---

<div class="post-metadata">

**Author:** ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)\
**Post date:** [June 5, 2020, 7:12pm UTC](https://discuss.tryton.org/t/how-to-not-automatically-process-records/2831/3 "2020-06-05T19:12:20Z")

</div>

> [@oscarQ](#):
>
> but it will create a register to `ir_queue` table each time anyway, so is there any way to just let the user process records manually?

Indeed we did that sometimes. It was a little bit tricky as I set a context flag on the confirm button and do not create queue recors when this flag is set.

Why do you need to manually process the records?

---

<div class="post-metadata">

**Author:** ![oscarQ](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/oscarq/32/413_2.png) [@oscarQ](https://discuss.tryton.org/u/oscarQ)\
**Post date:** [June 8, 2020, 6:58am UTC](https://discuss.tryton.org/t/how-to-not-automatically-process-records/2831/4 "2020-06-08T06:58:18Z")

</div>

Thank you. We will review if there is a real need in our scenario to manually process the sale.

---

<div class="post-metadata">

**Author:** ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)\
**Post date:** [June 8, 2020, 7:43am UTC](https://discuss.tryton.org/t/how-to-not-automatically-process-records/2831/5 "2020-06-08T07:43:10Z")

</div>

> [@oscarQ](#):
>
> We will review if there is a real need in our scenario to manually process the sale.

Normally there is no real need, just an user that is used to the previous behaviour and wants to reduce the number of changes 😉
