| 1 |
import { models } from "@web/../tests/web_test_helpers"; |
| 2 |
|
| 3 |
export class ProductAttribute extends models.ServerModel { |
| 4 |
_name = "product.attribute"; |
| 5 |
_order = "id"; |
| 6 |
|
| 7 |
_load_pos_data_fields() { |
| 8 |
return [ |
| 9 |
"name", |
| 10 |
"display_type", |
| 11 |
"template_value_ids", |
| 12 |
"attribute_line_ids", |
| 13 |
"create_variant", |
| 14 |
]; |
| 15 |
} |
| 16 |
|
| 17 |
_records = [ |
| 18 |
{ |
| 19 |
id: 1, |
| 20 |
name: "color", |
| 21 |
display_type: "radio", |
| 22 |
template_value_ids: [], |
| 23 |
attribute_line_ids: [], |
| 24 |
create_variant: "always", |
| 25 |
}, |
| 26 |
{ |
| 27 |
id: 2, |
| 28 |
name: "gender", |
| 29 |
display_type: "radio", |
| 30 |
template_value_ids: [], |
| 31 |
attribute_line_ids: [], |
| 32 |
create_variant: "always", |
| 33 |
}, |
| 34 |
{ |
| 35 |
id: 3, |
| 36 |
name: "material", |
| 37 |
display_type: "radio", |
| 38 |
template_value_ids: [], |
| 39 |
attribute_line_ids: [], |
| 40 |
create_variant: "always", |
| 41 |
}, |
| 42 |
{ |
| 43 |
id: 4, |
| 44 |
name: "pattern", |
| 45 |
display_type: "radio", |
| 46 |
template_value_ids: [], |
| 47 |
attribute_line_ids: [], |
| 48 |
create_variant: "always", |
| 49 |
}, |
| 50 |
{ |
| 51 |
id: 5, |
| 52 |
name: "manufacturer", |
| 53 |
display_type: "radio", |
| 54 |
template_value_ids: [], |
| 55 |
attribute_line_ids: [], |
| 56 |
create_variant: "always", |
| 57 |
}, |
| 58 |
{ |
| 59 |
id: 6, |
| 60 |
name: "brand", |
| 61 |
display_type: "radio", |
| 62 |
template_value_ids: [], |
| 63 |
attribute_line_ids: [], |
| 64 |
create_variant: "always", |
| 65 |
}, |
| 66 |
{ |
| 67 |
id: 7, |
| 68 |
name: "size", |
| 69 |
display_type: "radio", |
| 70 |
template_value_ids: [], |
| 71 |
attribute_line_ids: [], |
| 72 |
create_variant: "always", |
| 73 |
}, |
| 74 |
{ |
| 75 |
id: 8, |
| 76 |
name: "age group", |
| 77 |
display_type: "radio", |
| 78 |
template_value_ids: [], |
| 79 |
attribute_line_ids: [], |
| 80 |
create_variant: "always", |
| 81 |
}, |
| 82 |
]; |
| 83 |
} |