Debian Codegraph @

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

raw
1 import { models } from "@web/../tests/web_test_helpers";
2
3 export class UomUom extends models.ServerModel {
4 _name = "uom.uom";
5
6 _load_pos_data_fields() {
7 return ["id", "name", "factor", "is_pos_groupable", "parent_path", "rounding"];
8 }
9
10 _records = [
11 {
12 id: 5,
13 name: "Days",
14 factor: 8.0,
15 is_pos_groupable: false,
16 parent_path: "4/5/",
17 rounding: 0.01,
18 },
19 {
20 id: 2,
21 name: "Pack of 6",
22 factor: 6.0,
23 is_pos_groupable: true,
24 parent_path: "1/2/",
25 rounding: 0.01,
26 },
27 {
28 id: 8,
29 name: "m",
30 factor: 1000.0,
31 is_pos_groupable: false,
32 parent_path: "6/7/8/",
33 rounding: 0.01,
34 },
35 {
36 id: 15,
37 name: "kg",
38 factor: 1000.0,
39 is_pos_groupable: false,
40 parent_path: "14/15/",
41 rounding: 0.01,
42 },
43 {
44 id: 16,
45 name: "Ton",
46 factor: 1000000.0,
47 is_pos_groupable: false,
48 parent_path: "14/15/16/",
49 rounding: 0.01,
50 },
51 {
52 id: 12,
53 name: "L",
54 factor: 1000.0,
55 is_pos_groupable: false,
56 parent_path: "11/12/",
57 rounding: 0.01,
58 },
59 {
60 id: 4,
61 name: "Hours",
62 factor: 1.0,
63 is_pos_groupable: false,
64 parent_path: "4/",
65 rounding: 0.01,
66 },
67 {
68 id: 1,
69 name: "Units",
70 factor: 1.0,
71 is_pos_groupable: true,
72 parent_path: "1/",
73 rounding: 0.01,
74 },
75 {
76 id: 14,
77 name: "g",
78 factor: 1.0,
79 is_pos_groupable: false,
80 parent_path: "14/",
81 rounding: 0.01,
82 },
83 {
84 id: 11,
85 name: "ml",
86 factor: 1.0,
87 is_pos_groupable: false,
88 parent_path: "11/",
89 rounding: 0.01,
90 },
91 {
92 id: 6,
93 name: "mm",
94 factor: 1.0,
95 is_pos_groupable: false,
96 parent_path: "6/",
97 rounding: 0.01,
98 },
99 {
100 id: 10,
101 name: "m²",
102 factor: 1.0,
103 is_pos_groupable: false,
104 parent_path: "10/",
105 rounding: 0.01,
106 },
107 ];
108 }