# Refreshing the default values of a field

**URL:** <https://discuss.tryton.org/t/refreshing-the-default-values-of-a-field/3934>\
**Category:** User\
**Created:** [March 12, 2021, 11:25am UTC](https://discuss.tryton.org/t/refreshing-the-default-values-of-a-field/3934 "2021-03-12T11:25:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![2cadz](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/2cadz/32/130_2.png) [@2cadz](https://discuss.tryton.org/u/2cadz)\
**Post date:** [March 12, 2021, 11:25am UTC](https://discuss.tryton.org/t/refreshing-the-default-values-of-a-field/3934/1 "2021-03-12T11:25:45Z")

</div>

How can I make the default values take into account the modification of the configuration data?

For example in sales, if I change the default invoicing method, how do I take this change into account for new sales? The only way I have found is to restart the client. Is there another one?

---

<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:** [March 12, 2021, 11:31am UTC](https://discuss.tryton.org/t/refreshing-the-default-values-of-a-field/3934/2 "2021-03-12T11:31:16Z")

</div>

The default values are cached by the client for performance.  
Normally default values are quite static. Adding any invalidation of this cache will just remove the benefit of the cache.

---

<div class="post-metadata">

**Author:** ![2cadz](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/2cadz/32/130_2.png) [@2cadz](https://discuss.tryton.org/u/2cadz)\
**Post date:** [March 12, 2021, 11:44am UTC](https://discuss.tryton.org/t/refreshing-the-default-values-of-a-field/3934/3 "2021-03-12T11:44:29Z")

</div>

Yes, I understand, it’s just very confusing for a customer to see that this modification is not taken into account despite having saved them

---

<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:** [March 12, 2021, 12:03pm UTC](https://discuss.tryton.org/t/refreshing-the-default-values-of-a-field/3934/4 "2021-03-12T12:03:20Z")

</div>

I guess we could imagine to have a bus message that is sent to all clients to clear their cache.

---

<div class="post-metadata">

**Author:** ![jeromarquez](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/jeromarquez/32/452_2.png) [@jeromarquez](https://discuss.tryton.org/u/jeromarquez)\
**Post date:** [March 12, 2021, 1:50pm UTC](https://discuss.tryton.org/t/refreshing-the-default-values-of-a-field/3934/5 "2021-03-12T13:50:20Z")

</div>

This would be a very good option. Also for other use cases as menu creation, or some modules changes.  
Another option is to make an advice at the configuration menu. Example: This change would take effect after restarting the client.  
Many the times the problem is not the way of working of the system but the missing information of the user.  
The last one is easier than the first one but the first one it’s so much better.  
Cheers!
