addons/point_of_sale/static/tests/unit/data/res_country.data.js
raw| 1 | import { webModels } from "@web/../tests/web_test_helpers"; |
| 2 | |
| 3 | export class ResCountry extends webModels.ResCountry { |
| 4 | _name = "res.country"; |
| 5 | |
| 6 | _load_pos_data_fields() { |
| 7 | return ["id", "name", "code", "vat_label"]; |
| 8 | } |
| 9 | |
| 10 | _records = [ |
| 11 | ...webModels.ResCountry._records, |
| 12 | { |
| 13 | id: 233, |
| 14 | name: "United States", |
| 15 | code: "US", |
| 16 | vat_label: "", |
| 17 | }, |
| 18 | ]; |
| 19 | } |