mirror of
https://github.com/bringout/oca-ocb-hr.git
synced 2026-04-23 05:12:04 +02:00
19.0 vanilla
This commit is contained in:
parent
a1137a1456
commit
e1d89e11e3
2789 changed files with 1093187 additions and 605897 deletions
|
|
@ -0,0 +1,12 @@
|
|||
import { onRpc } from "@web/../tests/web_test_helpers";
|
||||
|
||||
onRpc("get_avatar_card_data", function getAvatarCardData({ args }) {
|
||||
const resourceId = args[0][0];
|
||||
const resources = this.env["hr.employee.public"].search_read([["id", "=", resourceId]]);
|
||||
return resources.map((resource) => ({
|
||||
name: resource.name,
|
||||
work_email: resource.work_email,
|
||||
phone: resource.phone,
|
||||
user_id: resource.user_id,
|
||||
}));
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue