Hello, I have modified the on_submit section of Sales Invoice to update a custom field that i created on the Sales invoice Doctype, with the result of a function. The field get updated as expected when i submit the invoice, because i can see it in the UI, but if i query the database table directly, the custom field in the invoice table is null and after some time it does not show in the UI, as if it haven’t had commited to the database and i was watching a cached value or something, in the UI.
Have somebody experienced this issue? this does not throw any error at all.