Hello My friends…
So I am trying to add leave based on hours, I follow this link but that’s not working for me, Please if anyone try this before.
Thanks in advance.
Hello My friends…
So I am trying to add leave based on hours, I follow this link but that’s not working for me, Please if anyone try this before.
Thanks in advance.
Can you give example, why is it not working?
@kittiu I take the modification in the Leave_application.py here
and changed my Leave_application_py file based on it.
then bench build and nothing changed in the leave application forma.
Please correct me if I am in the wrong way, or if I have to do something else.
Huh, I am a bit confused. I already merged this PR as per your suggestion.
Note: I didn’t test it, just merge as I think it is not harmful. Is it not working as your expectation?
@kittiu Just to ensure that we are on the same page, after you added this script to Leave_Application.py
, did you run a bench build and get this…?
I change the file as you mentioned and then I run bench build and get this.
So, as you can see, nothing has changed in the forma. Is there anything else I need to do…?
I think you just need to restart server for python to take effect. I not recon that we need to bench build.
Anyway, I have not look at this a while ago. I will test it again if the latest code is working.
@kittiu My question is, where did you get this picture from.? Did you apply the change that you made then you get it…? or did you add it from customize.?
this one.
Hello, sorry for messing up.
Now, I test it locally and force push the fix as following,
Would you try again.
Kitti
Note: I think this requirement will be better if it could be in the core. As extension, there is no way but to use monkey patching, which I don’t really like.
Hourly and by the minute leave is required by law for employees in many countries.
Core allowing this would be extremely beneficial to many.
Thank you. Let’s see if there are more confirmation to this requirent and I will try to propose into core.