addons/point_of_sale/static/tests/unit/data/pos_note.data.js
raw| 1 | import { models } from "@web/../tests/web_test_helpers"; |
| 2 | |
| 3 | export class PosNote extends models.ServerModel { |
| 4 | _name = "pos.note"; |
| 5 | |
| 6 | _load_pos_data_fields() { |
| 7 | return ["name", "color"]; |
| 8 | } |
| 9 | |
| 10 | _records = [ |
| 11 | { |
| 12 | id: 1, |
| 13 | name: "Wait", |
| 14 | color: 0, |
| 15 | }, |
| 16 | { |
| 17 | id: 2, |
| 18 | name: "To Serve", |
| 19 | color: 0, |
| 20 | }, |
| 21 | { |
| 22 | id: 3, |
| 23 | name: "Emergency", |
| 24 | color: 0, |
| 25 | }, |
| 26 | { |
| 27 | id: 4, |
| 28 | name: "No Dressing", |
| 29 | color: 0, |
| 30 | }, |
| 31 | ]; |
| 32 | } |