| 1 |
import { ResPartner as MailResPartner } from "@mail/../tests/mock_server/mock_models/res_partner"; |
| 2 |
|
| 3 |
export class ResPartner extends MailResPartner { |
| 4 |
_name = "res.partner"; |
| 5 |
|
| 6 |
_load_pos_data_fields() { |
| 7 |
return [ |
| 8 |
"id", |
| 9 |
"name", |
| 10 |
"street", |
| 11 |
"street2", |
| 12 |
"city", |
| 13 |
"state_id", |
| 14 |
"country_id", |
| 15 |
"vat", |
| 16 |
"lang", |
| 17 |
"phone", |
| 18 |
"zip", |
| 19 |
"email", |
| 20 |
"barcode", |
| 21 |
"write_date", |
| 22 |
"property_product_pricelist", |
| 23 |
"parent_name", |
| 24 |
"pos_contact_address", |
| 25 |
"invoice_emails", |
| 26 |
"company_type", |
| 27 |
"fiscal_position_id", |
| 28 |
]; |
| 29 |
} |
| 30 |
|
| 31 |
_records = [ |
| 32 |
...MailResPartner.prototype.constructor._records, |
| 33 |
{ |
| 34 |
id: 3, |
| 35 |
name: "Administrator", |
| 36 |
street: false, |
| 37 |
street2: false, |
| 38 |
city: false, |
| 39 |
state_id: false, |
| 40 |
country_id: false, |
| 41 |
vat: false, |
| 42 |
lang: "en_US", |
| 43 |
phone: false, |
| 44 |
zip: false, |
| 45 |
email: false, |
| 46 |
barcode: false, |
| 47 |
write_date: "2025-07-03 12:38:12", |
| 48 |
property_product_pricelist: false, |
| 49 |
parent_name: false, |
| 50 |
pos_contact_address: "\n\n \n", |
| 51 |
invoice_emails: "", |
| 52 |
company_type: "person", |
| 53 |
fiscal_position_id: false, |
| 54 |
credit_limit: 0.0, |
| 55 |
use_partner_credit_limit: false, |
| 56 |
}, |
| 57 |
{ |
| 58 |
id: 4, |
| 59 |
name: "User1", |
| 60 |
street: false, |
| 61 |
street2: false, |
| 62 |
city: false, |
| 63 |
state_id: false, |
| 64 |
country_id: false, |
| 65 |
vat: false, |
| 66 |
lang: "en_US", |
| 67 |
phone: false, |
| 68 |
zip: false, |
| 69 |
email: false, |
| 70 |
barcode: false, |
| 71 |
write_date: "2025-08-03 12:12:12", |
| 72 |
property_product_pricelist: false, |
| 73 |
parent_name: false, |
| 74 |
pos_contact_address: "\n\n \n", |
| 75 |
invoice_emails: "", |
| 76 |
company_type: "person", |
| 77 |
fiscal_position_id: false, |
| 78 |
credit_limit: 0.0, |
| 79 |
use_partner_credit_limit: false, |
| 80 |
}, |
| 81 |
]; |
| 82 |
} |