Debian Codegraph @

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

raw
1 import { webModels } from "@web/../tests/web_test_helpers";
2
3 export class ResCurrency extends webModels.ResCurrency {
4 _name = "res.currency";
5
6 _load_pos_data_fields() {
7 return [
8 "id",
9 "name",
10 "symbol",
11 "position",
12 "rounding",
13 "rate",
14 "decimal_places",
15 "iso_numeric",
16 ];
17 }
18
19 _records = [
20 {
21 id: 1,
22 name: "USD",
23 symbol: "$",
24 position: "before",
25 rounding: 0.01,
26 rate: 1.0,
27 decimal_places: 2,
28 iso_numeric: 840,
29 },
30 {
31 id: 125,
32 name: "EUR",
33 symbol: "€",
34 position: "after",
35 rounding: 0.01,
36 rate: 1.0,
37 decimal_places: 2,
38 iso_numeric: 978,
39 },
40 ...webModels.ResCurrency._records.filter((record) => record.id !== 1),
41 ];
42 }