| 1 |
import { webModels } from "@web/../tests/web_test_helpers"; |
| 2 |
|
| 3 |
export class ResCompany extends webModels.ResCompany { |
| 4 |
_name = "res.company"; |
| 5 |
|
| 6 |
_load_pos_data_fields() { |
| 7 |
return [ |
| 8 |
"id", |
| 9 |
"currency_id", |
| 10 |
"email", |
| 11 |
"website", |
| 12 |
"company_registry", |
| 13 |
"vat", |
| 14 |
"name", |
| 15 |
"phone", |
| 16 |
"partner_id", |
| 17 |
"country_id", |
| 18 |
"state_id", |
| 19 |
"tax_calculation_rounding_method", |
| 20 |
"nomenclature_id", |
| 21 |
"point_of_sale_use_ticket_qr_code", |
| 22 |
"point_of_sale_ticket_unique_code", |
| 23 |
"point_of_sale_ticket_portal_url_display_mode", |
| 24 |
"street", |
| 25 |
"city", |
| 26 |
"zip", |
| 27 |
"account_fiscal_country_id", |
| 28 |
]; |
| 29 |
} |
| 30 |
|
| 31 |
_records = [ |
| 32 |
...webModels.ResCompany._records, |
| 33 |
{ |
| 34 |
id: 250, |
| 35 |
currency_id: 1, |
| 36 |
email: false, |
| 37 |
website: false, |
| 38 |
company_registry: false, |
| 39 |
vat: false, |
| 40 |
name: "My Company", |
| 41 |
phone: "", |
| 42 |
partner_id: 1, |
| 43 |
country_id: 233, |
| 44 |
state_id: false, |
| 45 |
tax_calculation_rounding_method: "round_per_line", |
| 46 |
point_of_sale_use_ticket_qr_code: true, |
| 47 |
point_of_sale_ticket_unique_code: false, |
| 48 |
point_of_sale_ticket_portal_url_display_mode: "qr_code_and_url", |
| 49 |
street: "", |
| 50 |
city: "", |
| 51 |
zip: "", |
| 52 |
account_fiscal_country_id: 233, |
| 53 |
}, |
| 54 |
]; |
| 55 |
} |