-
Notifications
You must be signed in to change notification settings - Fork 2
/
catalog_view.xml
137 lines (129 loc) · 6.16 KB
/
catalog_view.xml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
##############################################################################
#
# product_catalog module for OpenERP, Associate product in a multiple catalog
# Copyright (C) 2013 MIROUNGA ([http://www.mirounga.fr/])
# Christophe CHAUVET [christophe.chauvet@mirounga.fr]
#
# This file is a part of product_catalog
#
# product_catalog is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# product_catalog is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see [http://www.gnu.org/licenses/].
#
##############################################################################
<record id="view_product_catalog_tree" model="ir.ui.view">
<field name="name">product.catalog.tree</field>
<field name="model">product.catalog</field>
<field name="priority" eval="8"/>
<field name="arch" type="xml">
<tree string="Catalog">
<field name="name"/>
<field name="begin_date"/>
<field name="end_date"/>
</tree>
</field>
</record>
<record id="view_product_catalog_form" model="ir.ui.view">
<field name="name">product.catalog.form</field>
<field name="model">product.catalog</field>
<field name="priority" eval="8"/>
<field name="arch" type="xml">
<form string="Catalog" version="7.0">
<header>
<button string="Add category to catalog" class="oe_highlight" type="action" name="%(action_add_to_catalog_wizard_view)s"/>
</header>
<sheet>
<div class="oe_title">
<div class="oe_edit_only">
<label for="name" string="Product Name"/>
</div>
<h1>
<field name="name"/>
</h1>
</div>
<notebook colspan="4">
<page string="Information">
<group>
<group>
<field name="begin_date"/>
<field name="end_date"/>
</group>
<group>
<field name="company_id"/>
<field name="active"/>
</group>
</group>
</page>
<page string="Products">
<field name="product_ids" colspan="4">
<tree>
<field name="default_code"/>
<field name="name"/>
</tree>
</field>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record id="view_product_catalog_search" model="ir.ui.view">
<field name="name">product.catalog.search</field>
<field name="model">product.catalog</field>
<field name="priority" eval="8"/>
<field name="arch" type="xml">
<search string="Catalog">
<field name="name" select="True"/>
<field name="begin_date"/>
<field name="end_date"/>
</search>
</field>
</record>
<record model="ir.actions.act_window" id="act_open_product_catalog_view">
<field name="name">Catalog</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">product.catalog</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="search_view_id" ref="view_product_catalog_search"/>
<field name="domain">[]</field>
<field name="context">{}</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to define a new catalog.
</p><p>
You must define a catalog to group products.
</p>
</field>
</record>
<record model="ir.actions.act_window.view" id="act_open_product_catalog_view_form">
<field name="act_window_id" ref="act_open_product_catalog_view"/>
<field name="sequence" eval="20"/>
<field name="view_mode">form</field>
<field name="view_id" ref="view_product_catalog_form"/>
</record>
<record model="ir.actions.act_window.view" id="act_open_product_catalog_view_tree">
<field name="act_window_id" ref="act_open_product_catalog_view"/>
<field name="sequence" eval="10"/>
<field name="view_mode">tree</field>
<field name="view_id" ref="view_product_catalog_tree"/>
</record>
<menuitem id="menu_product_catalog"
parent="base.menu_product"
sequence="50"
groups="group_product_catalog,group_product_catalog_manager"
action="act_open_product_catalog_view"/>
</data>
</openerp>