is there anyone can help me how to implement formula in custom field?
I made custom field schedule for asset maintenance. the next schedule for maintenance is +500 hours from the last maintenance. Thank you for your help.
Hartono
is there anyone can help me how to implement formula in custom field?
I made custom field schedule for asset maintenance. the next schedule for maintenance is +500 hours from the last maintenance. Thank you for your help.
Hartono
Do you mean to store a dynamic value in the field? If so, you can write some Python code to do this as a virtual docfield. Else, you can add something to do self.scheduled_maintenance = self.last_maintenance + 500
on validate event in a Server Script
https://frappeframework.com/docs/v14/user/en/basics/virtual_docfield
https://frappeframework.com/docs/v14/user/en/desk/scripting/server-script