This repository was archived by the owner on Dec 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathproduct.xml
More file actions
48 lines (45 loc) · 2.11 KB
/
Copy pathproduct.xml
File metadata and controls
48 lines (45 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<record model="ir.ui.view" id="product_view_list_sale_line">
<field name="model">product.product</field>
<field name="type">tree</field>
<field name="priority" eval="20"/>
<field name="name">product_list_sale_line</field>
</record>
<record model="ir.action.act_window" id="act_product">
<field name="name">Products</field>
<field name="res_model">product.product</field>
<field name="domain" eval="[('salable', '=', True)]" pyson="1"/>
<field name="context_model">product.sale.context</field>
<field name="context" eval="{'stock_skip_warehouse': True}" pyson="1"/>
</record>
<record model="ir.action.act_window.view" id="act_product_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="product_view_list_sale_line"/>
<field name="act_window" ref="act_product"/>
</record>
<record model="ir.action.act_window.view" id="act_product_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="product.product_view_form"/>
<field name="act_window" ref="act_product"/>
</record>
<menuitem
parent="menu_sale"
action="act_product"
sequence="50"
id="menu_product"/>
<record model="ir.ui.view" id="product_sale_context_view_form">
<field name="model">product.sale.context</field>
<field name="type">form</field>
<field name="name">product_sale_context_form</field>
</record>
<record model="ir.ui.view" id="product_configuration_view_form">
<field name="model">product.configuration</field>
<field name="inherit" ref="product.product_configuration_view_form"/>
<field name="name">product_configuration_form</field>
</record>
</data>
</tryton>