Debian Codegraph @

addons/pos_sale/static/tests/unit/data/product_template.data.js

raw symbols SCIP
1 import { patch } from "@web/core/utils/patch";
2 import { ProductTemplate } from "@point_of_sale/../tests/unit/data/product_template.data";
3
4 patch(ProductTemplate.prototype, {
5 _load_pos_data_fields() {
6 return [...super._load_pos_data_fields(), "sale_line_warn_msg", "invoice_policy"];
7 },
8 });
9
10 ProductTemplate._records = [
11 ...ProductTemplate._records,
12 {
13 id: 105,
14 display_name: "Down Payment (POS)",
15 standard_price: 0,
16 categ_id: false,
17 pos_categ_ids: [],
18 taxes_id: [],
19 barcode: false,
20 name: "Down Payment (POS)",
21 list_price: 0,
22 is_favorite: false,
23 default_code: false,
24 to_weight: false,
25 uom_id: 1,
26 description_sale: false,
27 description: false,
28 tracking: "none",
29 type: "service",
30 service_tracking: "no",
31 is_storable: false,
32 write_date: "2025-07-03 17:04:14",
33 color: 0,
34 pos_sequence: 5,
35 available_in_pos: true,
36 attribute_line_ids: [],
37 active: true,
38 image_128: false,
39 sequence: 1,
40 combo_ids: [],
41 product_variant_ids: [7],
42 public_description: false,
43 pos_optional_product_ids: [],
44 product_tag_ids: [],
45 },
46 ];