menus.xml
6.38 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
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!--Farmer-->
<record id="tandur_location_action" model="ir.actions.act_window">
<field name="name">Location</field>
<field name="res_model">res.partner</field>
<field name="view_mode">kanban,tree,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Product
</p>
</field>
</record>
<record id="tandur_production_action" model="ir.actions.act_window">
<field name="name">Production</field>
<field name="res_model">mrp.production</field>
<field name="view_mode">kanban,tree,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Production
</p>
</field>
</record>
<!--Buyer-->
<record id="tandur_buy_product_action" model="ir.actions.act_window">
<field name="name">Product to Buy</field>
<field name="res_model">mrp.production</field>
<field name="view_mode">kanban,tree,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Product to Buy
</p>
</field>
</record>
<record id="tandur_buy_discuss_action" model="ir.actions.act_window">
<field name="name">Buy Discussion</field>
<field name="res_model">mrp.production</field>
<field name="view_mode">kanban,tree,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Product to Buy
</p>
</field>
</record>
<!--Investor-->
<record id="tandur_invest_product_action" model="ir.actions.act_window">
<field name="name">Invest Product</field>
<field name="res_model">mrp.production</field>
<field name="view_mode">kanban,tree,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Production
</p>
</field>
</record>
<record id="tandur_invest_discuss_action" model="ir.actions.act_window">
<field name="name">Invest Discussion</field>
<field name="res_model">mrp.production</field>
<field name="view_mode">kanban,tree,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Production
</p>
</field>
</record>
<!--Config-->
<record id="tandur_product_action" model="ir.actions.act_window">
<field name="name">Product</field>
<field name="res_model">product.template</field>
<field name="view_mode">kanban,tree,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Product
</p>
</field>
</record>
<record id="tandur_template_action" model="ir.actions.act_window">
<field name="name">Bills of Materials</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">mrp.bom</field>
<field name="domain">[]</field> <!-- force empty -->
<field name="view_mode">tree,kanban,form</field>
<!-- <field name="search_view_id" ref="view_mrp_bom_filter"/>-->
<!-- <field name="context">{'default_company_id': allowed_company_ids[0]}</field>-->
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
No bill of materials found. Let's create one!
</p>
<p>
Bills of materials allow you to define the list of required raw
materials used to make a finished product; through a manufacturing
order or a pack of products.
</p>
</field>
</record>
<menuitem id="tandur_root_menu"
name="Farmings"
web_icon="tandur,static/description/icon.png"
active="True"
sequence="2"/>
<!--Farmer-->
<menuitem id="tandur_farmer_menu"
name="Farmer"
parent="tandur_root_menu"
sequence="1"/>
<menuitem id="tandur_location_menu"
name="Location"
parent="tandur_farmer_menu"
action="tandur_location_action"
sequence="1"/>
<menuitem id="tandur_production_menu"
name="Production Plan"
parent="tandur_farmer_menu"
action="tandur_production_action"
sequence="2"/>
<!--Buyer-->
<menuitem id="tandur_buyer_menu"
name="Buyer"
parent="tandur_root_menu"
sequence="2"/>
<menuitem id="tandur_buy_product_menu"
name="Production List"
parent="tandur_buyer_menu"
action="tandur_buy_product_action"
sequence="1"/>
<menuitem id="tandur_buy_discuss_menu"
name="Followup/Discuss"
parent="tandur_buyer_menu"
action="tandur_buy_discuss_action"
sequence="1"/>
<!--Investor-->
<menuitem id="tandur_investor_menu"
name="Investor"
parent="tandur_root_menu"
sequence="3"/>
<menuitem id="tandur_invest_product_menu"
name="Investor Need"
parent="tandur_investor_menu"
action="tandur_invest_product_action"
sequence="1"/>
<menuitem id="tandur_invest_discuss_menu"
name="Followup/Discuss"
parent="tandur_investor_menu"
action="tandur_invest_discuss_action"
sequence="2"/>
<!-- Config-->
<menuitem id="tandur_config_menu"
name="Configuration"
parent="tandur_root_menu"
sequence="7"/>
<menuitem id="tandur_product_menu"
name="Product"
parent="tandur_config_menu"
action="tandur_product_action"
sequence="1"/>
<menuitem id="tandur_template_menu"
name="Template"
parent="tandur_config_menu"
action="tandur_template_action"
sequence="2"/>
<menuitem id="tandur_price_menu"
name="Price History"
parent="tandur_config_menu"
action="action_tandur_price_hist"
sequence="2"/>
<data>
</data>
</odoo>