~openerp-commiter/openobject-addons/extra-6.0

« back to all changes in this revision

Viewing changes to hotel/hotel_view.xml

  • Committer: Apa(Open ERP)
  • Date: 2009-04-27 13:38:52 UTC
  • Revision ID: apa@tinyerp.com-20090427133852-r2h309wkar0aobz2
Add hotel's module

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?xml version="1.0"?>
2
2
<openerp>
3
3
        <data>
 
4
        <menuitem  id="hotel_configuration_menu" name="Hotel Management/Configuration" sequence="1"/>
 
5
        <menuitem  id="hotel_report_menu" name="Hotel Management/Reports" sequence="6"/>
 
6
        
 
7
        
4
8
        <!--====================================================
5
9
                                                                Floor
6
10
                ==================================================== -->
7
 
 
 
11
                
8
12
                <record model="ir.ui.view" id="view_hotel_floor_form">
9
13
                        <field name="name">hotel.floor.form</field>
10
14
                        <field name="model">hotel.floor</field>
32
36
                        <field name="res_model">hotel.floor</field>
33
37
                        <field name="view_type">form</field>
34
38
                        <field name="view_mode">tree,form</field>
35
 
                </record>
36
 
                <menuitem name="Hotel Management" id="menu_hotel_mgt"/>
37
 
                <menuitem name="Configuration" parent="menu_hotel_mgt" id="menu_config"/>
38
 
                <menuitem name="Floor" parent="menu_config"
39
 
                          id="menu_open_hotel_floor_form_tree"
40
 
                                  action="open_hotel_floor_form_tree"/>
41
 
 
42
 
        <!--====================================================================
 
39
                </record> 
 
40
                <menuitem name="Floor"
 
41
                          id="menu_open_hotel_floor_form_tree" 
 
42
                                  action="open_hotel_floor_form_tree"
 
43
                                  sequence="1"
 
44
                                  parent="hotel_configuration_menu"/>
 
45
        
 
46
        <!--==================================================================== 
43
47
                                                                Amenities Type
44
48
                ====================================================================-->
45
49
 
61
65
                        <field name="arch" type="xml">
62
66
                                <tree string="Hotel Room Amenities Type">
63
67
                                        <field name="complete_name"/>
64
 
 
 
68
                                        
65
69
                                </tree>
66
70
                        </field>
67
71
                </record>
71
75
                        <field name="view_type">form</field>
72
76
                        <field name="view_mode">tree,form</field>
73
77
                </record>
74
 
                <menuitem name="Amenities Types" parent="menu_config"
 
78
                <menuitem name="Amenity Types"
75
79
                                  id="menu_action_hotel_room_amenities_type_view_form"
76
 
                                  action="action_hotel_room_amenities_type_view_form"/>
77
 
 
78
 
 
 
80
                                  action="action_hotel_room_amenities_type_view_form"
 
81
                                  sequence="3"
 
82
                                  parent="hotel_configuration_menu"/> 
 
83
        
 
84
        
79
85
 
80
86
        <!--===============================================================
81
87
                                                                Room Amenities
82
88
                ===============================================================-->
83
 
 
 
89
                
84
90
                <record model="ir.ui.view" id="view_hotel_room_amenities_form">
85
91
                        <field name="name">hotel.room_amenities_form</field>
86
92
                        <field name="model">hotel.room_amenities</field>
104
110
                                                        <field name="supplier_taxes_id" colspan="4" />
105
111
                                                        <field name="taxes_id" colspan="4" />
106
112
                                                </page>
107
 
 
 
113
                                                
108
114
                                                <page string="Procurement">
109
115
                                                        <field name="supply_method"/>
110
116
                                                        <field name="active" select="2"/>
116
122
                                                        <field name="cost_method"/>
117
123
                                                        <field name="rental" select="2"/>
118
124
                                                        <newline/>
119
 
                                                        <!--
 
125
                                                        <!-- 
120
126
                                                        <field name="price_margin"/>
121
127
                                                        <field name="price_extra"/>
122
128
                                                        -->
124
130
                                                        <field name="uos_coeff" />
125
131
                                                        <newline />
126
132
                                                        <field name="seller_ids" colspan="4" nolabel="1" widget="one2many_list"/>
127
 
 
 
133
                                                        
128
134
                                                </page>
129
135
                                                <page string="Descriptions">
130
136
                                                        <separator string="Description" />
137
143
                                                <page string="Properties">
138
144
                                                        <properties/>
139
145
                                                </page>
140
 
 
 
146
                                                
141
147
                                        </notebook>
142
148
                                </form>
143
149
                        </field>
151
157
                                        <field name="name" />
152
158
                                        <field name="categ_id" select="1"/>
153
159
                                        <field name="list_price" string="Amenity rate"/>
154
 
 
 
160
                                        
155
161
                                </tree>
156
162
                        </field>
157
163
                </record>
162
168
                        <field name="view_mode">tree,form</field>
163
169
                        <field name="view_id" ref="view_hotel_room_amenities_list"/>
164
170
                </record>
165
 
                <menuitem name="Amenities" parent="menu_hotel_mgt"
 
171
                <menuitem name="Amenities"
166
172
                                  id="menu_action_hotel_room_amenities_view_form"
167
 
                                  action="action_hotel_room_amenities_view_form"/>
168
 
 
 
173
                                  action="action_hotel_room_amenities_view_form"
 
174
                                  sequence="2"
 
175
                                  parent="menu_action_hotel_room_amenities_type_view_form"/>    
 
176
                
169
177
        <!--========================================================
170
178
                                                                Room Type
171
179
                ========================================================-->
195
203
                        <field name="res_model">hotel.room_type</field>
196
204
                        <field name="view_type">form</field>
197
205
                        <field name="view_mode">tree,form</field>
198
 
                </record>
199
 
                <menuitem name="Room Type" parent="menu_config"
200
 
                                 id="menu_open_hotel_room_type_form_tree"
201
 
                                 action="open_hotel_room_type_form_tree"/>
202
 
 
 
206
                </record> 
 
207
                <menuitem name="Room Types"
 
208
                                  id="menu_open_hotel_room_type_form_tree" 
 
209
                                  action="open_hotel_room_type_form_tree"
 
210
                                  sequence="6"
 
211
                                  parent="hotel_configuration_menu"/>
 
212
                                 
203
213
        <!--===================================================
204
214
                                                                Rooms
205
215
                =================================================== -->
218
228
                                                        <field name="categ_id" select="1" domain="[('isroomtype','=',True)]"/>
219
229
                                                        <field name="state" select="2" string="Room Status"/>
220
230
<!--                                                    <field name="type" select="2"/>-->
221
 
 
 
231
                                                        
222
232
<!--                                                    <field name="maxAdult" />-->
223
233
<!--                                                    <field name="maxChild" /> -->
224
 
 
 
234
                                                        
225
235
<!--                                                    <field name="procure_method"/>-->
226
 
 
 
236
                                                        
227
237
                                                        <field name="uom_id"/>
228
238
<!--                                                    <field name="uom_po_id"/>-->
229
239
                                                        <field name="product_manager" select="2"/>
241
251
                                                        <newline/>
242
252
                                                        <field name="list_price"/>
243
253
                                                        <field name="rental" select="2"/>
244
 
 
 
254
                                                        
245
255
<!--                                                    <field name="sale_ok" select="2"/>-->
246
256
                                                        <field name="standard_price"/>
247
257
<!--                                                    <field name="purchase_ok" select="2"/>-->
248
258
                                                        <field name="cost_method"/>
249
 
 
 
259
                                                        
250
260
                                                        <newline/>
251
 
                                                        <!--
 
261
                                                        <!-- 
252
262
                                                        <field name="price_margin"/>
253
263
                                                        <field name="price_extra"/>
254
264
                                                        -->
256
266
                                                        <field name="uos_coeff" />
257
267
                                                        <newline />
258
268
                                                        <field name="seller_ids" colspan="4" nolabel="1" widget="one2many_list"/>
259
 
 
 
269
                                                        
260
270
                                                </page>
261
271
                                                <page string="Descriptions">
262
272
                                                        <separator string="Description" />
291
301
                        <field name="view_type">form</field>
292
302
                        <field name="view_mode">tree,form</field>
293
303
                </record>
294
 
 
295
 
                <menuitem name="Rooms" parent="menu_hotel_mgt"
296
 
                                         id="menu_open_hotel_room_form"
297
 
                                         action="action_hotel_room_form"/>
298
 
 
 
304
                 
 
305
                <menuitem name="Rooms"
 
306
                                  id="menu_open_hotel_room_form" 
 
307
                                  action="action_hotel_room_form"
 
308
                                  sequence="5"
 
309
                                  parent="menu_open_hotel_room_type_form_tree"/>
 
310
                                          
299
311
                <!-- Services -->
300
 
 
 
312
                
301
313
                <record model="ir.ui.view" id="view_hotel_service_type_form">
302
314
                        <field name="name">hotel.service_type.form</field>
303
315
                        <field name="model">hotel.service_type</field>
324
336
                        <field name="res_model">hotel.service_type</field>
325
337
                        <field name="view_type">form</field>
326
338
                        <field name="view_mode">tree,form</field>
327
 
                </record>
328
 
                <menuitem name="Services Type" parent="menu_config"
329
 
                                 id="menu_open_hotel_service_type_form_tree"
330
 
                                 action="open_hotel_service_type_form_tree"/>
331
 
 
332
 
 
 
339
                </record> 
 
340
                <menuitem name="Service Types"
 
341
                                  id="menu_open_hotel_service_type_form_tree" 
 
342
                                  action="open_hotel_service_type_form_tree"
 
343
                                  sequence="9"
 
344
                                  parent="hotel_configuration_menu"/>
 
345
                                 
 
346
                                 
333
347
                <record model="ir.ui.view" id="view_hotel_services_form">
334
348
                        <field name="name">.hotel.services.form</field>
335
349
                        <field name="model">hotel.services</field>
364
378
                                                        <field name="cost_method"/>
365
379
                                                        <field name="rental" select="2"/>
366
380
                                                        <newline/>
367
 
                                                        <!--
 
381
                                                        <!-- 
368
382
                                                        <field name="price_margin"/>
369
383
                                                        <field name="price_extra"/>
370
384
                                                        -->
372
386
                                                        <field name="uos_coeff" />
373
387
                                                        <newline />
374
388
                                                        <field name="seller_ids" colspan="4" nolabel="1" widget="one2many_list"/>
375
 
 
 
389
                                                        
376
390
                                                </page>
377
391
                                                <page string="Descriptions">
378
392
                                                        <separator string="Description" />
407
421
                        <field name="view_type">form</field>
408
422
                        <field name="view_mode">tree,form</field>
409
423
                </record>
410
 
 
411
 
                <menuitem name="Services" parent="menu_hotel_mgt"
412
 
                                         id="menu_open_hotel_services_form"
413
 
                                         action="action_hotel_services_form"/>
414
 
 
 
424
                 
 
425
                <menuitem name="Services"
 
426
                                  id="menu_open_hotel_services_form" 
 
427
                                  action="action_hotel_services_form"
 
428
                                  sequence="8"
 
429
                                  parent="menu_open_hotel_service_type_form_tree"/>
 
430
                                         
415
431
 
416
432
        <!--========================================================
417
433
                                                                Hotel Folio
448
464
                                                                                        <field name="checkout_date" on_change="on_change_checkout(checkin_date,checkout_date)" />
449
465
                                                                                        <separator string="Automatic Declaration" colspan="4"/>
450
466
                                                                                        <field name="product_uom_qty"
451
 
                                                                                                on_change="product_id_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, parent.fiscal_position, 'lang' in context and context['lang'], False, parent.date_order)"
 
467
                                                                                                on_change="product_id_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, 'lang' in context and context['lang'], False, parent.date_order)"
452
468
                                                                                                context="partner_id=parent.partner_id,quantity=product_uom_qty,pricelist=parent.pricelist_id,shop=parent.shop_id,uom=product_uom"
453
469
                                                                                                select="1"/>
454
470
                                                                                        <field name="product_uom"
455
471
                                                                                                on_change="product_uom_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, 'lang' in context and context['lang'], False, parent.date_order)"
456
472
                                                                                                string="Rent(UOM)"/>
457
473
                                                                                        <field name="product_id"
458
 
                                                                                                on_change="product_id_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, parent.fiscal_position, 'lang' in context and context['lang'], True, parent.date_order)"
 
474
                                                                                                on_change="product_id_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, 'lang' in context and context['lang'], True, parent.date_order)"
459
475
                                                                                                context="partner_id=parent.partner_id,quantity=product_uom_qty,pricelist=parent.pricelist_id,shop=parent.shop_id,uom=product_uom"
460
476
                                                                                                colspan="4" select="1" domain="[('isroom','=',True)]" string="Room No"/>
461
477
                                                                                        <separator string="Manual Description"
505
521
                                                                                <page string="Service Line">
506
522
                                                                                        <separator string="Automatic Declaration" colspan="4"/>
507
523
                                                                                        <field name="product_uom_qty"
508
 
                                                                                                on_change="product_id_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, parent.fiscal_position, 'lang' in context and context['lang'], False, parent.date_order)"
 
524
                                                                                                on_change="product_id_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, 'lang' in context and context['lang'], False, parent.date_order)"
509
525
                                                                                                context="partner_id=parent.partner_id,quantity=product_uom_qty,pricelist=parent.pricelist_id,shop=parent.shop_id,uom=product_uom"
510
526
                                                                                                select="1"/>
511
527
                                                                                        <field name="product_uom"
512
528
                                                                                                on_change="product_uom_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, 'lang' in context and context['lang'], False, parent.date_order)"
513
529
                                                                                                />
514
530
                                                                                        <field name="product_id"
515
 
                                                                                                on_change="product_id_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, parent.fiscal_position, 'lang' in context and context['lang'], True, parent.date_order)"
 
531
                                                                                                on_change="product_id_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, 'lang' in context and context['lang'], True, parent.date_order)"
516
532
                                                                                                context="partner_id=parent.partner_id,quantity=product_uom_qty,pricelist=parent.pricelist_id,shop=parent.shop_id,uom=product_uom"
517
533
                                                                                                colspan="4" select="1" domain="[('isservice','=',True)]"/>
518
534
                                                                                        <separator string="Manual Description"
583
599
                                                        <field name="origin"/>
584
600
                                                        <field name="invoice_quantity"/>
585
601
                                                        <field name="client_order_ref" />
586
 
                                                        <field name="fiscal_position" groups="base.group_extended"/>
587
602
                                                        <separator string="Notes" colspan="4"/>
588
603
                                                        <field name="note" colspan="4" nolabel="1"/>
589
604
                                                </page>
601
616
                        <field name="name">hotel.folio.tree</field>
602
617
                        <field name="model">hotel.folio</field>
603
618
                        <field name="type">tree</field>
604
 
 
 
619
                         
605
620
                        <field name="arch" type="xml">
606
621
                                <tree string="Hotel Folio1">
607
 
 
 
622
                                        
608
623
                                        <field name="checkin_date" />
609
624
                                        <field name="checkout_date" />
610
625
                                        <field name="name" select="1"/>
620
635
                        <field name="view_type">form</field>
621
636
                        <field name="view_mode">form,tree</field>
622
637
                </record>
623
 
                <menuitem name="Generate Folio" parent="menu_hotel_mgt"
 
638
                <menuitem name="Hotel Management/All Folio/Generate Folio"
624
639
                                  id="menu_open_hotel_folio1_form_tree"
625
 
                                  action="open_hotel_folio1_form_tree"/>
626
 
 
 
640
                                  action="open_hotel_folio1_form_tree"
 
641
                                  sequence="27"/>
 
642
                
627
643
                <record model="ir.actions.act_window" id="open_hotel_folio1_form_tree_all">
628
644
                        <field name="name">Hotel Folio</field>
629
645
                        <field name="res_model">hotel.folio</field>
630
646
                        <field name="view_type">form</field>
631
647
                        <field name="view_mode">tree,form</field>
632
648
                </record>
633
 
                <menuitem name="All Folio" parent="menu_open_hotel_folio1_form_tree"
 
649
                <menuitem name="Hotel Management/All Folio"
634
650
                                  id="menu_open_hotel_folio1_form_tree_all"
635
 
                                  action="open_hotel_folio1_form_tree_all"/>
636
 
 
637
 
                <!-- Categories for Room, Amenities, Services -->
638
 
 
 
651
                                  action="open_hotel_folio1_form_tree_all"
 
652
                                  sequence="5"/>                                         
 
653
                                         
 
654
                <!-- Categories for Room, Amenities, Services -->               
 
655
                                         
639
656
                <record model="ir.actions.act_window" id="hotel_room_category_action">
640
657
                        <field name="type">ir.actions.act_window</field>
641
658
                        <field name="res_model">product.category</field>
643
660
                        <field name="view_type">tree</field>
644
661
                        <field name="view_id" ref="product.product_category_tree_view"/>
645
662
                </record>
646
 
                <menuitem name="Room Type" parent="menu_config" id="menu_room_type"/>
647
 
                <menuitem name="Room by Category" parent="menu_room_type" id="menu_hotel_room_category_action" action="hotel_room_category_action"/>
648
 
 
 
663
                <menuitem name="Room by Category" 
 
664
                                  id="menu_hotel_room_category_action" 
 
665
                                  action="hotel_room_category_action"
 
666
                                  sequence="7"
 
667
                                  parent="menu_open_hotel_room_type_form_tree"/>
 
668
                
649
669
                <record model="ir.actions.act_window" id="hotel_amenity_category_action">
650
670
                        <field name="type">ir.actions.act_window</field>
651
671
                        <field name="res_model">product.category</field>
653
673
                        <field name="view_type">tree</field>
654
674
                        <field name="view_id" ref="product.product_category_tree_view"/>
655
675
                </record>
656
 
                <menuitem name="Amenities Types" parent="menu_config" id="menu_amenities"/>
657
 
                <menuitem name="Amenities by Category" parent="menu_amenities" id="menu_hotel_amenity_category_action" action="hotel_amenity_category_action"/>
658
 
 
 
676
                <menuitem name="Amenities by Category" 
 
677
                                  id="menu_hotel_amenity_category_action" 
 
678
                                  action="hotel_amenity_category_action"
 
679
                                  sequence="4"
 
680
                                  parent="menu_action_hotel_room_amenities_type_view_form"/>
 
681
        
659
682
                <record model="ir.actions.act_window" id="hotel_service_category_action">
660
683
                        <field name="type">ir.actions.act_window</field>
661
684
                        <field name="res_model">product.category</field>
663
686
                        <field name="view_type">tree</field>
664
687
                        <field name="view_id" ref="product.product_category_tree_view"/>
665
688
                </record>
666
 
                <menuitem name="Services by Category" parent="menu_open_hotel_service_type_form_tree" id="menu_hotel_service_category_action" action="hotel_service_category_action"/>
667
 
 
 
689
                <menuitem name="Services by Category" 
 
690
                                  id="menu_hotel_service_category_action" 
 
691
                                  action="hotel_service_category_action"
 
692
                                  sequence="10"
 
693
                                  parent="menu_open_hotel_service_type_form_tree"/>
 
694
        
668
695
        </data>
669
 
</openerp>
 
696
</openerp>
 
 
b'\\ No newline at end of file'