OFBiz 中的员工自助服务
我正在研究 OFBiz HR 模块,那里的休假功能实现得很完美。但我不明白几点。即使我以 demoemployee 身份登录,我也可以向管理员申请休假。 事实并非如此。
请验证以下步骤:
- 以 demoemployee 身份登录:(uid:demoemployee,pwd:ofbiz)
- 导航至 HR -->人力资源-->离开
- 单击“新建离开”按钮
- 选择 partyid 为“admin” 管理员,以及其他字段...然后单击“创建”。
- 已为管理员创建休假。
我想知道如何限制员工自己申请休假。
is ofbiz 可用于员工自助服务功能,例如更新他自己的详细信息/查看他自己的工资详细信息、更新他自己的休假...
谢谢, 钱德拉塞卡 K.
I am looking into OFBiz HR module, there leave functionality is implemented perfectly. But i am not understand few points. Even if i login as demoemployee i can apply leave for Admin.
This sould not be the case.
Please verify the following steps:
- Logged in as demoemployee: (uid: demoemployee, pwd:ofbiz)
- Navigate to HR --> Human Resources --> Leave
- Click on "New Leave" button
- Select partyid as "admin" The Administrator, and other fields... and click on "Create".
- The leave has been created for admin.
I want to know how to restrict employee to apply his/her own leaves.
Is ofbiz can be used for Employee-Self-Service functionalities like updating his own details/viewing his own salary details, updating his own leavs....
Thanks,
Chandrasekhar K.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通常 OFBiz OTTB 组件非常通用,并不适用于每个人的用例,需要进行一些定制,HR 模块也是如此。
demoemployee 是 HUMANRES_EMPLOYEE 组的一部分,该组具有 VIEW 和 CREATE 权限,这就是为什么使用此用户可以查看和创建叶子。但请注意,例如您没有更新权限,因此您无法更新和批准休假。通常这种情况下,请假仍然无效,只能录入系统……
要限制用户为其他用户创建离开,您必须覆盖 humanResManagerPermission 服务并应用您的自定义逻辑(登录用户 partyId 应与离开党 ID 相同)
是的,当然有两种方法:
在这两种情况下,您可以/应该重用现有的数据模式和服务。大部分/所有工作都是关于创建适当的 UI
Usually OFBiz OTTB components are pretty generic and will not apply to everyones use case and some customization is required, this is also the case with HR module.
demoemployee is part of HUMANRES_EMPLOYEE group which has VIEW and CREATE permissions, that's why with this user you can view and create leaves. But notice that you don't have UPDATE permission for example, so you cannot update and approve the leave. Usually in this case the leave is still not valid, only entered in the system…
To restrict the users from creating leaves for other users, you have to override the humanResManagerPermission service and apply your custom logic (logged in user partyId should be the same as leaving party Id)
Yes definitely, two approaches:
In both cases you can/should reuse the existing datamode and services. Most/all of the work will be about creating appropirate UI