I've created a timedate field to record when a pos.order was marked as done in production. What is the correct way to populate it?
Is on pos.order model, and should be triggered (and compiled) when another filed (on pos.oder too) already working and called by a button using a server action. And how I should calculated it (fields.function) to see how much time is passed from the creation of the order?