19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:31:00 +01:00
parent a1137a1456
commit e1d89e11e3
2789 changed files with 1093187 additions and 605897 deletions

View file

@ -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,
}));
});