| 1 |
import { models } from "@web/../tests/web_test_helpers"; |
| 2 |
|
| 3 |
export class PosPreset extends models.ServerModel { |
| 4 |
_name = "pos.preset"; |
| 5 |
|
| 6 |
_load_pos_data_fields() { |
| 7 |
return [ |
| 8 |
"id", |
| 9 |
"name", |
| 10 |
"pricelist_id", |
| 11 |
"fiscal_position_id", |
| 12 |
"is_return", |
| 13 |
"color", |
| 14 |
"has_image", |
| 15 |
"write_date", |
| 16 |
"identification", |
| 17 |
"use_timing", |
| 18 |
"slots_per_interval", |
| 19 |
"interval_time", |
| 20 |
"attendance_ids", |
| 21 |
]; |
| 22 |
} |
| 23 |
|
| 24 |
_records = [ |
| 25 |
{ |
| 26 |
id: 1, |
| 27 |
name: "In", |
| 28 |
pricelist_id: 1, |
| 29 |
fiscal_position_id: 1, |
| 30 |
is_return: false, |
| 31 |
color: 0, |
| 32 |
has_image: false, |
| 33 |
write_date: "2025-07-03 14:34:01", |
| 34 |
identification: "none", |
| 35 |
use_timing: false, |
| 36 |
slots_per_interval: 5, |
| 37 |
interval_time: 20, |
| 38 |
attendance_ids: [], |
| 39 |
}, |
| 40 |
{ |
| 41 |
id: 2, |
| 42 |
name: "Out", |
| 43 |
pricelist_id: false, |
| 44 |
fiscal_position_id: false, |
| 45 |
is_return: false, |
| 46 |
color: 0, |
| 47 |
has_image: false, |
| 48 |
write_date: "2025-07-03 14:34:07", |
| 49 |
identification: "none", |
| 50 |
use_timing: true, |
| 51 |
slots_per_interval: 5, |
| 52 |
interval_time: 20, |
| 53 |
attendance_ids: [], |
| 54 |
resource_calendar_id: 1, |
| 55 |
}, |
| 56 |
{ |
| 57 |
id: 3, |
| 58 |
name: "Name Required Preset", |
| 59 |
identification: "name", |
| 60 |
use_timing: false, |
| 61 |
}, |
| 62 |
{ |
| 63 |
id: 4, |
| 64 |
name: "Address Required Preset", |
| 65 |
identification: "address", |
| 66 |
use_timing: false, |
| 67 |
}, |
| 68 |
]; |
| 69 |
} |