Debian Codegraph @

addons/point_of_sale/static/tests/unit/data/resource_calendar_attendance.js

raw
1 import { models } from "@web/../tests/web_test_helpers";
2
3 export class ResourceCalendarAttendance extends models.ServerModel {
4 _name = "resource.calendar.attendance";
5
6 _load_pos_data_fields() {
7 return ["id", "hour_from", "hour_to", "dayofweek", "day_period"];
8 }
9
10 _records = [
11 {
12 id: 1,
13 hour_from: 12,
14 hour_to: 15,
15 dayofweek: "1",
16 day_period: "lunch",
17 },
18 {
19 id: 2,
20 hour_from: 18,
21 hour_to: 22,
22 dayofweek: "1",
23 day_period: "evening",
24 },
25 {
26 id: 3,
27 hour_from: 12,
28 hour_to: 15,
29 dayofweek: "2",
30 day_period: "lunch",
31 },
32 {
33 id: 4,
34 hour_from: 18,
35 hour_to: 22,
36 dayofweek: "2",
37 day_period: "evening",
38 },
39 {
40 id: 5,
41 hour_from: 12,
42 hour_to: 15,
43 dayofweek: "3",
44 day_period: "lunch",
45 },
46 {
47 id: 6,
48 hour_from: 18,
49 hour_to: 22,
50 dayofweek: "3",
51 day_period: "evening",
52 },
53 {
54 id: 7,
55 hour_from: 12,
56 hour_to: 15,
57 dayofweek: "4",
58 day_period: "lunch",
59 },
60 {
61 id: 8,
62 hour_from: 18,
63 hour_to: 22,
64 dayofweek: "4",
65 day_period: "evening",
66 },
67 {
68 id: 9,
69 hour_from: 12,
70 hour_to: 15,
71 dayofweek: "5",
72 day_period: "lunch",
73 },
74 {
75 id: 10,
76 hour_from: 18,
77 hour_to: 22,
78 dayofweek: "5",
79 day_period: "evening",
80 },
81 ];
82 }