Merge lp:~serpentcs/hotel-management-system/hotel-7.0 into lp:hotel-management-system

Proposed by Vanooteghem
Status: Needs review
Proposed branch: lp:~serpentcs/hotel-management-system/hotel-7.0
Merge into: lp:hotel-management-system
Diff against target: 13960 lines (+7702/-2935) (has conflicts)
91 files modified
board_frontdesk/Doc/ChangeLog.txt (+8/-0)
board_frontdesk/__init__.py (+15/-12)
board_frontdesk/__openerp__.py (+20/-19)
board_frontdesk/board_frontdesk_view.xml (+40/-49)
board_frontdesk/i18n/fr.po (+76/-0)
hotel/Doc/ChangeLog.txt (+23/-0)
hotel/__init__.py (+14/-12)
hotel/__openerp__.py (+37/-9)
hotel/hotel.py (+344/-311)
hotel/hotel_data.xml (+16/-35)
hotel/hotel_folio_workflow.xml (+4/-19)
hotel/hotel_scheduler.xml (+17/-0)
hotel/hotel_sequence.xml (+18/-0)
hotel/hotel_view.xml (+855/-3)
hotel/i18n/fr.po (+752/-0)
hotel/i18n/hotel.pot (+562/-341)
hotel/report/__init__.py (+11/-10)
hotel/report/hotel_report.py (+22/-23)
hotel/report/hotel_report.xml (+1/-0)
hotel/report/total_folio.rml (+33/-21)
hotel/security/ir.model.access.csv (+33/-12)
hotel/static/src/css/room_kanban.css (+4/-0)
hotel/wizard/__init__.py (+10/-9)
hotel/wizard/hotel_wizard.py (+26/-31)
hotel/wizard/hotel_wizard.xml (+37/-35)
hotel_housekeeping/Doc/ChangeLog.txt (+17/-0)
hotel_housekeeping/__init__.py (+12/-11)
hotel_housekeeping/__openerp__.py (+24/-24)
hotel_housekeeping/hotel_housekeeping.py (+76/-80)
hotel_housekeeping/hotel_housekeeping_view.xml (+86/-89)
hotel_housekeeping/i18n/fr.po (+356/-0)
hotel_housekeeping/report/__init__.py (+11/-10)
hotel_housekeeping/report/activity_detail.rml (+35/-24)
hotel_housekeeping/report/hotel_housekeeping_report.xml (+2/-3)
hotel_housekeeping/report/housekeeping_report.py (+48/-35)
hotel_housekeeping/security/ir.model.access.csv (+13/-6)
hotel_housekeeping/wizard/__init__.py (+11/-10)
hotel_housekeeping/wizard/hotel_housekeeping_wizard.xml (+19/-17)
hotel_housekeeping/wizard/housekeeping_wizard.py (+24/-29)
hotel_reservation/Doc/ChangeLog.txt (+23/-0)
hotel_reservation/__init__.py (+12/-11)
hotel_reservation/__openerp__.py (+34/-11)
hotel_reservation/hotel_reservation.py (+315/-114)
hotel_reservation/hotel_reservation_data.xml (+56/-67)
hotel_reservation/hotel_reservation_sequence.xml (+1/-1)
hotel_reservation/hotel_reservation_view.xml (+205/-77)
hotel_reservation/hotel_scheduler.xml (+15/-0)
hotel_reservation/i18n/fr.po (+356/-0)
hotel_reservation/i18n/hotel_reservation.pot (+482/-297)
hotel_reservation/report/__init__.py (+10/-9)
hotel_reservation/report/checkinlist.rml (+25/-24)
hotel_reservation/report/checkoutlist.rml (+32/-29)
hotel_reservation/report/hotel_reservation_report.py (+82/-50)
hotel_reservation/report/maxroom.rml (+34/-7)
hotel_reservation/report/room_res.rml (+69/-75)
hotel_reservation/security/ir.model.access.csv (+9/-2)
hotel_reservation/static/src/css/room_summary.css (+24/-0)
hotel_reservation/static/src/js/hotel_room_summary.js (+99/-0)
hotel_reservation/static/src/xml/hotel_room_summary.xml (+31/-0)
hotel_reservation/wizard/__init__.py (+10/-9)
hotel_reservation/wizard/hotel_reservation_wizard.py (+54/-70)
hotel_reservation/wizard/hotel_reservation_wizard.xml (+35/-38)
hotel_restaurant/Doc/ChangeLog.txt (+14/-0)
hotel_restaurant/__init__.py (+12/-12)
hotel_restaurant/__openerp__.py (+23/-22)
hotel_restaurant/hotel_restaurant.py (+155/-215)
hotel_restaurant/hotel_restaurant_data.xml (+104/-21)
hotel_restaurant/hotel_restaurant_view.xml (+232/-116)
hotel_restaurant/hotel_restaurant_workflow.xml (+15/-4)
hotel_restaurant/i18n/fr.po (+591/-0)
hotel_restaurant/report/__init__.py (+10/-9)
hotel_restaurant/report/bill.rml (+51/-38)
hotel_restaurant/report/hotel_restaurant_report.py (+19/-20)
hotel_restaurant/report/hotel_restaurant_report.xml (+2/-1)
hotel_restaurant/report/kot.rml (+47/-55)
hotel_restaurant/report/res_table.rml (+25/-16)
hotel_restaurant/wizard/__init__.py (+10/-9)
hotel_restaurant/wizard/hotel_restaurant_wizard.py (+20/-32)
hotel_restaurant/wizard/hotel_restaurant_wizard.xml (+24/-21)
report_hotel_reservation/Doc/ChangeLog.txt (+11/-0)
report_hotel_reservation/__init__.py (+4/-5)
report_hotel_reservation/__openerp__.py (+13/-12)
report_hotel_reservation/i18n/fr.po (+357/-0)
report_hotel_reservation/report_hotel_reservation.py (+9/-15)
report_hotel_reservation/report_hotel_reservation_view.xml (+17/-25)
report_hotel_restaurant/Doc/ChangeLog.txt (+11/-0)
report_hotel_restaurant/__init__.py (+4/-5)
report_hotel_restaurant/__openerp__.py (+15/-15)
report_hotel_restaurant/i18n/fr.po (+108/-0)
report_hotel_restaurant/report_hotel_restaurant.py (+11/-15)
report_hotel_restaurant/report_hotel_restaurant_view.xml (+63/-72)
Text conflict in hotel/__openerp__.py
Text conflict in hotel/hotel_view.xml
Conflict adding file hotel/static.  Moved existing file to hotel/static.moved.
Text conflict in hotel_reservation/__openerp__.py
To merge this branch: bzr merge lp:~serpentcs/hotel-management-system/hotel-7.0
Reviewer Review Type Date Requested Status
Hotel Editors Pending
Review via email: mp+236253@code.launchpad.net
To post a comment you must log in.

Unmerged revisions

67. By Dhwani ( Serpent Consulting Services)

[IMP]: Improved the room category code

66. By Serpent Consulting Services

FIX : Corrected wrong domain on Hotel View(Courtesy :Andreas Andreou <email address hidden> )

65. By Dhwani ( Serpent Consulting Services)

[IMP]: Improved the code for folio

64. By Serpent Consulting Services

[ADD] FR translations added. Courtesy to Richmond FIKO <email address hidden>

63. By Dhwani ( Serpent Consulting Services)

[FIX]: Fixed the issue of room price while change the pricelist

62. By Dhwani ( Serpent Consulting Services)

[IMP]: Imprvoed the reservation code.

61. By Dhwani ( Serpent Consulting Services)

[IMP]: Improved the code

60. By Dhwani ( Serpent Consulting Services)

[IMP]: Standardized the modules as per v7

59. By Serpent Consulting Services

Some optimizations and py standards corrected

58. By Serpent Consulting Services

Company name updated

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added directory 'board_frontdesk/Doc'
=== added file 'board_frontdesk/Doc/ChangeLog.txt'
--- board_frontdesk/Doc/ChangeLog.txt 1970-01-01 00:00:00 +0000
+++ board_frontdesk/Doc/ChangeLog.txt 2014-09-28 13:18:16 +0000
@@ -0,0 +1,8 @@
1============================================================================================================================
2 Version Change Log (board_frontdesk)
3============================================================================================================================
40.03 on 2014-01-07 by Krunal Soni
5 * Added Accurate licensing terms and Copyright(C) on top inside license info in each py file.
6
70.02 on 2013-11-13 by Sudhir Arya
8 * Standardized the module as per v7 standards.
09
=== modified file 'board_frontdesk/__init__.py'
--- board_frontdesk/__init__.py 2012-05-18 07:39:13 +0000
+++ board_frontdesk/__init__.py 2014-09-28 13:18:16 +0000
@@ -1,20 +1,23 @@
1# -*- encoding: utf-8 -*-1# -*- coding: utf-8 -*-
2##############################################################################2##############################################################################
3# 3#
4# OpenERP, Open Source Management Solution4# OpenERP, Open Source Management Solution
5# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).5# Copyright (C) 2012-Today Serpent Consulting Services Pvt. Ltd. (<http://www.serpentcs.com>)
6# Copyright (C) 2004 OpenERP SA (<http://www.openerp.com>)
6#7#
7# This program is free software: you can redistribute it and/or modify8# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as9# it under the terms of the GNU General Public License as published by
9# published by the Free Software Foundation, either version 3 of the10# the Free Software Foundation, either version 3 of the License, or
10# License, or (at your option) any later version.11# (at your option) any later version.
11#12#
12# This program is distributed in the hope that it will be useful,13# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of14# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU Affero General Public License for more details.
16#
17# You should have received a copy of the GNU Affero General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20##############################################################################
21\ No newline at end of file16\ No newline at end of file
17# GNU General Public License for more details.
18#
19# You should have received a copy of the GNU General Public License
20# along with this program. If not, see <http://www.gnu.org/licenses/>
21#
22##############################################################################
23
24# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
22\ No newline at end of file25\ No newline at end of file
2326
=== modified file 'board_frontdesk/__openerp__.py'
--- board_frontdesk/__openerp__.py 2012-05-22 14:06:57 +0000
+++ board_frontdesk/__openerp__.py 2014-09-28 13:18:16 +0000
@@ -1,42 +1,43 @@
1# -*- encoding: utf-8 -*-1# -*- coding: utf-8 -*-
2##############################################################################2##############################################################################
3# 3#
4# OpenERP, Open Source Management Solution4# OpenERP, Open Source Management Solution
5# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).5# Copyright (C) 2012-Today Serpent Consulting Services Pvt. Ltd. (<http://www.serpentcs.com>)
6# Copyright (C) 2004 OpenERP SA (<http://www.openerp.com>)
6#7#
7# This program is free software: you can redistribute it and/or modify8# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as9# it under the terms of the GNU General Public License as published by
9# published by the Free Software Foundation, either version 3 of the10# the Free Software Foundation, either version 3 of the License, or
10# License, or (at your option) any later version.11# (at your option) any later version.
11#12#
12# This program is distributed in the hope that it will be useful,13# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of14# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU Affero General Public License for more details.16# GNU General Public License for more details.
16#17#
17# You should have received a copy of the GNU Affero General Public License18# You should have received a copy of the GNU General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>. 19# along with this program. If not, see <http://www.gnu.org/licenses/>
19#20#
20##############################################################################21##############################################################################
21{22{
22 "name":"Board for Hotel FrontDesk",23 "name":"Board for Hotel FrontDesk",
23 "version":"1.0",24 "version" : "0.03",
24 "author":"Tiny",25 "author":"Serpent Consulting Services Pvt. Ltd.", "OpenERP SA"
25 "category":"Board/Hotel FrontDesk",26 "category":"Board/Hotel FrontDesk",
27 "website": ["http://www.serpentcs.com", "http://www.openerp.com"],
26 "depends":[28 "depends":[
27 "board",29 "board",
28 "report_hotel_reservation",30 "hotel_reservation",
29
30
31 ],31 ],
32 "demo_xml":[],
33 "update_xml":["board_frontdesk_view.xml"],
34 "description": """32 "description": """
35This module implements a dashboard for hotel FrontDesk that includes:33This module implements a dashboard for hotel FrontDesk that includes:
36 * Calendar view of Today's Check-In and Check-Out34 * Calendar view of Today's Check-In and Check-Out
37 * Calendar view of Weekly Check-In and Check-Out35 * Calendar view of Weekly Check-In and Check-Out
38 * Calendar view of Monthly Check-In and Check-Out36 * Calendar view of Monthly Check-In and Check-Out
39 """,37 """,
40 "active":False,
41 "installable":True,
42}
43\ No newline at end of file38\ No newline at end of file
39 "data":["board_frontdesk_view.xml"],
40 "auto_install": False,
41 "installable": True
42}
43
44# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
44\ No newline at end of file45\ No newline at end of file
4546
=== modified file 'board_frontdesk/board_frontdesk_view.xml'
--- board_frontdesk/board_frontdesk_view.xml 2012-05-22 14:06:57 +0000
+++ board_frontdesk/board_frontdesk_view.xml 2014-09-28 13:18:16 +0000
@@ -1,51 +1,42 @@
1<?xml version="1.0"?>1<?xml version="1.0"?>
2<openerp>2<openerp>
3 <data>3 <data>
44
5<!-- <record model="board.note.type" id="note_frontdesk_type">-->5 <record model="ir.actions.act_window" id="action_view_frontdesk_cal">
6<!-- <field name="name">FrontDesk</field>-->6 <field name="name">FrontDesk</field>
7<!-- </record>-->7 <field name="res_model">hotel.reservation</field>
8 8 <field name="view_type">form</field>
9 <record model="ir.actions.act_window" id="action_view_frontdesk_cal">9 <field name="view_mode">tree,form,calendar</field>
10 <field name="name">FrontDesk</field>10 <field name="view_id" ref="hotel_reservation.hotel_calendar_view"/>
11 <field name="res_model">hotel.reservation</field>11 </record>
12 <field name="view_type">form</field>12
13 <field name="view_mode">calendar,form</field>13 <record model="ir.ui.view" id="board_frontdesk_form">
14 <field name="view_id" ref="hotel_reservation.hotel_calendar_view" />14 <field name="name">board.frontdesk.form</field>
15 </record>15 <field name="model">board.board</field>
16 16 <field name="arch" type="xml">
17 <record model="ir.ui.view" id="board_frontdesk_form">17 <form string="FrontDesk board" version="7.0">
18 <field name="name">board.frontdesk.form</field>18 <board style="2-1">
19 <field name="model">board.board</field>19 <column>
20 <field name="type">form</field>20 <action string="Reservation" name="%(action_view_frontdesk_cal)d"/>
21 <field name="arch" type="xml">21 </column>
22 <form string="FrontDesk board">22 </board>
23 <hpaned>23 </form>
24 <child1>24 </field>
25 <action25 </record>
26 string="Reservation"26
27 name="%(action_view_frontdesk_cal)d"27 <record model="ir.actions.act_window" id="open_board_frontdesk">
28 />28 <field name="name">FrontDesk Dashboard</field>
29 </child1>29 <field name="res_model">board.board</field>
30 </hpaned>30 <field name="view_type">form</field>
31 </form>31 <field name="view_mode">form</field>
32 </field>32 <field name="view_id" ref="board_frontdesk_form"/>
33 </record>33 </record>
34 34
35 <record model="ir.actions.act_window" id="open_board_frontdesk">35 <menuitem id="menu_board_frontdesk"
36 <field name="name">FrontDesk Dashboard</field>36 name="Hotel FrontDesk Board"
37 <field name="res_model">board.board</field>37 action="open_board_frontdesk"
38 <field name="view_type">form</field>38 sequence="46"
39 <field name="usage">menu</field>39 parent="base.menu_reporting_dashboard"/>
40 <field name="view_id" ref="board_frontdesk_form"/>40
41 </record>41 </data>
42 42</openerp>
43 <menuitem
44 name="Hotel FrontDesk Board"
45 action="open_board_frontdesk"
46 sequence="1"
47 id="menu_board_frontdesk" icon="terp-graph"
48 parent="base.menu_dashboard_admin"/>
49
50 </data>
51</openerp>
52\ No newline at end of file43\ No newline at end of file
5344
=== modified file 'board_frontdesk/i18n/board_frontdesk.pot' (properties changed: +x to -x)
=== added file 'board_frontdesk/i18n/fr.po'
--- board_frontdesk/i18n/fr.po 1970-01-01 00:00:00 +0000
+++ board_frontdesk/i18n/fr.po 2014-09-28 13:18:16 +0000
@@ -0,0 +1,76 @@
1# Translation of OpenERP Server.
2# This file contains the translation of the following modules:
3# * board_frontdesk
4#
5msgid ""
6msgstr ""
7"Project-Id-Version: OpenERP Server 5.0.6\n"
8"Report-Msgid-Bugs-To: support@openerp.com\n"
9"POT-Creation-Date: 2009-11-26 06:18:01+0000\n"
10"PO-Revision-Date: 2014-07-18 17:17-0000\n"
11"Last-Translator: <>\n"
12"Language-Team: \n"
13"MIME-Version: 1.0\n"
14"Content-Type: text/plain; charset=UTF-8\n"
15"Content-Transfer-Encoding: 8bit\n"
16"Plural-Forms: \n"
17"Language: fr\n"
18"X-Generator: Poedit 1.6.6\n"
19
20#. module: board_frontdesk
21#: model:ir.ui.menu,name:board_frontdesk.menu_board_frontdesk
22msgid "Hotel FrontDesk Board"
23msgstr "Réception Hôtel"
24
25#. module: board_frontdesk
26#: constraint:ir.ui.view:0
27msgid "Invalid XML for View Architecture!"
28msgstr "XML invalide pour cette vue!"
29
30#. module: board_frontdesk
31#: model:ir.actions.act_window,name:board_frontdesk.open_board_frontdesk
32msgid "FrontDesk Dashboard"
33msgstr "Tableau de bord Accueil"
34
35#. module: board_frontdesk
36#: model:ir.module.module,description:board_frontdesk.module_meta_information
37msgid ""
38"\n"
39"This module implements a dashboard for hotel FrontDesk that includes:\n"
40" * Calendar view of Today's Check-In and Check-Out\n"
41" * Calendar view of Weekly Check-In and Check-Out\n"
42" * Calendar view of Monthly Check-In and Check-Out\n"
43" "
44msgstr ""
45"\n"
46"Ce module intègre un tableau de bord pour la Réception de l'hôtel composé "
47"de:\n"
48" * Un calendrier des Arrivés et Départs quotidiens\n"
49" * Un calendrier des Arrivés et Départs hebdomadaires\n"
50" * Un calendrier des Arrivés et Départs mensuels\n"
51" "
52
53#. module: board_frontdesk
54#: constraint:ir.actions.act_window:0
55msgid "Invalid model name in the action definition."
56msgstr "Nom du modèle incorrect dans \"action definition\""
57
58#. module: board_frontdesk
59#: model:ir.actions.act_window,name:board_frontdesk.action_view_frontdesk_cal
60msgid "FrontDesk"
61msgstr "Accueil"
62
63#. module: board_frontdesk
64#: view:board.board:0
65msgid "Reservation"
66msgstr "Réservation"
67
68#. module: board_frontdesk
69#: model:ir.module.module,shortdesc:board_frontdesk.module_meta_information
70msgid "Board for Hotel FrontDesk"
71msgstr "Tableau Réception"
72
73#. module: board_frontdesk
74#: view:board.board:0
75msgid "FrontDesk board"
76msgstr "Tableau Réception"
077
=== modified file 'board_frontdesk/i18n/fr_BE.po' (properties changed: +x to -x)
=== added directory 'hotel/Doc'
=== added file 'hotel/Doc/ChangeLog.txt'
--- hotel/Doc/ChangeLog.txt 1970-01-01 00:00:00 +0000
+++ hotel/Doc/ChangeLog.txt 2014-09-28 13:18:16 +0000
@@ -0,0 +1,23 @@
1============================================================================================================================
2 Version Change Log (hotel)
3============================================================================================================================
40.07 on 2014-04-04 by Dhwani
5 * Standardized the module as per v7 standards.
6
70.06 on 2014-01-11 by Krunal Soni
8 * Checked code quality and improved report format.
9
100.05 on 2014-01-07 by Krunal Soni
11 * Added Accurate licensing terms and Copyright(C) on top inside license info in each py file.
12
130.04 on 2013-11-19 by Sudhir Arya
14 * Fixed onchanage errors, bugs in generate folio and enhanced the code.
15
160.03 on 2013-11-18 by Sudhir Arya
17 * Added access rights to some objects.
18
190.02 on 2013-11-13 by Sudhir Arya
20 * Standardized the module as per v7 standards.
21
221.01 --> Oct 1,2013 : Anil Kesariya
23 * Added Access control for manager user Improved labels and Fixed the error.
0\ No newline at end of file24\ No newline at end of file
125
=== modified file 'hotel/__init__.py'
--- hotel/__init__.py 2012-05-22 14:06:57 +0000
+++ hotel/__init__.py 2014-09-28 13:18:16 +0000
@@ -1,25 +1,27 @@
1# -*- encoding: utf-8 -*-1# -*- coding: utf-8 -*-
2##############################################################################2##############################################################################
3# 3#
4# OpenERP, Open Source Management Solution4# OpenERP, Open Source Management Solution
5# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).5# Copyright (C) 2012-Today Serpent Consulting Services Pvt. Ltd. (<http://www.serpentcs.com>)
6# Copyright (C) 2004 OpenERP SA (<http://www.openerp.com>)
6#7#
7# This program is free software: you can redistribute it and/or modify8# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as9# it under the terms of the GNU General Public License as published by
9# published by the Free Software Foundation, either version 3 of the10# the Free Software Foundation, either version 3 of the License, or
10# License, or (at your option) any later version.11# (at your option) any later version.
11#12#
12# This program is distributed in the hope that it will be useful,13# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of14# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU Affero General Public License for more details.16# GNU General Public License for more details.
16#17#
17# You should have received a copy of the GNU Affero General Public License18# You should have received a copy of the GNU General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>. 19# along with this program. If not, see <http://www.gnu.org/licenses/>
19#20#
20##############################################################################21##############################################################################
21import hotel22
22import wizard23from . import hotel
23import report24from . import wizard
25from . import report
2426
25# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:27# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
2628
=== modified file 'hotel/__openerp__.py'
--- hotel/__openerp__.py 2012-11-24 23:33:44 +0000
+++ hotel/__openerp__.py 2014-09-28 13:18:16 +0000
@@ -1,28 +1,35 @@
1# -*- encoding: utf-8 -*-1# -*- coding: utf-8 -*-
2##############################################################################2##############################################################################
3# 3#
4# OpenERP, Open Source Management Solution4# OpenERP, Open Source Management Solution
5# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).5# Copyright (C) 2012-Today Serpent Consulting Services Pvt. Ltd. (<http://www.serpentcs.com>)
6# Copyright (C) 2004 OpenERP SA (<http://www.openerp.com>)
6#7#
7# This program is free software: you can redistribute it and/or modify8# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as9# it under the terms of the GNU General Public License as published by
9# published by the Free Software Foundation, either version 3 of the10# the Free Software Foundation, either version 3 of the License, or
10# License, or (at your option) any later version.11# (at your option) any later version.
11#12#
12# This program is distributed in the hope that it will be useful,13# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of14# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU Affero General Public License for more details.16# GNU General Public License for more details.
16#17#
17# You should have received a copy of the GNU Affero General Public License18# You should have received a copy of the GNU General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>. 19# along with this program. If not, see <http://www.gnu.org/licenses/>
19#20#
20##############################################################################21##############################################################################
2122
22{23{
24<<<<<<< TREE
23 "name" : "Hotel Management Base",25 "name" : "Hotel Management Base",
24 "version" : "1.0",26 "version" : "1.0",
25 "author" : "Tiny",27 "author" : "Tiny",
28=======
29 "name" : "Hotel Management",
30 "version" : "0.07",
31 "author": ["Serpent Consulting Services Pvt. Ltd.", "OpenERP SA" ],
32>>>>>>> MERGE-SOURCE
26 "category" : "Generic Modules/Hotel Management",33 "category" : "Generic Modules/Hotel Management",
27 "description": """34 "description": """
28Module for Hotel/Resort/Rooms/Property management. You can manage:35Module for Hotel/Resort/Rooms/Property management. You can manage:
@@ -35,6 +42,7 @@
3542
36Different reports are also provided, mainly for hotel statistics.43Different reports are also provided, mainly for hotel statistics.
37 """,44 """,
45<<<<<<< TREE
38 "depends" : ["sale"],46 "depends" : ["sale"],
39 "init_xml" : [],47 "init_xml" : [],
40 "demo_xml" : [48 "demo_xml" : [
@@ -52,6 +60,26 @@
52 "active": False,60 "active": False,
53 "installable": True,61 "installable": True,
54 'application': True,62 'application': True,
63=======
64 "website": ["http://www.serpentcs.com", "http://www.openerp.com"],
65 "depends" : ["sale_stock"],
66 "demo" : [
67 ],
68 "data": [
69 "security/hotel_security.xml",
70 "security/ir.model.access.csv",
71 "hotel_sequence.xml",
72 "hotel_folio_workflow.xml",
73# "hotel_scheduler.xml",
74 "report/hotel_report.xml",
75 "hotel_view.xml",
76 "hotel_data.xml",
77 "wizard/hotel_wizard.xml",
78 ],
79 'css': ["static/src/css/room_kanban.css"],
80 "auto_install": False,
81 "installable": True
82>>>>>>> MERGE-SOURCE
55}83}
5684
57# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:85# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
5886
=== modified file 'hotel/data/hotel-color.png' (properties changed: -x to +x)
=== modified file 'hotel/data/hotel-grey.png' (properties changed: -x to +x)
=== modified file 'hotel/hotel.py'
--- hotel/hotel.py 2012-05-25 11:25:10 +0000
+++ hotel/hotel.py 2014-09-28 13:18:16 +0000
@@ -1,172 +1,164 @@
1# -*- encoding: utf-8 -*-1# -*- coding: utf-8 -*-
2##############################################################################2##############################################################################
3# 3#
4# OpenERP, Open Source Management Solution4# OpenERP, Open Source Management Solution
5# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).5# Copyright (C) 2012-Today Serpent Consulting Services Pvt. Ltd. (<http://www.serpentcs.com>)
6# Copyright (C) 2004 OpenERP SA (<http://www.openerp.com>)
6#7#
7# This program is free software: you can redistribute it and/or modify8# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as9# it under the terms of the GNU General Public License as published by
9# published by the Free Software Foundation, either version 3 of the10# the Free Software Foundation, either version 3 of the License, or
10# License, or (at your option) any later version.11# (at your option) any later version.
11#12#
12# This program is distributed in the hope that it will be useful,13# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of14# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU Affero General Public License for more details.16# GNU General Public License for more details.
16#17#
17# You should have received a copy of the GNU Affero General Public License18# You should have received a copy of the GNU General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>. 19# along with this program. If not, see <http://www.gnu.org/licenses/>
19#20#
20##############################################################################21##############################################################################
21from osv import fields, osv22
23from openerp.osv import fields, osv
22import time24import time
23import netsvc25from openerp import netsvc
24#import ir
25from mx import DateTime
26import datetime26import datetime
27from tools import config27from openerp.tools.translate import _
28from openerp.tools import DEFAULT_SERVER_DATETIME_FORMAT
2829
29class hotel_floor(osv.osv):30class hotel_floor(osv.Model):
30 _name = "hotel.floor"31 _name = "hotel.floor"
31 _description = "Floor"32 _description = "Floor"
32 _columns = { 33 _columns = {
33 'name': fields.char('Floor Name', size=64, required=True, select=True),34 'name': fields.char('Floor Name', size=64, required=True, select=True),
34 'sequence' : fields.integer('Sequence', size=64),35 'sequence': fields.integer('Sequence', size=64),
35 } 36 }
36hotel_floor()
3737
38class product_category(osv.osv):38class product_category(osv.Model):
39 _inherit = "product.category"39 _inherit = "product.category"
40 _columns = {40 _columns = {
41 'isroomtype':fields.boolean('Is Room Type'),41 'isroomtype': fields.boolean('Is Room Type'),
42 'isamenitype':fields.boolean('Is amenities Type'),42 'isamenitype': fields.boolean('Is amenities Type'),
43 'isservicetype':fields.boolean('Is Service Type'),43 'isservicetype': fields.boolean('Is Service Type'),
44 }44 }
45product_category()
4645
47class hotel_room_type(osv.osv):46class hotel_room_type(osv.Model):
48 _name = "hotel.room_type"47 _name = "hotel.room.type"
49 _inherits = {'product.category':'cat_id'}48 _inherits = {'product.category': 'cat_id'}
50 _description = "Room Type"49 _description = "Room Type"
51 _columns = { 50 _columns = {
52 'cat_id':fields.many2one('product.category', 'category', required=True, select=True, ondelete='cascade'),51 'cat_id': fields.many2one('product.category', 'category', required=True, select=True, ondelete='cascade'),
53
54 }52 }
55 _defaults = {53 _defaults = {
56 'isroomtype': lambda * a: 1,54 'isroomtype': 1,
57 } 55 }
58hotel_room_type()56
5957class product_product(osv.Model):
60
61class product_product(osv.osv):
62 _inherit = "product.product"58 _inherit = "product.product"
63 _columns = {59 _columns = {
64 'isroom':fields.boolean('Is Room'),60 'isroom': fields.boolean('Is Room'),
65 'iscategid':fields.boolean('Is categ id'),61 'iscategid': fields.boolean('Is categ id'),
66 'isservice':fields.boolean('Is Service id'),62 'isservice': fields.boolean('Is Service id'),
67
68 }63 }
69product_product()
7064
71class hotel_room_amenities_type(osv.osv):65class hotel_room_amenities_type(osv.Model):
72 _name = 'hotel.room_amenities_type'66 _name = 'hotel.room.amenities.type'
73 _description = 'amenities Type'67 _description = 'amenities Type'
74 _inherits = {'product.category':'cat_id'}68 _inherits = {'product.category':'cat_id'}
75 _columns = {69 _columns = {
76 'cat_id':fields.many2one('product.category', 'category', required=True, ondelete='cascade'),70 'cat_id': fields.many2one('product.category', 'category', required=True, ondelete='cascade'),
77 }71 }
78 _defaults = {72 _defaults = {
79 'isamenitype': lambda * a: 1,73 'isamenitype': 1,
80
81 }74 }
8275
83hotel_room_amenities_type()76class hotel_room_amenities(osv.Model):
8477 _name = 'hotel.room.amenities'
85class hotel_room_amenities(osv.osv):
86 _name = 'hotel.room_amenities'
87 _description = 'Room amenities'78 _description = 'Room amenities'
88 _inherits = {'product.product':'room_categ_id'}79 _inherits = {'product.product':'room_categ_id'}
89 _columns = {80 _columns = {
90 'room_categ_id':fields.many2one('product.product', 'Product Category', required=True, ondelete='cascade'),81 'room_categ_id': fields.many2one('product.product', 'Product Category', required=True, ondelete='cascade'),
91 'rcateg_id':fields.many2one('hotel.room_amenities_type', 'Amenity Catagory'),82 'rcateg_id': fields.many2one('hotel.room.amenities.type', 'Amenity Catagory'),
92 'amenity_rate':fields.integer('Amenity Rate'),83 }
93 }
94 _defaults = {84 _defaults = {
95 'iscategid': lambda * a: 1,85 'iscategid': 1,
96 }86 }
97
98hotel_room_amenities()
9987
100class hotel_room(osv.osv):88class hotel_room(osv.Model):
101
102 _name = 'hotel.room'89 _name = 'hotel.room'
103 _inherits = {'product.product':'product_id'}90 _inherits = {'product.product': 'product_id'}
104 _description = 'Hotel Room'91 _description = 'Hotel Room'
105 _columns = {92 _columns = {
106
107 'product_id': fields.many2one('product.product', 'Product_id', required=True, ondelete='cascade'),93 'product_id': fields.many2one('product.product', 'Product_id', required=True, ondelete='cascade'),
108 'floor_id':fields.many2one('hotel.floor', 'Floor No'),94 'floor_id': fields.many2one('hotel.floor', 'Floor No', help='At which floor the room is located.'),
109 'max_adult':fields.integer('Max Adult'),95 'max_adult': fields.integer('Max Adult'),
110 'max_child':fields.integer('Max Child'),96 'max_child': fields.integer('Max Child'),
111 'avail_status':fields.selection([('assigned', 'Assigned'), (' unassigned', 'Unassigned')], 'Room Status'),97 'room_amenities': fields.many2many('hotel.room.amenities', 'temp_tab', 'room_amenities', 'rcateg_id', 'Room Amenities', help='List of room amenities. '),
112 'room_amenities':fields.many2many('hotel.room_amenities', 'temp_tab', 'room_amenities', 'rcateg_id', 'Room Amenities'),98 'status': fields.selection([('available', 'Available'), ('occupied', 'Occupied')], 'Status'),
113 }99# 'room_reservation_line_ids': fields.one2many('hotel.room.reservation.line','room_id','Room Reservation Line'),
100 'room_rent_ids': fields.one2many('room.rent', 'rent_id', 'Room Rent'),
101 }
114 _defaults = {102 _defaults = {
115 'isroom': lambda * a: 1,103 'isroom': 1,
116 'rental': lambda * a: 1,104 'rental': 1,
117 }105 'status': 'available',
118106 }
119hotel_room()107
120108 def set_room_status_occupied(self, cr, uid, ids, context=None):
121class hotel_folio(osv.osv):109 return self.write(cr, uid, ids, {'status': 'occupied'}, context=context)
122 110
123 def _incoterm_get(self, cr, uid, context={}):111 def set_room_status_available(self, cr, uid, ids, context=None):
124 return self.pool.get('sale.order')._incoterm_get(cr, uid, context={})112 return self.write(cr, uid, ids, {'status': 'available'}, context=context)
125 113
126 def copy(self, cr, uid, id, default=None, context={}):114class room_rent(osv.Model):
127 return self.pool.get('sale.order').copy(cr, uid, id, default=None, context={})115 _name = 'room.rent'
128 116 _columns = {
117 'rent_id': fields.many2one('hotel.room', 'Room Rent'),
118 'price': fields.float('Price (Per night)'),
119 'mon': fields.boolean('Monday'),
120 'tue': fields.boolean('Tuesday'),
121 'wed': fields.boolean('Wednesday'),
122 'thu': fields.boolean('Thursday'),
123 'fri': fields.boolean('Friday'),
124 'sat': fields.boolean('Saturday'),
125 'sun': fields.boolean('Sunday'),
126 }
127
128class hotel_folio(osv.Model):
129
130 def copy(self, cr, uid, id, default=None, context=None):
131 return self.pool.get('sale.order').copy(cr, uid, id, default=None, context=None)
132
129 def _invoiced(self, cursor, user, ids, name, arg, context=None):133 def _invoiced(self, cursor, user, ids, name, arg, context=None):
130 return self.pool.get('sale.order')._invoiced(cursor, user, ids, name, arg, context=None)134 return self.pool.get('sale.order')._invoiced(cursor, user, ids, name, arg, context=None)
131135
132 def _invoiced_search(self, cursor, user, obj, name, args):136 def _invoiced_search(self, cursor, user, obj, name, args):
133 return self.pool.get('sale.order')._invoiced_search(cursor, user, obj, name, args)137 return self.pool.get('sale.order')._invoiced_search(cursor, user, obj, name, args)
134 138
135 def _amount_untaxed(self, cr, uid, ids, field_name, arg, context):
136 return self.pool.get('sale.order')._amount_untaxed(cr, uid, ids, field_name, arg, context)
137
138 def _amount_tax(self, cr, uid, ids, field_name, arg, context):
139 return self.pool.get('sale.order')._amount_tax(cr, uid, ids, field_name, arg, context)
140
141 def _amount_total(self, cr, uid, ids, field_name, arg, context):
142 return self.pool.get('sale.order')._amount_total(cr, uid, ids, field_name, arg, context)
143
144 _name = 'hotel.folio'139 _name = 'hotel.folio'
145
146 _description = 'hotel folio new'140 _description = 'hotel folio new'
147 141 _inherits = {'sale.order': 'order_id'}
148 _inherits = {'sale.order':'order_id'}
149
150 _rec_name = 'order_id'142 _rec_name = 'order_id'
151 143 _order = 'id desc'
152 _columns = {144 _columns = {
153 'order_id':fields.many2one('sale.order', 'order_id', required=True, ondelete='cascade'),145 'name': fields.char('Folio Number', size=24, readonly=True),
154 'checkin_date': fields.datetime('Check In', required=True, readonly=True, states={'draft':[('readonly', False)]}),146 'order_id': fields.many2one('sale.order', 'Order', required=True, ondelete='cascade'),
155 'checkout_date': fields.datetime('Check Out', required=True, readonly=True, states={'draft':[('readonly', False)]}),147 'checkin_date': fields.datetime('Check In', required=True, readonly=True, states={'draft':[('readonly', False)]}),
156 'room_lines': fields.one2many('hotel_folio.line', 'folio_id'),148 'checkout_date': fields.datetime('Check Out', required=True, readonly=True, states={'draft':[('readonly', False)]}),
157 'service_lines': fields.one2many('hotel_service.line', 'folio_id'),149 'room_lines': fields.one2many('hotel.folio.line', 'folio_id', readonly=True, states={'draft': [('readonly', False)], 'sent': [('readonly', False)]}, help="Hotel room reservation detail."),
158 'hotel_policy':fields.selection([('prepaid', 'On Booking'), ('manual', 'On Check In'), ('picking', 'On Checkout')], 'Hotel Policy', required=True),150 'service_lines': fields.one2many('hotel.service.line', 'folio_id', readonly=True, states={'draft': [('readonly', False)], 'sent': [('readonly', False)]}, help="Hotel services detail provide to customer and it will include in main Invoice."),
159 'duration':fields.float('Duration'),151 'hotel_policy': fields.selection([('prepaid', 'On Booking'), ('manual', 'On Check In'), ('picking', 'On Checkout')], 'Hotel Policy', help="Hotel policy for payment that either the guest has to payment at booking time or check-in check-out time."),
152 'duration': fields.float('Duration in Days', readonly=True, help="Number of days which will automatically count from the check-in and check-out date. "),
160 }153 }
161
162 _defaults = {154 _defaults = {
163 'hotel_policy':'manual'155 'name': lambda obj, cr, uid, context: obj.pool.get('ir.sequence').get(cr, uid, 'hotel.folio'),
164 }156 'hotel_policy': 'manual'
165 157 }
166 _sql_constraints = [158 _sql_constraints = [
167 ('check_in_out', 'CHECK (checkin_date<=checkout_date)', 'Check in Date Should be less than the Check Out Date!'),159 ('check_in_out', 'CHECK (checkin_date<=checkout_date)', 'Check in Date Should be less than the Check Out Date!'),
168 ]160 ]
169 161
170 def _check_room_vacant(self, cr, uid, ids, context=None):162 def _check_room_vacant(self, cr, uid, ids, context=None):
171 folio = self.browse(cr, uid, ids[0], context=context)163 folio = self.browse(cr, uid, ids[0], context=context)
172 rooms = [] 164 rooms = []
@@ -175,13 +167,22 @@
175 return False167 return False
176 rooms.append(room.product_id)168 rooms.append(room.product_id)
177 return True169 return True
178 170
179 _constraints = [171 _constraints = [
180 (_check_room_vacant, 'You can not allocate the same room twice!', ['room_lines'])172 (_check_room_vacant, 'You cannot allocate the same room twice!', ['room_lines'])
181 ]173 ]
182 174
183 def onchange_dates(self, cr, uid, ids, checkin_date=False, checkout_date=False, duration=False):175 def onchange_dates(self, cr, uid, ids, checkin_date=False, checkout_date=False, duration=False):
176 # This mathod gives the duration between check in checkout if customer will leave only for some hour it would be considers as
177 # a whole day. If customer will checkin checkout for more or equal hours , which configured in company as additional hours than
178 # it would be consider as full day
184 value = {}179 value = {}
180 company_obj = self.pool.get('res.company')
181 configured_addition_hours = 0
182 company_ids = company_obj.search(cr, uid, [])
183 if company_ids:
184 company = company_obj.browse(cr, uid, company_ids[0])
185 configured_addition_hours = company.additional_hours
185 if not duration:186 if not duration:
186 duration = 0187 duration = 0
187 if checkin_date and checkout_date:188 if checkin_date and checkout_date:
@@ -189,6 +190,10 @@
189 chkout_dt = datetime.datetime.strptime(checkout_date, '%Y-%m-%d %H:%M:%S') 190 chkout_dt = datetime.datetime.strptime(checkout_date, '%Y-%m-%d %H:%M:%S')
190 dur = chkout_dt - chkin_dt191 dur = chkout_dt - chkin_dt
191 duration = dur.days192 duration = dur.days
193 if configured_addition_hours > 0:
194 additional_hours = abs((dur.seconds / 60) / 60)
195 if additional_hours >= configured_addition_hours:
196 duration += 1
192 value.update({'value':{'duration':duration}})197 value.update({'value':{'duration':duration}})
193 else:198 else:
194 if checkin_date:199 if checkin_date:
@@ -197,76 +202,77 @@
197 checkout_date = datetime.datetime.strftime(chkout_dt, '%Y-%m-%d %H:%M:%S')202 checkout_date = datetime.datetime.strftime(chkout_dt, '%Y-%m-%d %H:%M:%S')
198 value.update({'value':{'checkout_date':checkout_date}})203 value.update({'value':{'checkout_date':checkout_date}})
199 return value204 return value
200 205
201 def create(self, cr, uid, vals, context=None, check=True):206 def create(self, cr, uid, vals, context=None, check=True):
202 tmp_room_lines = vals.get('room_lines', [])207 tmp_room_lines = vals.get('room_lines', [])
203 tmp_service_lines = vals.get('service_lines', [])
204 vals['order_policy'] = vals.get('hotel_policy', 'manual')208 vals['order_policy'] = vals.get('hotel_policy', 'manual')
205 if not vals.has_key("folio_id"):209 if not 'service_lines' and 'folio_id' in vals:
206 vals.update({'room_lines':[], 'service_lines':[]})210# if not 'folio_id' in vals:
207 folio_id = super(hotel_folio, self).create(cr, uid, vals, context)211 vals.update({'room_lines':[]})
208 for line in tmp_room_lines:212 folio_id = super(hotel_folio, self).create(cr, uid, vals, context=context)
209 line[2].update({'folio_id':folio_id})213 for line in (tmp_room_lines):
210 for line in tmp_service_lines:214 line[2].update({'folio_id':folio_id})
211 line[2].update({'folio_id':folio_id})215 vals.update({'room_lines':tmp_room_lines})
212 vals.update({'room_lines':tmp_room_lines, 'service_lines':tmp_service_lines})216 super(hotel_folio, self).write(cr, uid, [folio_id], vals, context=context)
213 super(hotel_folio, self).write(cr, uid, [folio_id], vals, context)
214 else:217 else:
215 folio_id = super(hotel_folio, self).create(cr, uid, vals, context)218 folio_id = super(hotel_folio, self).create(cr, uid, vals, context=context)
216 return folio_id219 return folio_id
217 220
218
219 def onchange_shop_id(self, cr, uid, ids, shop_id):221 def onchange_shop_id(self, cr, uid, ids, shop_id):
220 return self.pool.get('sale.order').onchange_shop_id(cr, uid, ids, shop_id)222 order_ids = [folio.order_id.id for folio in self.browse(cr, uid, ids)]
221 223 return self.pool.get('sale.order').onchange_shop_id(cr, uid, order_ids, shop_id)
222 def onchange_partner_id(self, cr, uid, ids, part):224
223 return self.pool.get('sale.order').onchange_partner_id(cr, uid, ids, part)225 def onchange_partner_id(self, cr, uid, ids, part, context=None):
224 226 order_ids = [folio.order_id.id for folio in self.browse(cr, uid, ids, context=context)]
225 def button_dummy(self, cr, uid, ids, context={}):227 return self.pool.get('sale.order').onchange_partner_id(cr, uid, order_ids, part, context=None)
226 return self.pool.get('sale.order').button_dummy(cr, uid, ids, context={})228
227 229 def button_dummy(self, cr, uid, ids, context=None):
230 order_ids = [folio.order_id.id for folio in self.browse(cr, uid, ids)]
231 return self.pool.get('sale.order').button_dummy(cr, uid, order_ids, context={})
232
228 def action_invoice_create(self, cr, uid, ids, grouped=False, states=['confirmed', 'done']):233 def action_invoice_create(self, cr, uid, ids, grouped=False, states=['confirmed', 'done']):
229 i = self.pool.get('sale.order').action_invoice_create(cr, uid, ids, grouped=False, states=['confirmed', 'done'])234 order_ids = [folio.order_id.id for folio in self.browse(cr, uid, ids)]
230 for line in self.browse(cr, uid, ids, context={}):235 invoice_id = self.pool.get('sale.order').action_invoice_create(cr, uid, order_ids, grouped=False, states=['confirmed', 'done'])
231 self.write(cr, uid, [line.id], {'invoiced':True})236 for line in self.browse(cr, uid, ids):
232 if grouped:237 values = {
233 self.write(cr, uid, [line.id], {'state' : 'progress'})238 'invoiced': True,
234 else:239 'state': 'progress' if grouped else 'progress',
235 self.write(cr, uid, [line.id], {'state' : 'progress'})240 }
236 return i 241 line.write(values)
242 return invoice_id
237243
238 244 def action_invoice_cancel(self, cr, uid, ids, context=None):
239 def action_invoice_cancel(self, cr, uid, ids, context={}):245 order_ids = [folio.order_id.id for folio in self.browse(cr, uid, ids)]
240 res = self.pool.get('sale.order').action_invoice_cancel(cr, uid, ids, context={})246 res = self.pool.get('sale.order').action_invoice_cancel(cr, uid, order_ids, context=context)
241 for sale in self.browse(cr, uid, ids):247 for sale in self.browse(cr, uid, ids, context=context):
242 for line in sale.order_line:248 for line in sale.order_line:
243 self.pool.get('sale.order.line').write(cr, uid, [line.id], {'invoiced': invoiced})249 line.write({'invoiced': 'invoiced'})
244 self.write(cr, uid, ids, {'state':'invoice_except', 'invoice_id':False})250 self.write(cr, uid, ids, {'state':'invoice_except'}, context=context)
245 return res 251 return res
246 def action_cancel(self, cr, uid, ids, context={}):252
247 c = self.pool.get('sale.order').action_cancel(cr, uid, ids, context={})253 def action_cancel(self, cr, uid, ids, context=None):
248 ok = True254 order_ids = [folio.order_id.id for folio in self.browse(cr, uid, ids, context=context)]
249 for sale in self.browse(cr, uid, ids):255 rv = self.pool.get('sale.order').action_cancel(cr, uid, order_ids, context=context)
250 for r in self.read(cr, uid, ids, ['picking_ids']):256 wf_service = netsvc.LocalService("workflow")
251 for pick in r['picking_ids']:257 for sale in self.browse(cr, uid, ids, context=context):
252 wf_service = netsvc.LocalService("workflow")258 for pick in sale.picking_ids:
253 wf_service.trg_validate(uid, 'stock.picking', pick, 'button_cancel', cr)259 wf_service.trg_validate(uid, 'stock.picking', pick.id, 'button_cancel', cr)
254 for r in self.read(cr, uid, ids, ['invoice_ids']):260 for invoice in sale.invoice_ids:
255 for inv in r['invoice_ids']:261 wf_service.trg_validate(uid, 'account.invoice', invoice.id, 'invoice_cancel', cr)
256 wf_service = netsvc.LocalService("workflow")262 sale.write({'state':'cancel'})
257 wf_service.trg_validate(uid, 'account.invoice', inv, 'invoice_cancel', cr)263 return rv
258 264
259 self.write(cr, uid, ids, {'state':'cancel'})
260 return c
261
262 def action_wait(self, cr, uid, ids, *args):265 def action_wait(self, cr, uid, ids, *args):
263 res = self.pool.get('sale.order').action_wait(cr, uid, ids, *args)266 sale_order_obj = self.pool.get('sale.order')
264 for o in self.browse(cr, uid, ids):267 res = False
265 if (o.order_policy == 'manual') and (not o.invoice_ids):268 for o in self.browse(cr, uid, ids):
266 self.write(cr, uid, [o.id], {'state': 'manual'})269 res = sale_order_obj.action_wait(cr, uid, [o.order_id.id], *args)
267 else:270 if (o.order_policy == 'manual') and (not o.invoice_ids):
268 self.write(cr, uid, [o.id], {'state': 'progress'})271 self.write(cr, uid, [o.id], {'state': 'manual'})
269 return res272 else:
273 self.write(cr, uid, [o.id], {'state': 'progress'})
274 return res
275
270 def test_state(self, cr, uid, ids, mode, *args):276 def test_state(self, cr, uid, ids, mode, *args):
271 write_done_ids = []277 write_done_ids = []
272 write_cancel_ids = []278 write_cancel_ids = []
@@ -275,221 +281,248 @@
275 self.pool.get('sale.order.line').write(cr, uid, write_done_ids, {'state': 'done'})281 self.pool.get('sale.order.line').write(cr, uid, write_done_ids, {'state': 'done'})
276 if write_cancel_ids:282 if write_cancel_ids:
277 self.pool.get('sale.order.line').write(cr, uid, write_cancel_ids, {'state': 'cancel'})283 self.pool.get('sale.order.line').write(cr, uid, write_cancel_ids, {'state': 'cancel'})
278 return res 284 return res
285
279 def procurement_lines_get(self, cr, uid, ids, *args):286 def procurement_lines_get(self, cr, uid, ids, *args):
280 res = self.pool.get('sale.order').procurement_lines_get(cr, uid, ids, *args)287 order_ids = [folio.order_id.id for folio in self.browse(cr, uid, ids)]
281 return res288 return self.pool.get('sale.order').procurement_lines_get(cr, uid, order_ids, *args)
282 def action_ship_create(self, cr, uid, ids, *args):289
283 res = self.pool.get('sale.order').action_ship_create(cr, uid, ids, *args)290 def action_ship_create(self, cr, uid, ids, context=None):
291 order_ids = [folio.order_id.id for folio in self.browse(cr, uid, ids)]
292 return self.pool.get('sale.order').action_ship_create(cr, uid, order_ids, context=None)
293
294 def action_ship_end(self, cr, uid, ids, context=None):
295 order_ids = [folio.order_id.id for folio in self.browse(cr, uid, ids)]
296 res = self.pool.get('sale.order').action_ship_end(cr, uid, order_ids, context=context)
297 for order in self.browse(cr, uid, ids, context=context):
298 order.write ({'shipped':True})
284 return res299 return res
285 def action_ship_end(self, cr, uid, ids, context={}):300
286 res = self.pool.get('sale.order').action_ship_end(cr, uid, ids, context={})
287 for order in self.browse(cr, uid, ids):
288 val = {'shipped':True}
289 self.write(cr, uid, [order.id], val)
290 return res
291 def _log_event(self, cr, uid, ids, factor=0.7, name='Open Order'):
292 return self.pool.get('sale.order')._log_event(cr, uid, ids, factor=0.7, name='Open Order')
293 def has_stockable_products(self, cr, uid, ids, *args):301 def has_stockable_products(self, cr, uid, ids, *args):
294 return self.pool.get('sale.order').has_stockable_products(cr, uid, ids, *args)302 order_ids = [folio.order_id.id for folio in self.browse(cr, uid, ids)]
303 return self.pool.get('sale.order').has_stockable_products(cr, uid, order_ids, *args)
304
295 def action_cancel_draft(self, cr, uid, ids, *args):305 def action_cancel_draft(self, cr, uid, ids, *args):
296 d = self.pool.get('sale.order').action_cancel_draft(cr, uid, ids, *args)306 if not len(ids):
297 self.write(cr, uid, ids, {'state':'draft', 'invoice_ids':[], 'shipped':0})307 return False
298 self.pool.get('sale.order.line').write(cr, uid, ids, {'invoiced':False, 'state':'draft', 'invoice_lines':[(6, 0, [])]})308 cr.execute('select id from sale_order_line where order_id IN %s and state=%s', (tuple(ids), 'cancel'))
299 return d309 line_ids = map(lambda x: x[0], cr.fetchall())
300 310 self.write(cr, uid, ids, {'state': 'draft', 'invoice_ids': [], 'shipped': 0})
301hotel_folio()311 self.pool.get('sale.order.line').write(cr, uid, line_ids, {'invoiced': False, 'state': 'draft', 'invoice_lines': [(6, 0, [])]})
302312 wf_service = netsvc.LocalService("workflow")
303class hotel_folio_line(osv.osv):313 for inv_id in ids:
304 314 # Deleting the existing instance of workflow for SO
305 def copy(self, cr, uid, id, default=None, context={}):315 wf_service.trg_delete(uid, 'sale.order', inv_id, cr)
306 return self.pool.get('sale.order.line').copy(cr, uid, id, default=None, context={})316 wf_service.trg_create(uid, 'sale.order', inv_id, cr)
307 def _amount_line_net(self, cr, uid, ids, field_name, arg, context):317 for (id, name) in self.name_get(cr, uid, ids):
308 return self.pool.get('sale.order.line')._amount_line_net(cr, uid, ids, field_name, arg, context)318 message = _("The sales order '%s' has been set in draft state.") % (name,)
319 self.log(cr, uid, id, message)
320 return True
321
322class hotel_folio_line(osv.Model):
323
324 def copy(self, cr, uid, id, default=None, context=None):
325 return self.pool.get('sale.order.line').copy(cr, uid, id, default=None, context=context)
326
309 def _amount_line(self, cr, uid, ids, field_name, arg, context):327 def _amount_line(self, cr, uid, ids, field_name, arg, context):
310 return self.pool.get('sale.order.line')._amount_line(cr, uid, ids, field_name, arg, context)328 return self.pool.get('sale.order.line')._amount_line(cr, uid, ids, field_name, arg, context)
329
311 def _number_packages(self, cr, uid, ids, field_name, arg, context):330 def _number_packages(self, cr, uid, ids, field_name, arg, context):
312 return self.pool.get('sale.order.line')._number_packages(cr, uid, ids, field_name, arg, context)331 return self.pool.get('sale.order.line')._number_packages(cr, uid, ids, field_name, arg, context)
313 def _get_1st_packaging(self, cr, uid, context={}):332
314 return self.pool.get('sale.order.line')._get_1st_packaging(cr, uid, context={})333 def _get_checkin_date(self, cr, uid, context=None):
315 def _get_checkin_date(self, cr, uid, context={}):
316 if 'checkin_date' in context:334 if 'checkin_date' in context:
317 return context['checkin_date']335 return context['checkin_date']
318 return time.strftime('%Y-%m-%d %H:%M:%S')336 return time.strftime('%Y-%m-%d %H:%M:%S')
319 def _get_checkout_date(self, cr, uid, context={}):337
338 def _get_checkout_date(self, cr, uid, context=None):
320 if 'checkin_date' in context:339 if 'checkin_date' in context:
321 return context['checkout_date']340 return context['checkout_date']
322 return time.strftime('%Y-%m-%d %H:%M:%S')341 return time.strftime('%Y-%m-%d %H:%M:%S')
323 342
324 _name = 'hotel_folio.line'343 _name = 'hotel.folio.line'
325 _description = 'hotel folio1 room line'344 _description = 'hotel folio room line'
326 _inherits = {'sale.order.line':'order_line_id'}345 _inherits = {'sale.order.line':'order_line_id'}
327 _columns = {346 _columns = {
328 'order_line_id':fields.many2one('sale.order.line', 'order_line_id', required=True, ondelete='cascade'),347 'order_line_id': fields.many2one('sale.order.line', 'Order Line', required=True, ondelete='cascade'),
329 'folio_id':fields.many2one('hotel.folio', 'folio_id', ondelete='cascade'),348 'folio_id': fields.many2one('hotel.folio', 'Folio', ondelete='cascade'),
330 'checkin_date': fields.datetime('Check In', required=True),349 'checkin_date': fields.datetime('Check In', required=True),
331 'checkout_date': fields.datetime('Check Out', required=True),350 'checkout_date': fields.datetime('Check Out', required=True),
332 }351 }
333 _defaults = {352 _defaults = {
334 'checkin_date':_get_checkin_date,353 'checkin_date':_get_checkin_date,
335 'checkout_date':_get_checkout_date,354 'checkout_date':_get_checkout_date,
336
337 }355 }
338 356
339 def create(self, cr, uid, vals, context=None, check=True):357 def create(self, cr, uid, vals, context=None, check=True):
340 if not context:358 if 'folio_id' in vals:
341 context = {}359 folio = self.pool.get("hotel.folio").browse(cr, uid, vals['folio_id'], context=context)
342 if vals.has_key("folio_id"):
343 folio = self.pool.get("hotel.folio").browse(cr, uid, [vals['folio_id']])[0]
344 vals.update({'order_id':folio.order_id.id})360 vals.update({'order_id':folio.order_id.id})
345 roomline = super(osv.osv, self).create(cr, uid, vals, context)361 return super(osv.Model, self).create(cr, uid, vals, context)
346 return roomline362
347 363 def unlink(self, cr, uid, ids, context=None):
364 sale_line_obj = self.pool.get('sale.order.line')
365 for line in self.browse(cr, uid, ids, context=context):
366 if line.order_line_id:
367 sale_line_obj.unlink(cr, uid, [line.order_line_id.id], context=context)
368 return super(hotel_folio_line, self).unlink(cr, uid, ids, context=None)
369
348 def uos_change(self, cr, uid, ids, product_uos, product_uos_qty=0, product_id=None):370 def uos_change(self, cr, uid, ids, product_uos, product_uos_qty=0, product_id=None):
349 return self.pool.get('sale.order.line').uos_change(cr, uid, ids, product_uos, product_uos_qty=0, product_id=None)371 line_ids = [folio.order_line_id.id for folio in self.browse(cr, uid, ids)]
350 372 return self.pool.get('sale.order.line').uos_change(cr, uid, line_ids, product_uos, product_uos_qty=0, product_id=None)
373
351 def product_id_change(self, cr, uid, ids, pricelist, product, qty=0,374 def product_id_change(self, cr, uid, ids, pricelist, product, qty=0,
352 uom=False, qty_uos=0, uos=False, name='', partner_id=False,375 uom=False, qty_uos=0, uos=False, name='', partner_id=False,
353 lang=False, update_tax=True, date_order=False):376 lang=False, update_tax=True, date_order=False):
354 return self.pool.get('sale.order.line').product_id_change(cr, uid, ids, pricelist, product, qty=0,377 line_ids = [folio.order_line_id.id for folio in self.browse(cr, uid, ids)]
378 return self.pool.get('sale.order.line').product_id_change(cr, uid, line_ids, pricelist, product, qty=0,
355 uom=False, qty_uos=0, uos=False, name='', partner_id=partner_id,379 uom=False, qty_uos=0, uos=False, name='', partner_id=partner_id,
356 lang=False, update_tax=True, date_order=False)380 lang=False, update_tax=True, date_order=False)
357 381
358 def product_uom_change(self, cursor, user, ids, pricelist, product, qty=0,382 def product_uom_change(self, cursor, user, ids, pricelist, product, qty=0,
359 uom=False, qty_uos=0, uos=False, name='', partner_id=False,383 uom=False, qty_uos=0, uos=False, name='', partner_id=False,
360 lang=False, update_tax=True, date_order=False):384 lang=False, update_tax=True, date_order=False):
361 return self.pool.get('sale.order.line').product_uom_change(cursor, user, ids, pricelist, product, qty=0,385 return self.product_id_change(cursor, user, ids, pricelist, product, qty=0,
362 uom=False, qty_uos=0, uos=False, name='', partner_id=partner_id,386 uom=False, qty_uos=0, uos=False, name='', partner_id=partner_id,
363 lang=False, update_tax=True, date_order=False)387 lang=False, update_tax=True, date_order=False)
364 388
365 def on_change_checkout(self, cr, uid, ids, checkin_date=time.strftime('%Y-%m-%d %H:%M:%S'), checkout_date=time.strftime('%Y-%m-%d %H:%M:%S'), context=None):389 def on_change_checkout(self, cr, uid, ids, checkin_date=None, checkout_date=None, context=None):
390 if not checkin_date:
391 checkin_date = time.strftime('%Y-%m-%d %H:%M:%S')
392 if not checkout_date:
393 checkout_date = time.strftime('%Y-%m-%d %H:%M:%S')
366 qty = 1394 qty = 1
367 if checkout_date < checkin_date:395 if checkout_date < checkin_date:
368 raise osv.except_osv ('Error !', 'Checkout must be greater or equal checkin date')396 raise osv.except_osv(_('Error !'), _('Checkout must be greater or equal checkin date'))
369 if checkin_date:397 if checkin_date:
370 diffDate = datetime.datetime(*time.strptime(checkout_date, '%Y-%m-%d %H:%M:%S')[:5]) - datetime.datetime(*time.strptime(checkin_date, '%Y-%m-%d %H:%M:%S')[:5])398 diffDate = datetime.datetime(*time.strptime(checkout_date, '%Y-%m-%d %H:%M:%S')[:5]) - datetime.datetime(*time.strptime(checkin_date, '%Y-%m-%d %H:%M:%S')[:5])
371 qty = diffDate.days399 qty = diffDate.days
372 if qty == 0:400 if qty == 0:
373 qty = 1401 qty = 1
374 return {'value':{'product_uom_qty':qty}}402 return {'value':{'product_uom_qty':qty}}
375 403
376 def button_confirm(self, cr, uid, ids, context={}):404 def button_confirm(self, cr, uid, ids, context=None):
377 405 line_ids = [folio.order_line_id.id for folio in self.browse(cr, uid, ids)]
378 return self.pool.get('sale.order.line').button_confirm(cr, uid, ids, context={})406 return self.pool.get('sale.order.line').button_confirm(cr, uid, line_ids, context=context)
379 def button_done(self, cr, uid, ids, context={}):407
380 res = self.pool.get('sale.order.line').button_done(cr, uid, ids, context={})408 def button_done(self, cr, uid, ids, context=None):
409 line_ids = [folio.order_line_id.id for folio in self.browse(cr, uid, ids)]
410 res = self.pool.get('sale.order.line').button_done(cr, uid, line_ids, context=context)
381 wf_service = netsvc.LocalService("workflow")411 wf_service = netsvc.LocalService("workflow")
382 res = self.write(cr, uid, ids, {'state':'done'})412 res = self.write(cr, uid, ids, {'state':'done'})
383 for line in self.browse(cr, uid, ids, context):413 for line in self.browse(cr, uid, ids, context):
384 wf_service.trg_write(uid, 'sale.order', line.order_id.id, cr)414 wf_service.trg_write(uid, 'sale.order', line.order_line_id.order_id.id, cr)
385 return res415 return res
386416
387 417 def copy_data(self, cr, uid, id, default=None, context=None):
388 def uos_change(self, cr, uid, ids, product_uos, product_uos_qty=0, product_id=None):418 line_id = self.browse(cr, uid, id).order_line_id.id
389 return self.pool.get('sale.order.line').uos_change(cr, uid, ids, product_uos, product_uos_qty=0, product_id=None)419 return self.pool.get('sale.order.line').copy_data(cr, uid, line_id, default=None, context=context)
390 def copy(self, cr, uid, id, default=None, context={}):420
391 return self.pool.get('sale.order.line').copy(cr, uid, id, default=None, context={})421class hotel_service_line(osv.Model):
392 422
393 423 def copy(self, cr, uid, id, default=None, context=None):
394424 line_id = self.browse(cr, uid, id).service_line_id.id
395hotel_folio_line()425 return self.pool.get('sale.order.line').copy(cr, uid, line_id, default=None, context=context)
396426
397class hotel_service_line(osv.osv):
398
399 def copy(self, cr, uid, id, default=None, context={}):
400 return self.pool.get('sale.order.line').copy(cr, uid, id, default=None, context={})
401 def _amount_line_net(self, cr, uid, ids, field_name, arg, context):
402 return self.pool.get('sale.order.line')._amount_line_net(cr, uid, ids, field_name, arg, context)
403 def _amount_line(self, cr, uid, ids, field_name, arg, context):427 def _amount_line(self, cr, uid, ids, field_name, arg, context):
404 return self.pool.get('sale.order.line')._amount_line(cr, uid, ids, field_name, arg, context)428 line_ids = [folio.service_line_id.id for folio in self.browse(cr, uid, ids)]
429 return self.pool.get('sale.order.line')._amount_line(cr, uid, line_ids, field_name, arg, context)
430
405 def _number_packages(self, cr, uid, ids, field_name, arg, context):431 def _number_packages(self, cr, uid, ids, field_name, arg, context):
406 return self.pool.get('sale.order.line')._number_packages(cr, uid, ids, field_name, arg, context)432 line_ids = [folio.service_line_id.id for folio in self.browse(cr, uid, ids)]
407 def _get_1st_packaging(self, cr, uid, context={}):433 return self.pool.get('sale.order.line')._number_packages(cr, uid, line_ids, field_name, arg, context)
408 return self.pool.get('sale.order.line')._get_1st_packaging(cr, uid, context={})434
409 435 _name = 'hotel.service.line'
410
411 _name = 'hotel_service.line'
412 _description = 'hotel Service line'436 _description = 'hotel Service line'
413 _inherits = {'sale.order.line':'service_line_id'}437 _inherits = {'sale.order.line':'service_line_id'}
414 _columns = {438 _columns = {
415 'service_line_id':fields.many2one('sale.order.line', 'service_line_id', required=True, ondelete='cascade'),439 'service_line_id': fields.many2one('sale.order.line', 'Service Line', required=True, ondelete='cascade'),
416 'folio_id':fields.many2one('hotel.folio', 'folio_id', ondelete='cascade'),440 'folio_id': fields.many2one('hotel.folio', 'Folio', ondelete='cascade'),
417
418 }441 }
419442
420 def create(self, cr, uid, vals, context=None, check=True):443 def create(self, cr, uid, vals, context=None, check=True):
421 if not context:444 if 'folio_id' in vals:
422 context = {}445 folio = self.pool.get("hotel.folio").browse(cr, uid, vals['folio_id'], context=context)
423 if vals.has_key("folio_id"):
424 folio = self.pool.get("hotel.folio").browse(cr, uid, [vals['folio_id']])[0]
425 vals.update({'order_id':folio.order_id.id})446 vals.update({'order_id':folio.order_id.id})
426 roomline = super(osv.osv, self).create(cr, uid, vals, context)447 return super(osv.Model, self).create(cr, uid, vals, context=context)
427 return roomline448
428 449 def unlink(self, cr, uid, ids, context=None):
429 def uos_change(self, cr, uid, ids, product_uos, product_uos_qty=0, product_id=None):450 sale_line_obj = self.pool.get('sale.order.line')
430 return self.pool.get('sale.order.line').uos_change(cr, uid, ids, product_uos, product_uos_qty=0, product_id=None)451 for line in self.browse(cr, uid, ids, context=context):
431 452 if line.service_line_id:
453 sale_line_obj.unlink(cr, uid, [line.service_line_id.id], context=context)
454 return super(hotel_service_line, self).unlink(cr, uid, ids, context=None)
455
432 def product_id_change(self, cr, uid, ids, pricelist, product, qty=0,456 def product_id_change(self, cr, uid, ids, pricelist, product, qty=0,
433 uom=False, qty_uos=0, uos=False, name='', partner_id=False,457 uom=False, qty_uos=0, uos=False, name='', partner_id=False,
434 lang=False, update_tax=True, date_order=False):458 lang=False, update_tax=True, date_order=False):
435 return self.pool.get('sale.order.line').product_id_change(cr, uid, ids, pricelist, product, qty=0,459 line_ids = [folio.service_line_id.id for folio in self.browse(cr, uid, ids)]
460 return self.pool.get('sale.order.line').product_id_change(cr, uid, line_ids, pricelist, product, qty=0,
436 uom=False, qty_uos=0, uos=False, name='', partner_id=partner_id,461 uom=False, qty_uos=0, uos=False, name='', partner_id=partner_id,
437 lang=False, update_tax=True, date_order=False)462 lang=False, update_tax=True, date_order=False)
463
438 def product_uom_change(self, cursor, user, ids, pricelist, product, qty=0,464 def product_uom_change(self, cursor, user, ids, pricelist, product, qty=0,
439 uom=False, qty_uos=0, uos=False, name='', partner_id=False,465 uom=False, qty_uos=0, uos=False, name='', partner_id=False,
440 lang=False, update_tax=True, date_order=False):466 lang=False, update_tax=True, date_order=False):
441 return self.pool.get('sale.order.line').product_uom_change(cursor, user, ids, pricelist, product, qty=0,467 return self.product_id_change(cursor, user, ids, pricelist, product, qty=0,
442 uom=False, qty_uos=0, uos=False, name='', partner_id=partner_id,468 uom=False, qty_uos=0, uos=False, name='', partner_id=partner_id,
443 lang=False, update_tax=True, date_order=False)469 lang=False, update_tax=True, date_order=False)
444 def on_change_checkout(self, cr, uid, ids, checkin_date=time.strftime('%Y-%m-%d %H:%M:%S'), checkout_date=time.strftime('%Y-%m-%d %H:%M:%S'), context=None):470
471 def on_change_checkout(self, cr, uid, ids, checkin_date=None, checkout_date=None, context=None):
472 if not checkin_date:
473 checkin_date = time.strftime('%Y-%m-%d %H:%M:%S')
474 if not checkout_date:
475 checkout_date = time.strftime('%Y-%m-%d %H:%M:%S')
445 qty = 1476 qty = 1
446 if checkout_date < checkin_date:477 if checkout_date < checkin_date:
447 raise osv.except_osv ('Error !', 'Checkout must be greater or equal checkin date')478 raise osv.except_osv(_('Error !'), _('Checkout must be greater or equal checkin date'))
448 if checkin_date:479 if checkin_date:
449 diffDate = datetime.datetime(*time.strptime(checkout_date, '%Y-%m-%d %H:%M:%S')[:5]) - datetime.datetime(*time.strptime(checkin_date, '%Y-%m-%d %H:%M:%S')[:5])480 diffDate = datetime.datetime(*time.strptime(checkout_date, '%Y-%m-%d %H:%M:%S')[:5]) - datetime.datetime(*time.strptime(checkin_date, '%Y-%m-%d %H:%M:%S')[:5])
450 qty = diffDate.days481 qty = diffDate.days
451 return {'value':{'product_uom_qty':qty}}482 return {'value':{'product_uom_qty':qty}}
452 483
453 def button_confirm(self, cr, uid, ids, context={}):484 def button_confirm(self, cr, uid, ids, context=None):
454 485 line_ids = [folio.service_line_id.id for folio in self.browse(cr, uid, ids)]
455 return self.pool.get('sale.order.line').button_confirm(cr, uid, ids, context={})486 return self.pool.get('sale.order.line').button_confirm(cr, uid, line_ids, context=context)
456 def button_done(self, cr, uid, ids, context={}):487
457 return self.pool.get('sale.order.line').button_done(cr, uid, ids, context={})488 def button_done(self, cr, uid, ids, context=None):
489 line_ids = [folio.service_line_id.id for folio in self.browse(cr, uid, ids)]
490 return self.pool.get('sale.order.line').button_done(cr, uid, line_ids, context=context)
491
458 def uos_change(self, cr, uid, ids, product_uos, product_uos_qty=0, product_id=None):492 def uos_change(self, cr, uid, ids, product_uos, product_uos_qty=0, product_id=None):
459 return self.pool.get('sale.order.line').uos_change(cr, uid, ids, product_uos, product_uos_qty=0, product_id=None)493 line_ids = [folio.service_line_id.id for folio in self.browse(cr, uid, ids)]
460 def copy(self, cr, uid, id, default=None, context={}):494 return self.pool.get('sale.order.line').uos_change(cr, uid, line_ids, product_uos, product_uos_qty=0, product_id=None)
461 return self.pool.get('sale.order.line').copy(cr, uid, id, default=None, context={})495
462 496 def copy_data(self, cr, uid, id, default=None, context=None):
463 497 line_id = self.browse(cr, uid, id).service_line_id.id
464498 return self.pool.get('sale.order.line').copy_data(cr, uid, line_id, default=default, context=context)
465hotel_service_line()499
466500class hotel_service_type(osv.Model):
467class hotel_service_type(osv.osv):501 _name = "hotel.service.type"
468 _name = "hotel.service_type"
469 _inherits = {'product.category':'ser_id'}502 _inherits = {'product.category':'ser_id'}
470 _description = "Service Type"503 _description = "Service Type"
471 _columns = { 504 _columns = {
472 'ser_id':fields.many2one('product.category', 'category', required=True, select=True, ondelete='cascade'),505 'ser_id': fields.many2one('product.category', 'Category', required=True, select=True, ondelete='cascade'),
473
474 }506 }
475 _defaults = {507 _defaults = {
476 'isservicetype': lambda * a: 1,508 'isservicetype': 1,
477 } 509 }
478hotel_service_type()
479510
480class hotel_services(osv.osv):511class hotel_services(osv.Model):
481
482 _name = 'hotel.services'512 _name = 'hotel.services'
483 _description = 'Hotel Services and its charges'513 _description = 'Hotel Services and its charges'
484 _inherits = {'product.product':'service_id'}514 _inherits = {'product.product':'service_id'}
485 _columns = {515 _columns = {
486 'service_id': fields.many2one('product.product', 'Service_id', required=True, ondelete='cascade'),516 'service_id': fields.many2one('product.product', 'Service id', required=True, ondelete='cascade'),
487 517 }
488 }
489 _defaults = {518 _defaults = {
490 'isservice': lambda * a: 1,519 'isservice': 1,
491 }520 }
492hotel_services()
493521
522class res_company(osv.Model):
523 _inherit = 'res.company'
524 _columns = {
525 'additional_hours': fields.integer('Additional Hours', help="Provide the min hours value for check in, checkout days, whatever the hours will be provided here based on that extra days will be calculated."),
526 }
494527
495# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:528# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
496529
=== modified file 'hotel/hotel_data.xml'
--- hotel/hotel_data.xml 2012-05-22 14:06:57 +0000
+++ hotel/hotel_data.xml 2014-09-28 13:18:16 +0000
@@ -1,9 +1,8 @@
1<?xml version="1.0" ?>1<?xml version="1.0" encoding="utf-8"?>
2<openerp>2<openerp>
3 <data noupdate="1">3 <data noupdate="1">
4 4
5 <!-- Floor -->5 <!-- Floor -->
6
7 <record id="hotel_floor_ground0" model="hotel.floor">6 <record id="hotel_floor_ground0" model="hotel.floor">
8 <field eval="&quot;Ground&quot;" name="name"/>7 <field eval="&quot;Ground&quot;" name="name"/>
9 </record>8 </record>
@@ -21,74 +20,60 @@
21 </record>20 </record>
22 21
23 <!-- hotel_room_amenities_type -->22 <!-- hotel_room_amenities_type -->
24 23 <record id="hotel_room_amenities_type_0" model="hotel.room.amenities.type">
25
26 <record id="hotel_room_amenities_type_0" model="hotel.room_amenities_type">
27 <field name="parent_id" ref="null" />24 <field name="parent_id" ref="null" />
28 <field name="name">All Aminities</field>25 <field name="name">All Aminities</field>
29
30 </record>26 </record>
31 <record id="hotel_room_amenities_type_1" model="hotel.room_amenities_type">27 <record id="hotel_room_amenities_type_1" model="hotel.room.amenities.type">
32 <field name="parent_id" model="product.category" search="[('isamenitype','=',True)]" ref="hotel_room_amenities_type_0"/>28 <field name="parent_id" model="product.category" search="[('isamenitype','=',True)]" ref="hotel_room_amenities_type_0"/>
33 <field name="name">Beds</field>29 <field name="name">Beds</field>
34 </record>30 </record>
35 <record id="hotel_room_amenities_type_2" model="hotel.room_amenities_type">31 <record id="hotel_room_amenities_type_2" model="hotel.room.amenities.type">
36 <field name="parent_id" model="product.category" search="[('isamenitype','=',True)]" ref="hotel_room_amenities_type_0"/>32 <field name="parent_id" model="product.category" search="[('isamenitype','=',True)]" ref="hotel_room_amenities_type_0"/>
37 <field name="name">Tables</field>33 <field name="name">Tables</field>
38 </record>34 </record>
39 <record id="hotel_room_amenities_type_3" model="hotel.room_amenities_type">35 <record id="hotel_room_amenities_type_3" model="hotel.room.amenities.type">
40 <field name="parent_id" model="product.category" search="[('isamenitype','=',True)]" ref="hotel_room_amenities_type_1"/>36 <field name="parent_id" model="product.category" search="[('isamenitype','=',True)]" ref="hotel_room_amenities_type_1"/>
41 <field name="name">Single Bed</field>37 <field name="name">Single Bed</field>
42 </record>38 </record>
43 <record id="hotel_room_amenities_type_4" model="hotel.room_amenities_type">39 <record id="hotel_room_amenities_type_4" model="hotel.room.amenities.type">
44 <field name="parent_id" model="product.category" search="[('isamenitype','=',True)]" ref="hotel_room_amenities_type_1"/>40 <field name="parent_id" model="product.category" search="[('isamenitype','=',True)]" ref="hotel_room_amenities_type_1"/>
45 <field name="name">Double Bed</field>41 <field name="name">Double Bed</field>
46 </record>42 </record>
47 43
48 <!-- hotel_room_type -->44 <!-- hotel_room_type -->
49 45 <record id="hotel_room_type_0" model="hotel.room.type">
50 <record id="hotel_room_type_0" model="hotel.room_type">46 <field name="parent_id" ref="null" />
51 <field name="parent_id" ref="null" />
52 <field name="name">All Rooms</field>47 <field name="name">All Rooms</field>
53 </record>48 </record>
54 <record id="hotel_room_type_1" model="hotel.room_type">49 <record id="hotel_room_type_1" model="hotel.room.type">
55 <field name="parent_id" model="product.category" search="[('isroomtype','=',True)]" ref="hotel_room_type_0"/>50 <field name="parent_id" model="product.category" search="[('isroomtype','=',True)]" ref="hotel_room_type_0"/>
56 <field name="name">Single</field>51 <field name="name">Single</field>
57 </record>52 </record>
58 <record id="hotel_room_type_2" model="hotel.room_type">53 <record id="hotel_room_type_2" model="hotel.room.type">
59 <field name="parent_id" model="product.category" search="[('isroomtype','=',True)]" ref="hotel_room_type_0"/>54 <field name="parent_id" model="product.category" search="[('isroomtype','=',True)]" ref="hotel_room_type_0"/>
60 <field name="name">Double</field>55 <field name="name">Double</field>
61 </record>56 </record>
6257 <record id="hotel_room_type_3" model="hotel.room.type">
63
64 <record id="hotel_room_type_3" model="hotel.room_type">
65 <field name="parent_id" model="product.category" search="[('isroomtype','=',True)]" ref="hotel_room_type_0"/>58 <field name="parent_id" model="product.category" search="[('isroomtype','=',True)]" ref="hotel_room_type_0"/>
66 <field name="name">No Room</field>59 <field name="name">No Room</field>
67 </record>60 </record>
6861
69 <record id="hotel_room_type_3" model="hotel.room_type">62 <!-- hotel_service_type -->
70 <field name="parent_id" model="product.category" search="[('isroomtype','=',True)]" ref="hotel_room_type_0"/>63 <record id="hotel_service_type_0" model="hotel.service.type">
71 <field name="name">No Room</field>
72 </record>
73 <!-- hotel_service_type -->
74
75 <record id="hotel_service_type_0" model="hotel.service_type">
76 <field name="parent_id" ref="null" />64 <field name="parent_id" ref="null" />
77 <field name="name">All Services</field>65 <field name="name">All Services</field>
78 </record>66 </record>
79 <record id="hotel_service_type_1" model="hotel.service_type">67 <record id="hotel_service_type_1" model="hotel.service.type">
80 <field name="parent_id" model="product.category" search="[('isservicetype','=',True)]" ref="hotel_service_type_0"/>68 <field name="parent_id" model="product.category" search="[('isservicetype','=',True)]" ref="hotel_service_type_0"/>
81 <field name="name">Fixed</field>69 <field name="name">Fixed</field>
82 </record>70 </record>
83 <record id="hotel_service_type_2" model="hotel.service_type">71 <record id="hotel_service_type_2" model="hotel.service.type">
84 <field name="parent_id" model="product.category" search="[('isservicetype','=',True)]" ref="hotel_service_type_0"/>72 <field name="parent_id" model="product.category" search="[('isservicetype','=',True)]" ref="hotel_service_type_0"/>
85 <field name="name">Variable</field>73 <field name="name">Variable</field>
86 </record>74 </record>
87
88
89 75
90 <!-- hotel_room -->76 <!-- hotel_room -->
91
92 <record id="hotel_room_6" model="hotel.room">77 <record id="hotel_room_6" model="hotel.room">
93 <field name="name">No Room Available</field>78 <field name="name">No Room Available</field>
94 <field name="categ_id" model="product.category" search="[('isroomtype','=',True),('name','=','No Room')]" ref="hotel_room_type_3"/> 79 <field name="categ_id" model="product.category" search="[('isroomtype','=',True),('name','=','No Room')]" ref="hotel_room_type_3"/>
@@ -99,7 +84,6 @@
99 <field name="categ_id" model="product.category" search="[('isroomtype','=',True),('name','=','Single')]" ref="hotel_room_type_1"/> 84 <field name="categ_id" model="product.category" search="[('isroomtype','=',True),('name','=','Single')]" ref="hotel_room_type_1"/>
100 <field name="list_price">100.00</field>85 <field name="list_price">100.00</field>
101 </record>86 </record>
102
103 <record id="hotel_room_1" model="hotel.room">87 <record id="hotel_room_1" model="hotel.room">
104 <field name="name">Single-102</field>88 <field name="name">Single-102</field>
105 <field name="categ_id" model="product.category" search="[('isroomtype','=',True),('name','=','Single')]" ref="hotel_room_type_1"/> 89 <field name="categ_id" model="product.category" search="[('isroomtype','=',True),('name','=','Single')]" ref="hotel_room_type_1"/>
@@ -132,8 +116,6 @@
132 </record>116 </record>
133117
134 <!-- hotel_services -->118 <!-- hotel_services -->
135
136
137 <record id="hotel_service_6" model="hotel.services">119 <record id="hotel_service_6" model="hotel.services">
138 <field name="name">Internet</field>120 <field name="name">Internet</field>
139 <field name="categ_id" model="product.category" search="[('isservicetype','=',True),('name','=','Fixed')]" ref="hotel_service_type_1"/> 121 <field name="categ_id" model="product.category" search="[('isservicetype','=',True),('name','=','Fixed')]" ref="hotel_service_type_1"/>
@@ -150,6 +132,5 @@
150 <field name="list_price">150.00</field>132 <field name="list_price">150.00</field>
151 </record>133 </record>
152 134
153
154 </data>135 </data>
155</openerp>136</openerp>
156\ No newline at end of file137\ No newline at end of file
157138
=== modified file 'hotel/hotel_folio_workflow.xml'
--- hotel/hotel_folio_workflow.xml 2012-05-22 14:06:57 +0000
+++ hotel/hotel_folio_workflow.xml 2014-09-28 13:18:16 +0000
@@ -1,22 +1,20 @@
1<?xml version="1.0"?>1<?xml version="1.0" encoding="utf-8"?>
2<openerp>2<openerp>
3 <data>3 <data>
4 <record model="workflow" id="wkf_hotel">4 <record model="workflow" id="wkf_hotel">
5 <field name="name">hotel.folio.basic</field>5 <field name="name">hotel.folio.basic</field>
6 <field name="osv">hotel.folio</field>6 <field name="osv">hotel.folio</field>
7 <field name="on_create">True</field>7 <field name="on_create">True</field>
8 </record>8 </record>
9 9
10 #----------------------------------------------10 #----------------------------------------------
11 # Activity11 # Activity
12 #----------------------------------------------12 #----------------------------------------------
13
14 <record model="workflow.activity" id="act_draft">13 <record model="workflow.activity" id="act_draft">
15 <field name="wkf_id" ref="wkf_hotel"/>14 <field name="wkf_id" ref="wkf_hotel"/>
16 <field name="flow_start">True</field>15 <field name="flow_start">True</field>
17 <field name="name">draft</field>16 <field name="name">draft</field>
18 </record>17 </record>
19
20 <record model="workflow.activity" id="act_router">18 <record model="workflow.activity" id="act_router">
21 <field name="wkf_id" ref="wkf_hotel"/>19 <field name="wkf_id" ref="wkf_hotel"/>
22 <field name="name">router</field>20 <field name="name">router</field>
@@ -32,7 +30,6 @@
32 <field name="wkf_id" ref="wkf_hotel"/>30 <field name="wkf_id" ref="wkf_hotel"/>
33 <field name="name">wait_ship</field>31 <field name="name">wait_ship</field>
34 </record>32 </record>
35
36 <record model="workflow.activity" id="act_done">33 <record model="workflow.activity" id="act_done">
37 <field name="wkf_id" ref="wkf_hotel"/>34 <field name="wkf_id" ref="wkf_hotel"/>
38 <field name="name">done</field>35 <field name="name">done</field>
@@ -62,7 +59,6 @@
62 <field name="kind">stopall</field>59 <field name="kind">stopall</field>
63 <field name="action">action_cancel()</field>60 <field name="action">action_cancel()</field>
64 </record>61 </record>
65
66 <record model="workflow.activity" id="act_invoice">62 <record model="workflow.activity" id="act_invoice">
67 <field name="wkf_id" ref="wkf_hotel"/>63 <field name="wkf_id" ref="wkf_hotel"/>
68 <field name="name">invoice</field>64 <field name="name">invoice</field>
@@ -88,7 +84,6 @@
88 <field name="kind">stopall</field>84 <field name="kind">stopall</field>
89 <field name="action">action_cancel()</field>85 <field name="action">action_cancel()</field>
90 </record>86 </record>
91
92 <record model="workflow.activity" id="act_ship">87 <record model="workflow.activity" id="act_ship">
93 <field name="wkf_id" ref="wkf_hotel"/>88 <field name="wkf_id" ref="wkf_hotel"/>
94 <field name="name">ship</field>89 <field name="name">ship</field>
@@ -138,48 +133,39 @@
138 <field name="act_to" ref="act_invoice_end"/>133 <field name="act_to" ref="act_invoice_end"/>
139 <field name="condition">(order_policy=='picking')</field>134 <field name="condition">(order_policy=='picking')</field>
140 </record>135 </record>
141
142
143 <record model="workflow.transition" id="trans_router_wait_invoice">136 <record model="workflow.transition" id="trans_router_wait_invoice">
144 <field name="act_from" ref="act_router"/>137 <field name="act_from" ref="act_router"/>
145 <field name="act_to" ref="act_wait_invoice"/>138 <field name="act_to" ref="act_wait_invoice"/>
146 </record>139 </record>
147
148 <record model="workflow.transition" id="trans_router_wait_ship">140 <record model="workflow.transition" id="trans_router_wait_ship">
149 <field name="act_from" ref="act_router"/>141 <field name="act_from" ref="act_router"/>
150 <field name="act_to" ref="act_wait_ship"/>142 <field name="act_to" ref="act_wait_ship"/>
151 </record>143 </record>
152
153 <record model="workflow.transition" id="trans_wait_invoice_cancel2">144 <record model="workflow.transition" id="trans_wait_invoice_cancel2">
154 <field name="act_from" ref="act_wait_invoice"/>145 <field name="act_from" ref="act_wait_invoice"/>
155 <field name="act_to" ref="act_cancel2"/>146 <field name="act_to" ref="act_cancel2"/>
156 <field name="signal">cancel</field>147 <field name="signal">cancel</field>
157 </record>148 </record>
158
159 <record model="workflow.transition" id="trans_wait_ship_cancel3">149 <record model="workflow.transition" id="trans_wait_ship_cancel3">
160 <field name="act_from" ref="act_wait_ship"/>150 <field name="act_from" ref="act_wait_ship"/>
161 <field name="act_to" ref="act_cancel3"/>151 <field name="act_to" ref="act_cancel3"/>
162 <field name="signal">cancel</field>152 <field name="signal">cancel</field>
163 </record>153 </record>
164
165 <record model="workflow.transition" id="trans_wait_ship_ship">154 <record model="workflow.transition" id="trans_wait_ship_ship">
166 <field name="act_from" ref="act_wait_ship"/>155 <field name="act_from" ref="act_wait_ship"/>
167 <field name="act_to" ref="act_ship"/>156 <field name="act_to" ref="act_ship"/>
168 <field name="condition">(order_policy!='prepaid') or invoiced</field>157 <field name="condition">(order_policy!='prepaid') or invoiced</field>
169 </record>158 </record>
170
171 <record model="workflow.transition" id="trans_wait_invoice_invoice">159 <record model="workflow.transition" id="trans_wait_invoice_invoice">
172 <field name="act_from" ref="act_wait_invoice"/>160 <field name="act_from" ref="act_wait_invoice"/>
173 <field name="act_to" ref="act_invoice"/>161 <field name="act_to" ref="act_invoice"/>
174 <field name="condition">(order_policy=='prepaid') or ((order_policy=='postpaid') and shipped)</field>162 <field name="condition">(order_policy=='prepaid') or ((order_policy=='postpaid') and shipped)</field>
175 </record>163 </record>
176
177 <record model="workflow.transition" id="trans_wait_invoice_invoice_manual">164 <record model="workflow.transition" id="trans_wait_invoice_invoice_manual">
178 <field name="act_from" ref="act_wait_invoice"/>165 <field name="act_from" ref="act_wait_invoice"/>
179 <field name="act_to" ref="act_invoice"/>166 <field name="act_to" ref="act_invoice"/>
180 <field name="signal">manual_invoice</field>167 <field name="signal">manual_invoice</field>
181 </record>168 </record>
182
183 <record model="workflow.transition" id="trans_invoice_invoice_end">169 <record model="workflow.transition" id="trans_invoice_invoice_end">
184 <field name="act_from" ref="act_invoice"/>170 <field name="act_from" ref="act_invoice"/>
185 <field name="act_to" ref="act_invoice_end"/>171 <field name="act_to" ref="act_invoice_end"/>
@@ -209,7 +195,6 @@
209 <field name="act_from" ref="act_ship_end"/>195 <field name="act_from" ref="act_ship_end"/>
210 <field name="act_to" ref="act_done"/>196 <field name="act_to" ref="act_done"/>
211 </record>197 </record>
212
213 <record model="workflow.transition" id="trans_ship_ship_end">198 <record model="workflow.transition" id="trans_ship_ship_end">
214 <field name="act_from" ref="act_ship"/>199 <field name="act_from" ref="act_ship"/>
215 <field name="act_to" ref="act_ship_end"/>200 <field name="act_to" ref="act_ship_end"/>
216201
=== added file 'hotel/hotel_scheduler.xml'
--- hotel/hotel_scheduler.xml 1970-01-01 00:00:00 +0000
+++ hotel/hotel_scheduler.xml 2014-09-28 13:18:16 +0000
@@ -0,0 +1,17 @@
1<?xml version="1.0" encoding='UTF-8'?>
2<openerp>
3 <data>
4
5 <record model="ir.cron" id="room_analytic_cron">
6 <field name="name">Room analysis</field>
7 <field name="interval_number">1</field>
8 <field name="interval_type">minutes</field>
9 <field name="numbercall">-1</field>
10 <field name="doall" eval="False"/>
11 <field name="model" eval="'hotel.room'"/>
12 <field name="function" eval="'cron_room_line'"/>
13 <field name="args" eval="'()'" />
14 </record>
15
16 </data>
17</openerp>
0\ No newline at end of file18\ No newline at end of file
119
=== added file 'hotel/hotel_sequence.xml'
--- hotel/hotel_sequence.xml 1970-01-01 00:00:00 +0000
+++ hotel/hotel_sequence.xml 2014-09-28 13:18:16 +0000
@@ -0,0 +1,18 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<openerp>
3 <data noupdate="1">
4
5 <!-- Sequences for hotel.folio -->
6 <record model="ir.sequence.type" id="seq_type_hotel_folio">
7 <field name="name">Hotel Folio</field>
8 <field name="code">hotel.folio</field>
9 </record>
10 <record model="ir.sequence" id="seq_hotel_folio">
11 <field name="name">Hotel Folio</field>
12 <field name="code">hotel.folio</field>
13 <field name="prefix">Folio/</field>
14 <field name="padding">5</field>
15 </record>
16
17 </data>
18</openerp>
0\ No newline at end of file19\ No newline at end of file
120
=== modified file 'hotel/hotel_view.xml'
--- hotel/hotel_view.xml 2012-11-23 03:00:23 +0000
+++ hotel/hotel_view.xml 2014-09-28 13:18:16 +0000
@@ -1,8 +1,9 @@
1<?xml version="1.0"?>1<?xml version="1.0" encoding="utf-8"?>
2<openerp>2<openerp>
3 <data>3 <data>
4 <menuitem id="hotel_management_menu" name="Hotel Management" web_icon="data/hotel-grey.png"4 <menuitem id="hotel_management_menu" name="Hotel Management" web_icon="data/hotel-grey.png"
5 web_icon_hover="data/hotel-color.png"/>5 web_icon_hover="data/hotel-color.png"/>
6<<<<<<< TREE
6 <menuitem id="hotel_configuration_menu" name="Configuration" sequence="20" parent ="hotel_management_menu"/>7 <menuitem id="hotel_configuration_menu" name="Configuration" sequence="20" parent ="hotel_management_menu"/>
7 <menuitem id="hotel_report_menu" name="Reports" sequence="6" parent ="hotel_management_menu"/>8 <menuitem id="hotel_report_menu" name="Reports" sequence="6" parent ="hotel_management_menu"/>
8 9
@@ -437,3 +438,854 @@
437 438
438 </data>439 </data>
439</openerp>440</openerp>
441=======
442 <menuitem id="hotel_configuration_menu" name="Configuration" sequence="20" parent ="hotel_management_menu"/>
443 <menuitem id="hotel_report_menu" name="Reports" sequence="6" parent="hotel_management_menu"/>
444
445 <!-- ###############################################
446 #############Company Configuration#############
447 ###############################################
448 -->
449
450 <record id="res_company_inherit_config_hotel" model="ir.ui.view">
451 <field name="name">res.company.inherit.config.hotel</field>
452 <field name="model">res.company</field>
453 <field name="inherit_id" ref="base.view_company_form" />
454 <field name="arch" type="xml">
455 <xpath expr="//field[@name='currency_id']" position="after">
456 <field name="additional_hours"/>
457 </xpath>
458 </field>
459 </record>
460 <!--====================================================
461 Floor
462 ==================================================== -->
463
464 <record model="ir.ui.view" id="view_hotel_floor_form">
465 <field name="name">hotel.floor.form</field>
466 <field name="model">hotel.floor</field>
467 <field name="arch" type="xml">
468 <form string=" Hotel Floor" version="7.0">
469 <sheet>
470 <group>
471 <field name="name" colspan="1"/>
472 <field name="sequence" select="1"/>
473 </group>
474 </sheet>
475 </form>
476 </field>
477 </record>
478 <record model="ir.ui.view" id="view_hotel_floor_tree">
479 <field name="name">hotel.floor.tree</field>
480 <field name="model">hotel.floor</field>
481 <field name="arch" type="xml">
482 <tree string=" Hotel Floors">
483 <field name="name" colspan="1"/>
484 <field name="sequence" select="1"/>
485 </tree>
486 </field>
487 </record>
488 <record model="ir.actions.act_window" id="open_hotel_floor_form_tree">
489 <field name="name">Floor Structure</field>
490 <field name="res_model">hotel.floor</field>
491 <field name="view_type">form</field>
492 <field name="view_mode">tree,form</field>
493 </record>
494 <menuitem name="Floor"
495 id="menu_open_hotel_floor_form_tree"
496 action="open_hotel_floor_form_tree"
497 sequence="21"
498 parent="hotel_configuration_menu"/>
499
500 <!--====================================================================
501 Amenities Type
502 ====================================================================-->
503
504 <record model="ir.ui.view" id="view_hotel_room_amenities_type_form">
505 <field name="name">hotel.room_amenities_type_form</field>
506 <field name="model">hotel.room.amenities.type</field>
507 <field name="arch" type="xml">
508 <form string="Hotel Room Amenities Type" version="7.0">
509 <sheet>
510 <group>
511 <field name="name"/>
512 <field name="parent_id" domain="[('isamenitype','=',True)]"/>
513 </group>
514 </sheet>
515 </form>
516 </field>
517 </record>
518 <record model="ir.ui.view" id="view_hotel_room_amenities_type_list">
519 <field name="name">hotel.room_amenities_type_list</field>
520 <field name="model">hotel.room.amenities.type</field>
521 <field name="arch" type="xml">
522 <tree string="Hotel Room Amenities Type">
523 <field name="complete_name"/>
524 </tree>
525 </field>
526 </record>
527 <record model="ir.actions.act_window" id="action_hotel_room_amenities_type_view_form">
528 <field name="name">Hotel Room Amenities Type</field>
529 <field name="res_model">hotel.room.amenities.type</field>
530 <field name="view_type">form</field>
531 <field name="view_mode">tree,form</field>
532 </record>
533 <menuitem id="menu_amenity" name="Amenity" parent="hotel.hotel_configuration_menu" sequence="2"/>
534 <menuitem name="Amenity Types"
535 id="menu_action_hotel_room_amenities_type_view_form"
536 action="action_hotel_room_amenities_type_view_form"
537 sequence="3"
538 parent="hotel.menu_amenity"/>
539
540 <!--===============================================================
541 Room Amenities
542 ===============================================================-->
543
544 <record id="view_hotel_room_amenities_form" model="ir.ui.view" >
545 <field name="name">hotel.room.amenities.form</field>
546 <field name="model">hotel.room.amenities</field>
547 <field name="arch" type="xml">
548 <form string="Hotel Room Amenities" version="7.0">
549 <sheet>
550 <h1>
551 <label string="Amenity" />
552 <field name="name" select="1"/>
553 </h1>
554 <group>
555 <field name="default_code" select="1"/>
556 </group>
557 <notebook>
558 <page string="Information">
559 <group colspan="4" col="4">
560 <field name="type" select="2"/>
561 <field name="product_manager" select="2"/>
562 <!-- <field name="procure_method"/> -->
563 <field name="state" select="2"/>
564 <field name="categ_id" select="1" domain="[('isamenitype','=',True)]"/>
565 <field name="uom_id"/>
566 <field name="uom_po_id"/>
567 </group>
568 <newline/>
569 <separator colspan='4' string="Supplier Taxes"/>
570 <field name="supplier_taxes_id" colspan="4" nolabel='1' help='Define supplier taxes if there any on the Amenity. '/>
571 <newline/>
572 <separator colspan='4' string="Customer Taxes"/>
573 <field name="taxes_id" colspan="4" nolabel='1' help='List of customer taxes applied on the Amenity. '/>
574 </page>
575
576 <page string="Procurement">
577 <group colspan="4" col="4">
578 <!-- <field name="supply_method"/> -->
579 <field name="active" select="2"/>
580 <field name="list_price"/>
581 <field name="cost_method"/>
582 <field name="sale_ok" select="2"/>
583 <field name="standard_price"/>
584 <field name="rental" select="2"/>
585 <field name="uos_id" />
586 <field name="uos_coeff" />
587 </group>
588 <newline />
589 <group>
590 <separator string="Suppliers" />
591 <field name="seller_ids" colspan="4" nolabel="1" widget="one2many_list"/>
592 </group>
593 </page>
594 <page string="Descriptions">
595 <separator string="Description" />
596 <field name="description" colspan="4" nolabel="1" />
597 <separator string="Sale Description"/>
598 <field name="description_sale" colspan="4" nolabel="1"/>
599 <separator string="Purchase Description"/>
600 <field name="description_purchase" colspan="4" nolabel="1"/>
601 </page>
602 </notebook>
603 </sheet>
604 </form>
605 </field>
606 </record>
607
608 <record model="ir.ui.view" id="view_hotel_room_amenities_search">
609 <field name="name">hotel.room_amenities_search</field>
610 <field name="model">hotel.room.amenities</field>
611 <field name="arch" type="xml">
612 <search string="Hotel Room Amenities">
613 <field name="name" />
614 <field name="categ_id" select="1"/>
615 <field name="list_price" string="Amenity rate"/>
616 <newline/>
617 <group expand="0" string="Group By...">
618 <filter name="categ_id" string="Catagory" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'categ_id'}" />
619 </group>
620 </search>
621 </field>
622 </record>
623 <record model="ir.ui.view" id="view_hotel_room_amenities_list">
624 <field name="name">hotel.room_amenities_list</field>
625 <field name="model">hotel.room.amenities</field>
626 <field name="arch" type="xml">
627 <tree string="Hotel Room Amenities">
628 <field name="name" />
629 <field name="categ_id" select="1"/>
630 <field name="list_price" string="Amenity rate"/>
631 </tree>
632 </field>
633 </record>
634 <record model="ir.actions.act_window" id="action_hotel_room_amenities_view_form">
635 <field name="name">Hotel Room Amenities</field>
636 <field name="res_model">hotel.room.amenities</field>
637 <field name="view_type">form</field>
638 <field name="view_mode">tree,form</field>
639 <field name="view_id" ref="view_hotel_room_amenities_list"/>
640 </record>
641 <menuitem name="Amenities"
642 id="menu_action_hotel_room_amenities_view_form"
643 action="action_hotel_room_amenities_view_form"
644 sequence="2"
645 parent="hotel.menu_amenity"/>
646
647 <!--========================================================
648 Room Type
649 ========================================================-->
650 <record model="ir.ui.view" id="view_hotel_room_type_form">
651 <field name="name">hotel.room_type.form</field>
652 <field name="model">hotel.room.type</field>
653 <field name="arch" type="xml">
654 <form string=" Hotel Room Type" version="7.0">
655 <sheet>
656 <group>
657 <field name="name" select="1"/>
658 <field name="parent_id" domain="[('isroomtype','=',True)]" select="1"/>
659 </group>
660 </sheet>
661 </form>
662 </field>
663 </record>
664 <record model="ir.ui.view" id="view_hotel_room_type_tree">
665 <field name="name">hotel.room_type.tree</field>
666 <field name="model">hotel.room.type</field>
667 <field name="arch" type="xml">
668 <tree string=" Hotel Room Type">
669 <field name="complete_name"/>
670 </tree>
671 </field>
672 </record>
673 <record model="ir.actions.act_window" id="open_hotel_room_type_form_tree">
674 <field name="name">Room Type</field>
675 <field name="res_model">hotel.room.type</field>
676 <field name="view_type">form</field>
677 <field name="view_mode">tree,form</field>
678 </record>
679 <menuitem id="menu_hotel_room" name="Room" parent="hotel.hotel_configuration_menu" sequence="2"/>
680 <menuitem name="Room Types"
681 id="menu_open_hotel_room_type_form_tree"
682 action="open_hotel_room_type_form_tree"
683 sequence="6"
684 parent="hotel.menu_hotel_room"/>
685
686 <!--===================================================
687 Rooms
688 =================================================== -->
689
690 <record model="ir.ui.view" id="view_hotel_room_form">
691 <field name="name">hotel.room.form</field>
692 <field name="model">hotel.room</field>
693 <field name="arch" type="xml">
694 <form string="Hotel Room" version="7.0">
695 <header>
696 <field name="state" string="Room Status" widget='statusbar'/>
697 </header>
698 <sheet>
699 <div class="oe_title">
700 <label for="name" string="Name" />
701 <h1>
702 <field name="name" select="1"/>
703 </h1>
704 <label for="status" string="Status" />
705 <h2>
706 <field name="status" />
707 </h2>
708 </div>
709 <notebook>
710 <page string="Information">
711 <group colspan="4" col="4">
712 <field name="floor_id" string = "Floor" />
713 <field name="categ_id" select="1" domain="[('isroomtype','=',True)]"/>
714 <field name="product_manager" select="2"/>
715 <field name="uom_id" invisible="1"/>
716 </group>
717 <newline/>
718 <separator colspan='4' string="Supplier Taxes"/>
719 <field name="supplier_taxes_id" colspan="4" nolabel='1' help='List of supplier taxes if there any on the defined room. '/>
720 <newline/>
721 <separator colspan='4' string="Customer Taxes"/>
722 <field name="taxes_id" colspan="4" nolabel='1' help='Customer taxes apply on the perticular room. '/>
723 </page>
724 <page string = "Room Amenities">
725 <separator string=" Room Amenities"/>
726 <field name="room_amenities" colspan="4" nolabel="1"/>
727 </page>
728 <page string="Procurement">
729 <group colspan="4" col="4">
730 <field name="active" select="2"/>
731 <field name="list_price"/> -->
732 <field name="rental" select="2"/>
733 <field name="standard_price"/>
734 <field name="cost_method"/>
735 <field name="uos_id"/>
736 <field name="uos_coeff" />
737 <newline/>
738 <separator string="Room Rent" />
739 <field name="room_rent_ids" colspan="4" nolabel='1' >
740 <form string="Room Rent" version="7.0">
741 <group colspan="4" col="2">
742 <field name="price"/>
743 </group>
744 <group colspan="4" col="8">
745 <field name="mon"/>
746 <field name="tue"/>
747 <field name="wed"/>
748 <field name="thu"/>
749 <field name="fri"/>
750 <field name="sat"/>
751 <field name="sun"/>
752 </group>
753 </form>
754 <tree string="Room Rent" editable="bottom" >
755 <field name="price"/>
756 <field name="mon"/>
757 <field name="tue"/>
758 <field name="wed"/>
759 <field name="thu"/>
760 <field name="fri"/>
761 <field name="sat"/>
762 <field name="sun"/>
763 </tree>
764 </field>
765 </group>
766 <newline/>
767 <group>
768 <separator string="Suppliers" />
769 <field name="seller_ids" colspan="4" nolabel="1" widget="one2many_list"/>
770 </group>
771 </page>
772 <page string="Descriptions">
773 <separator string="Description" />
774 <field name="description" colspan="4" nolabel="1" />
775 </page>
776 </notebook>
777 </sheet>
778 </form>
779 </field>
780 </record>
781
782 <record model="ir.ui.view" id="view_hotel_room_search">
783 <field name="name">hotel.room.search</field>
784 <field name="model">hotel.room</field>
785 <field name="arch" type="xml">
786 <search string="Hotel Room" >
787 <field name="name" />
788 <field name="categ_id" select="1"/>
789 <field name="list_price" string="Room rate"/>
790 <field name="state" string="Status"/>
791 <newline/>
792 <filter string="Available" domain="[('state','=', 'unassigned')]" help="Available Rooms" />
793 <group expand="0" string="Group By...">
794 <filter name="state" string="state" domain="[]" context="{'group_by':'state'}" />
795 </group>
796 </search>
797 </field>
798 </record>
799
800 <record model="ir.ui.view" id="view_hotel_room_tree">
801 <field name="name">hotel.room.tree</field>
802 <field name="model">hotel.room</field>
803 <field name="arch" type="xml">
804 <tree string="Hotel Room" >
805 <field name="name" />
806 <field name="categ_id" select="1"/>
807 <field name="list_price" string="Room rate"/>
808 <field name="status"/>
809 </tree>
810 </field>
811 </record>
812
813 <record model="ir.ui.view" id="view_hotel_room_kanban">
814 <field name="name">hotel.room.kanban</field>
815 <field name="model">hotel.room</field>
816 <field name="arch" type="xml">
817 <kanban version="7.0" default_group_by="status" >
818 <field name="product_id" />
819 <field name="status" />
820 <field name="color" />
821 <templates>
822 <t t-name="kanban-box">
823 <!-- <div class="oe_kanban_vignette oe_semantic_html_override"> -->
824 <div t-attf-class="oe_kanban_color_#{kanban_getcolor(record.color.raw_value)} oe_kanban_card oe_kanban_project oe_kanban_global_click">
825 <div class="oe_dropdown_toggle oe_dropdown_kanban" groups="base.group_user">
826 <span class="oe_e">í</span>
827 <ul class="oe_dropdown_menu">
828 <t t-if="widget.view.is_action_enabled('edit')"><li><a type="edit">Edit</a></li></t>
829 <t t-if="widget.view.is_action_enabled('delete')"><li><a type="delete">Delete</a></li></t>
830 <li><ul class="oe_kanban_colorpicker" data-field="color"/></li>
831 </ul>
832 </div>
833 <!-- <div class="oe_kanban_details"> -->
834 <div class="oe_kanban_content">
835 <div class="oe_kanban_project_list">
836 <h4>
837 <a type="open">
838 <t t-if="record.code.raw_value" style="margin-right: 10px">[<field name="code" />] </t> <field name="name"/>
839 </a>
840 </h4>
841 <div name="tags"/>
842 <ul>
843 <li>Status: <field name="status"></field></li>
844 <li>Rate: <field name="list_price"></field></li>
845 </ul>
846 </div>
847 <div class="oe_kanban_bottom_right">
848 <a t-if="record.status.raw_value === 'available'" type="object" string="Available" name="set_room_status_occupied" class="oe_kanban_status oe_kanban_status_green "> </a>
849 <a t-if="record.status.raw_value === 'occupied'" type="object" string="occupied" name="set_room_status_available" class="oe_kanban_status oe_kanban_status_red " > </a>
850 </div>
851 </div>
852 </div>
853 </t>
854 </templates>
855 </kanban>
856 </field>
857 </record>
858
859 <record model="ir.actions.act_window" id="action_hotel_room_form">
860 <field name="name">Hotel Room</field>
861 <field name="res_model">hotel.room</field>
862 <field name="view_type">form</field>
863 <field name="view_mode">kanban,tree,form</field>
864 </record>
865
866 <menuitem name="Rooms"
867 id="menu_open_hotel_room_form"
868 action="action_hotel_room_form"
869 sequence="5"
870 parent="hotel.menu_hotel_room"/>
871
872 <!-- Services -->
873 <record model="ir.ui.view" id="view_hotel_service_type_form">
874 <field name="name">hotel.service_type.form</field>
875 <field name="model">hotel.service.type</field>
876 <field name="arch" type="xml">
877 <form string="Service Type" version="7.0">
878 <sheet>
879 <group>
880 <field name="name" select="1"/>
881 <field name="parent_id" domain="[('isservicetype','=',True)]" select="1"/>
882 </group>
883 </sheet>
884 </form>
885 </field>
886 </record>
887 <record model="ir.ui.view" id="view_hotel_service_type_tree">
888 <field name="name">hotel.service_type.tree</field>
889 <field name="model">hotel.service.type</field>
890 <field name="arch" type="xml">
891 <tree string="Service Type">
892 <field name="complete_name"/>
893 </tree>
894 </field>
895 </record>
896 <record model="ir.actions.act_window" id="open_hotel_service_type_form_tree">
897 <field name="name">Service Type</field>
898 <field name="res_model">hotel.service.type</field>
899 <field name="view_type">form</field>
900 <field name="view_mode">tree,form</field>
901 </record>
902 <menuitem id="menu_hotel_service" name="Services" parent="hotel.hotel_configuration_menu" sequence="2"/>
903 <menuitem name="Service Types"
904 id="menu_open_hotel_service_type_form_tree"
905 action="open_hotel_service_type_form_tree"
906 sequence="9"
907 parent="hotel.menu_hotel_service"/>
908
909 <record model="ir.ui.view" id="view_hotel_services_form">
910 <field name="name">.hotel.services.form</field>
911 <field name="model">hotel.services</field>
912 <field name="arch" type="xml">
913 <form string="Hotel Services" version="7.0">
914 <sheet>
915 <h1>
916 <label string="Service" />
917 <field name="name" select="1"/>
918 </h1>
919 <group>
920 <field name="default_code" select="1" />
921 </group>
922 <notebook>
923 <page string="Information">
924 <group>
925 <group colspan="4" col="4">
926 <field name="type" select="2"/>
927 <!-- <field name="procure_method"/> -->
928 <field name="state" select="2"/>
929 <field name="categ_id" domain="[('isservicetype','=',True)]" select="1"/>
930 <field name="product_manager" select="2"/>
931 <field name="uom_id"/>
932 <field name="uom_po_id"/>
933 </group>
934 </group>
935 <newline/>
936 <separator colspan='4' string="Supplier Taxes"/>
937 <field name="supplier_taxes_id" colspan="4" nolabel='1' help='List of supplier taxes related to the service provided by hotel.'/>
938 <newline/>
939 <separator colspan='4' string="Customer Taxes"/>
940 <field name="taxes_id" colspan="4" nolabel='1' help='Customer taxes applied on the service.'/>
941 </page>
942 <page string="Procurement">
943 <group colspan="4" col="4">
944 <!-- <field name="supply_method"/> -->
945 <field name="active" select="2"/>
946 <field name="list_price"/>
947 <field name="cost_method"/>
948 <field name="sale_ok" select="2"/>
949 <field name="standard_price"/>
950 <field name="rental" select="2"/>
951 <field name="uos_id" />
952 <field name="uos_coeff" />
953 </group>
954 <newline />
955 <group>
956 <separator string="Suplliers" />
957 <field name="seller_ids" colspan="4" nolabel="1" widget="one2many_list"/>
958 </group>
959 </page>
960 <page string="Descriptions">
961 <separator string="Description" />
962 <field name="description" colspan="4" nolabel="1" />
963 <separator string="Sale Description"/>
964 <field name="description_sale" colspan="4" nolabel="1"/>
965 <separator string="Purchase Description"/>
966 <field name="description_purchase" colspan="4" nolabel="1"/>
967 </page>
968 </notebook>
969 </sheet>
970 </form>
971 </field>
972 </record>
973
974 <record model="ir.ui.view" id="view_hotel_services_search">
975 <field name="name">hotel.services.search</field>
976 <field name="model">hotel.services</field>
977 <field name="arch" type="xml">
978 <search string="Hotel Services" >
979 <field name="name" />
980 <field name="categ_id" select="1"/>
981 <field name="list_price" string="Service rate"/>
982 <newline/>
983 <group expand="0" string="Group By...">
984 <filter name="categ_id" string="Catagory" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'categ_id'}" />
985 </group>
986 </search>
987 </field>
988 </record>
989
990 <record model="ir.ui.view" id="view_hotel_services_tree">
991 <field name="name">hotel.services.tree</field>
992 <field name="model">hotel.services</field>
993 <field name="arch" type="xml">
994 <tree string="Hotel Services" >
995 <field name="name" />
996 <field name="categ_id" select="1"/>
997 <field name="list_price" string="Service rate"/>
998 </tree>
999 </field>
1000 </record>
1001 <record model="ir.actions.act_window" id="action_hotel_services_form">
1002 <field name="name">Hotel Services</field>
1003 <field name="res_model">hotel.services</field>
1004 <field name="view_type">form</field>
1005 <field name="view_mode">tree,form</field>
1006 </record>
1007
1008 <menuitem name="Services"
1009 id="menu_open_hotel_services_form"
1010 action="action_hotel_services_form"
1011 sequence="8"
1012 parent="hotel.menu_hotel_service"/>
1013
1014 <!--========================================================
1015 Hotel Folio
1016 ========================================================-->
1017 <record model="ir.ui.view" id="view_hotel_folio1_form">
1018 <field name="name">hotel.folio.form</field>
1019 <field name="model">hotel.folio</field>
1020 <field name="arch" type="xml">
1021 <form string="Folio" version="7.0">
1022 <header>
1023 <button name="order_confirm" string="Confirm Folio" states="draft" icon="gtk-apply" class="oe_highlight"/>
1024 <button name="invoice_recreate" string="Recreate Invoice" states="invoice_except" icon="gtk-redo"/>
1025 <button name="invoice_corrected" string="Invoice Corrected" states="invoice_except" icon="gtk-paste-v"/>
1026 <button name="ship_recreate" string="Recreate Procurement" states="shipping_except" icon="gtk-redo"/>
1027 <button name="ship_corrected" string="Procurement Corrected" states="shipping_except" icon="gtk-paste-v"/>
1028 <button name="manual_invoice" states="manual" string="Create Invoice" icon="gtk-new"/>
1029 <button name="ship_cancel" string="Cancel Folio" states="shipping_except" icon="gtk-cancel" class="oe_highlight" />
1030 <button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object" icon="gtk-file"/>
1031 <button name="action_cancel" string="Cancel Folio" states="manual,progress" type="object" icon="gtk-cancel"/>
1032 <button name="cancel" string="Cancel Folio" states="draft" icon="gtk-cancel"/>
1033 <button name="invoice_cancel" string="Cancel Folio" states="invoice_except" icon="gtk-cancel"/>
1034 <field name="state" select="2" widget="statusbar" statusbar_visible="draft,sent,invoiced,done"/>
1035 </header>
1036 <sheet>
1037 <label string="Folio Number"/>
1038 <h1>
1039 <field name="name" colspan="4"/>
1040 </h1>
1041 <group colspan="4" col="4">
1042 <field name="date_order"/>
1043 <field name="invoiced"/>
1044 <field name="shop_id" string="Branch"/>
1045 </group>
1046 <notebook colspan="4">
1047 <page string="Folio">
1048 <group colspan="4" col="4">
1049 <field name="partner_id" on_change="onchange_partner_id(partner_id)" required="1" string="Guest Name"/>
1050 <field name="partner_invoice_id" domain="[('parent_id','=',partner_id)]" />
1051 <field name="pricelist_id" domain="[('type','=','sale')]" />
1052 <field name="project_id"/>
1053 <field name="partner_shipping_id" domain="[('parent_id','=',partner_id)]" invisible="1" />
1054 </group>
1055 <newline/>
1056 <group colspan="4" col="6">
1057 <field name="checkin_date" on_change="onchange_dates(checkin_date,checkout_date)" />
1058 <field name="checkout_date" on_change="onchange_dates(checkin_date,checkout_date)"/>
1059 <field name="duration" on_change="onchange_dates(checkin_date,False,duration)"/>
1060 </group>
1061 <separator string="Room Lines" colspan="4"/>
1062 <field name="room_lines" colspan="4" string="Room Line" default_get="{'checkin_date': checkin_date,'checkout_date':checkout_date}" nolabel="1">
1063 <form string="Room Line" version="7.0">
1064 <notebook>
1065 <page string="Folio Line">
1066 <group>
1067 <field name="checkin_date"/>
1068 <field name="checkout_date" on_change="on_change_checkout(checkin_date,checkout_date)" />
1069 <separator string="Automatic Declaration" colspan="4"/>
1070 <field name="product_uom_qty"
1071 on_change="product_id_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, False, False, parent.date_order)"
1072 context="{'partner_id':parent.partner_id,'quantity':product_uom_qty,'pricelist':parent.pricelist_id,'shop':parent.shop_id,'uom':product_uom}"
1073 invisible="1"/>
1074 <field name="product_uom"
1075 on_change="product_uom_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, False, False, parent.date_order)"
1076 string="Rent(UOM)"/>
1077 <field name="product_id"
1078 on_change="product_id_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, False, True, parent.date_order)"
1079 context="{'partner_id':parent.partner_id,'quantity':product_uom_qty,'pricelist':parent.pricelist_id,'shop':parent.shop_id,'uom':product_uom}"
1080 colspan="4" select="1" domain="[('isroom','=',True)]" string="Room No"/>
1081 </group>
1082 <separator string="Manual Description"
1083 colspan="4" />
1084 <field name="name" colspan="4" select="2" placeholder="---Description---"/>
1085 <group>
1086 <field name="price_unit" select="2" string="Rent"/>
1087 <field name="discount"/>
1088 <newline/>
1089 <field name="tax_id" colspan="4" nolabel="1"/>
1090 <separator string="States" colspan="4"/>
1091 <field name="state" select="2"/>
1092 <field name="invoiced" select="2"/>
1093 </group>
1094 </page>
1095 <page string="Extra Info">
1096 <group>
1097 <field name="product_uos_qty"/>
1098 <field name="product_uos" />
1099 <field name="address_allotment_id" select="2"/>
1100 </group>
1101 <!-- <separator string="Properties" colspan="4"/> -->
1102 </page>
1103 <page string="History">
1104 <separator string="Invoice Lines" colspan="4"/>
1105 <field name="invoice_lines" colspan="4" nolabel="1"/>
1106 </page>
1107 </notebook>
1108 </form>
1109 <tree string = "Room Line">
1110 <field name="name"/>
1111 <field name="checkin_date"/>
1112 <field name="checkout_date"/>
1113 <field name="product_id" string="Room No"/>
1114 <field name="product_uom" string="Rent(UOM)"/>
1115 <field name="price_unit" string="Rent"/>
1116 <field name="price_subtotal"/>
1117 <field name="state"/>
1118 </tree>
1119 </field>
1120 <separator string="Service Lines" colspan="4"/>
1121 <field name="service_lines" colspan="4" string = "Service Line" nolabel="1">
1122 <form string="Service Line" version="7.0">
1123 <notebook>
1124 <page string="Service Line">
1125 <separator string="Automatic Declaration" colspan="4"/>
1126 <group>
1127 <field name="product_uom_qty"
1128 on_change="product_id_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, False, False, parent.date_order)"
1129 context="{'partner_id':parent.partner_id,'quantity':product_uom_qty,'pricelist':parent.pricelist_id,'shop':parent.shop_id,'uom':product_uom}"
1130 select="1"/>
1131 <field name="product_uom"
1132 on_change="product_uom_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, False, False, parent.date_order)"
1133 />
1134 <field name="product_id"
1135 on_change="product_id_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, False, True, parent.date_order)"
1136 context="{'partner_id':parent.partner_id,'quantity':product_uom_qty,'pricelist':parent.pricelist_id,'shop':parent.shop_id,'uom':product_uom}"
1137 select="1" domain="[('isservice','=',True)]" />
1138 </group>
1139 <separator string="Manual Description"
1140 colspan="4"/>
1141 <field name="name" colspan="4" select="2" placeholder="---Description---"/>
1142 <group>
1143 <field name="price_unit" select="2"/>
1144 <field name="discount"/>
1145 </group>
1146 <newline/>
1147 <field name="tax_id" colspan="4"/>
1148 <group>
1149 <separator string="States" colspan="4"/>
1150 <field name="state" select="2"/>
1151 <field name="invoiced" select="2"/>
1152 </group>
1153 </page>
1154 <page string="Extra Info">
1155 <group>
1156 <field name="product_uos_qty"/>
1157 <field name="product_uos" />
1158 <field name="address_allotment_id" select="2"/>
1159 </group>
1160 <!-- <separator string="Properties" colspan="4"/> -->
1161 </page>
1162 <page string="History">
1163 <separator string="Invoice Lines" colspan="4"/>
1164 <field name="invoice_lines" colspan="4" nolabel="1"/>
1165 </page>
1166 </notebook>
1167 </form>
1168 <tree string="Service Line">
1169 <field name="name"/>
1170 <field name="product_id" />
1171 <field name="product_uom_qty"/>
1172 <field name="price_unit"/>
1173 <field name="price_subtotal"/>
1174 <field name="state"/>
1175 </tree>
1176 </field>
1177 <group colspan="2" class="oe_subtotal_footer oe_right">
1178 <field name="amount_untaxed" sum="Untaxed amount" widget='monetary' />
1179 <field name="amount_tax" widget='monetary'/>
1180 <div class="oe_subtotal_footer_separator oe_inline">
1181 <label for="amount_total" />
1182 <button name="button_dummy" string="Compute" states="draft" type="object" icon="terp-sale" class="oe_highlight"/>
1183 </div>
1184 <field name="amount_total" nolabel="1" sum="Total amount" widget='monetary'/>
1185 </group>
1186 <div class="oe_clear"/>
1187 </page>
1188 <page string="Other data">
1189 <group>
1190 <field name="user_id"/>
1191 <field name="order_policy" invisible="1"/>
1192 <field name="hotel_policy" attrs="{'readonly':[('state','not in',('draft'))]}"/>
1193 <field name="client_order_ref" />
1194 </group>
1195 </page>
1196 <page string="History">
1197 <separator string="Related invoices" colspan="4"/>
1198 <field name="invoice_ids" colspan="4" nolabel="1"/>
1199 </page>
1200 </notebook>
1201 </sheet>
1202 </form>
1203 </field>
1204 </record>
1205 <record model="ir.ui.view" id="view_hotel_folio1_tree">
1206 <field name="name">hotel.folio.tree</field>
1207 <field name="model">hotel.folio</field>
1208 <field name="arch" type="xml">
1209 <tree string="Hotel Folio" colors="blue:state == 'draft';gray:state == 'done'">
1210 <field name="checkin_date" />
1211 <field name="checkout_date" />
1212 <field name="name" select="1"/>
1213 <field name="partner_id" select="1"/>
1214 <field name="date_order" select="1"/>
1215 <field name="state"/>
1216 <field name="amount_total" sum="Total amount"/>
1217 </tree>
1218 </field>
1219 </record>
1220
1221 <record model="ir.ui.view" id="hotel_folio_calendar_view">
1222 <field name="name">Hotel- Folios Calendar</field>
1223 <field name="model">hotel.folio</field>
1224 <field name="arch" type="xml">
1225 <calendar string="Folios" date_start="checkin_date" color="user_id" date_stop="checkout_date">
1226 <field name="name"/>
1227 <field name="partner_id"/>
1228 <field name="duration"/>
1229 </calendar>
1230 </field>
1231 </record>
1232
1233 <record model="ir.actions.act_window" id="open_hotel_folio1_form_tree_all">
1234 <field name="name">Hotel Folio</field>
1235 <field name="res_model">hotel.folio</field>
1236 <field name="view_type">form</field>
1237 <field name="view_mode">tree,form,calendar</field>
1238 </record>
1239
1240 <menuitem id="menu_all_folio" name="Folio" parent="hotel.hotel_management_menu" sequence="4"/>
1241 <menuitem name="Generate Folio"
1242 id="menu_open_hotel_folio1_form_tree_all"
1243 action="open_hotel_folio1_form_tree_all"
1244 sequence="5"
1245 parent ="menu_all_folio"/>
1246
1247 <!-- Categories for Room, Amenities, Services -->
1248 <record model="ir.actions.act_window" id="hotel_room_category_action">
1249 <field name="name">Rooms by Category</field>
1250 <field name="type">ir.actions.act_window</field>
1251 <field name="res_model">product.category</field>
1252 <field name="domain">[('parent_id','=',False),('isroomtype','=',True)]</field>
1253 <field name="view_type">tree</field>
1254 <field name="view_id" ref="product.product_category_tree_view"/>
1255 </record>
1256 <menuitem name="Room by Category"
1257 id="menu_hotel_room_category_action"
1258 action="hotel_room_category_action"
1259 sequence="7"
1260 parent="hotel.menu_hotel_room"/>
1261
1262 <record model="ir.actions.act_window" id="hotel_amenity_category_action">
1263 <field name="name">Amenities by Category</field>
1264 <field name="type">ir.actions.act_window</field>
1265 <field name="res_model">product.category</field>
1266 <field name="domain">[('parent_id','=',False),('isamenitype','=',True)]</field>
1267 <field name="view_type">tree</field>
1268 <field name="view_id" ref="product.product_category_tree_view"/>
1269 </record>
1270 <menuitem name="Amenities by Category"
1271 id="menu_hotel_amenity_category_action"
1272 action="hotel_amenity_category_action"
1273 sequence="4"
1274 parent="hotel.menu_amenity"/>
1275
1276 <record model="ir.actions.act_window" id="hotel_service_category_action">
1277 <field name="name">Services by Category</field>
1278 <field name="type">ir.actions.act_window</field>
1279 <field name="res_model">product.category</field>
1280 <field name="domain">[('parent_id','=',False),('isservicetype','=',True)]</field>
1281 <field name="view_type">tree</field>
1282 <field name="view_id" ref="product.product_category_tree_view"/>
1283 </record>
1284 <menuitem name="Services by Category"
1285 id="menu_hotel_service_category_action"
1286 action="hotel_service_category_action"
1287 sequence="10"
1288 parent="hotel.menu_hotel_service"/>
1289
1290 </data>
1291</openerp>>>>>>>> MERGE-SOURCE
4401292
=== added file 'hotel/i18n/fr.po'
--- hotel/i18n/fr.po 1970-01-01 00:00:00 +0000
+++ hotel/i18n/fr.po 2014-09-28 13:18:16 +0000
@@ -0,0 +1,752 @@
1# Translation of OpenERP Server.
2# This file contains the translation of the following modules:
3# * hotel
4#
5msgid ""
6msgstr ""
7"Project-Id-Version: OpenERP Server 5.0.6\n"
8"Report-Msgid-Bugs-To: support@openerp.com\n"
9"POT-Creation-Date: 2009-11-26 07:33:36+0000\n"
10"PO-Revision-Date: 2014-07-19 13:06-0000\n"
11"Last-Translator: <>\n"
12"Language-Team: \n"
13"MIME-Version: 1.0\n"
14"Content-Type: text/plain; charset=UTF-8\n"
15"Content-Transfer-Encoding: 8bit\n"
16"Plural-Forms: \n"
17"Language: fr\n"
18"X-Generator: Poedit 1.6.6\n"
19
20#. module: hotel
21#: model:ir.ui.menu,name:hotel.menu_open_hotel_folio1_form_tree
22msgid "Generate Folio"
23msgstr "Générer Classeur"
24
25#. module: hotel
26#: view:hotel.folio:0
27msgid "Recreate Procurement"
28msgstr "Recréer Approvisionnement"
29
30#. module: hotel
31#: field:hotel.folio,checkout_date:0 field:hotel_folio.line,checkout_date:0
32msgid "Check Out"
33msgstr "Départ"
34
35#. module: hotel
36#: model:ir.ui.menu,name:hotel.menu_action_hotel_room_amenities_view_form
37msgid "Amenities"
38msgstr "Commodités"
39
40#. module: hotel
41#: constraint:ir.actions.act_window:0
42msgid "Invalid model name in the action definition."
43msgstr "Nom du modèle invalide dans la définition de l'action"
44
45#. module: hotel
46#: field:hotel.floor,name:0
47msgid "Floor Name"
48msgstr "Nom de l'étage"
49
50#. module: hotel
51#: field:product.product,iscategid:0
52msgid "Is categ id"
53msgstr "Is categ id"
54
55#. module: hotel
56#: model:ir.model,name:hotel.model_hotel_room_amenities_type
57msgid "amenities Type"
58msgstr "Type de Commodités"
59
60#. module: hotel
61#: view:hotel.room_amenities:0
62msgid "Amenity rate"
63msgstr "Tarif Commodités"
64
65#. module: hotel
66#: field:product.category,isservicetype:0
67msgid "Is Service Type"
68msgstr "Es un Type de Service"
69
70#. module: hotel
71#: view:hotel.folio:0
72msgid "Set to Draft"
73msgstr "Mettre en brouillon"
74
75#. module: hotel
76#: rml:folio.total:0
77msgid "to"
78msgstr "A"
79
80#. module: hotel
81#: wizard_view:hotel.folio.total_folio,init:0
82msgid "Folio List"
83msgstr "Liste Classeur"
84
85#. module: hotel
86#: model:ir.ui.menu,name:hotel.menu_open_hotel_services_form
87msgid "Services"
88msgstr "Services"
89
90#. module: hotel
91#: view:hotel.folio:0
92msgid "Cancel Order"
93msgstr "Annuler commande"
94
95#. module: hotel
96#: view:hotel.folio:0
97msgid "Confirm Order"
98msgstr "Confirmer Commande"
99
100#. module: hotel
101#: model:product.category,name:hotel.hotel_room_amenities_type_0_product_category
102msgid "All Aminities"
103msgstr "Toutes les Commodités"
104
105#. module: hotel
106#: view:hotel.folio:0
107msgid "Notes"
108msgstr "Notes"
109
110#. module: hotel
111#: view:hotel.floor:0
112msgid " Hotel Floor"
113msgstr "Etage de l'hotel"
114
115#. module: hotel
116#: rml:folio.total:0
117msgid "Customer Name"
118msgstr "Nom Client"
119
120#. module: hotel
121#: field:product.product,isroom:0
122msgid "Is Room"
123msgstr "Es une Chambre"
124
125#. module: hotel
126#: model:product.category,name:hotel.hotel_service_type_1_product_category
127msgid "Fixed"
128msgstr "Fixe"
129
130#. module: hotel
131#: model:ir.model,name:hotel.model_hotel_service_line
132msgid "hotel Service line"
133msgstr "Prestations de l'Hotel"
134
135#. module: hotel
136#: model:ir.ui.menu,name:hotel.menu_open_hotel_folio1_form_tree_all
137msgid "All Folio"
138msgstr "Tous les Classeurs"
139
140#. module: hotel
141#: view:hotel.room:0 field:hotel.room,room_amenities:0
142msgid "Room Amenities"
143msgstr "Commodités de Chambre"
144
145#. module: hotel
146#: view:hotel.service_type:0
147#: model:ir.actions.act_window,name:hotel.open_hotel_service_type_form_tree
148#: model:ir.model,name:hotel.model_hotel_service_type
149msgid "Service Type"
150msgstr "Type de Service"
151
152#. module: hotel
153#: field:hotel_folio.line,order_line_id:0
154msgid "order_line_id"
155msgstr "order_line_id"
156
157#. module: hotel
158#: constraint:product.category:0
159msgid "Error ! You can not create recursive categories."
160msgstr "Erreur! Impossible de créer des Tables recurssives"
161
162#. module: hotel
163#: model:ir.model,name:hotel.model_hotel_folio
164msgid "hotel folio new"
165msgstr "Nouveau Classeur"
166
167#. module: hotel
168#: view:hotel.folio:0
169msgid "Extra Info"
170msgstr "Infos Supplémentaires"
171
172#. module: hotel
173#: model:ir.actions.act_window,name:hotel.hotel_room_category_action
174msgid "Rooms by Category"
175msgstr "Chambres par Catégories"
176
177#. module: hotel
178#: model:product.category,name:hotel.hotel_room_amenities_type_3_product_category
179msgid "Single Bed"
180msgstr "Lit Simple"
181
182#. module: hotel
183#: model:ir.ui.menu,name:hotel.menu_open_hotel_service_type_form_tree
184msgid "Service Types"
185msgstr "Types de Services"
186
187#. module: hotel
188#: model:product.category,name:hotel.hotel_room_amenities_type_2_product_category
189msgid "Tables"
190msgstr "Tables"
191
192#. module: hotel
193#: view:hotel.folio:0
194msgid "Folio"
195msgstr "Classeur"
196
197#. module: hotel
198#: rml:folio.total:0
199msgid "From"
200msgstr "De"
201
202#. module: hotel
203#: view:hotel.folio:0
204msgid "Recreate Invoice"
205msgstr "Recréer Facture"
206
207#. module: hotel
208#: field:product.category,isamenitype:0
209msgid "Is amenities Type"
210msgstr "Es un Type de Commodité"
211
212#. module: hotel
213#: view:hotel.room:0
214msgid " Room Amenities"
215msgstr "Commodités de Chambre"
216
217#. module: hotel
218#: field:hotel.folio,checkin_date:0 field:hotel_folio.line,checkin_date:0
219msgid "Check In"
220msgstr "Arrivé"
221
222#. module: hotel
223#: model:ir.actions.act_window,name:hotel.hotel_amenity_category_action
224#: model:ir.ui.menu,name:hotel.menu_hotel_amenity_category_action
225msgid "Amenities by Category"
226msgstr "Commodités par Catégorie"
227
228#. module: hotel
229#: field:hotel.services,service_id:0
230msgid "Service_id"
231msgstr "Service_id"
232
233#. module: hotel
234#: view:hotel.folio:0
235msgid "Invoice Lines"
236msgstr "Ligne de facture"
237
238#. module: hotel
239#: view:hotel.folio:0
240msgid "Untaxed amount"
241msgstr "Montant non taxé"
242
243#. module: hotel
244#: field:hotel.room_amenities_type,cat_id:0 field:hotel.room_type,cat_id:0
245#: field:hotel.service_type,ser_id:0
246msgid "category"
247msgstr "Catégorie"
248
249#. module: hotel
250#: view:hotel.room:0 field:hotel.room,avail_status:0
251msgid "Room Status"
252msgstr "Situation Chambre"
253
254#. module: hotel
255#: field:hotel.room_amenities,room_categ_id:0
256msgid "Product Category"
257msgstr "Catégorie de Produit"
258
259#. module: hotel
260#: view:hotel.folio:0
261msgid "Manual Description"
262msgstr "Description"
263
264#. module: hotel
265#: model:product.category,name:hotel.hotel_service_type_0_product_category
266msgid "All Services"
267msgstr "Tous les Services"
268
269#. module: hotel
270#: view:hotel.room:0
271#: model:ir.actions.act_window,name:hotel.action_hotel_room_form
272#: model:ir.model,name:hotel.model_hotel_room
273msgid "Hotel Room"
274msgstr "Chambres d'Hotel"
275
276#. module: hotel
277#: rml:folio.total:0
278msgid "Folio No."
279msgstr "Classeur No."
280
281#. module: hotel
282#: view:hotel.folio:0
283msgid "Inventory Moves"
284msgstr "Mouvement Inventaire"
285
286#. module: hotel
287#: model:ir.ui.menu,name:hotel.hotel_configuration_menu
288msgid "Configuration"
289msgstr "Configuration"
290
291#. module: hotel
292#: view:hotel.folio:0
293msgid "Total amount"
294msgstr "Montant Total"
295
296#. module: hotel
297#: view:hotel.floor:0
298msgid " Hotel Floors"
299msgstr "Etages de l'Hotel"
300
301#. module: hotel
302#: constraint:ir.ui.view:0
303msgid "Invalid XML for View Architecture!"
304msgstr "XML invalide pour cette vue!"
305
306#. module: hotel
307#: field:hotel.folio,order_id:0
308msgid "order_id"
309msgstr "order_id"
310
311#. module: hotel
312#: field:hotel.room_amenities,amenity_rate:0
313msgid "Amenity Rate"
314msgstr "Tarif Commodités"
315
316#. module: hotel
317#: view:hotel.room:0 view:hotel.room_amenities:0 view:hotel.services:0
318msgid "Procurement"
319msgstr "Approvisionnement"
320
321#. module: hotel
322#: field:hotel.floor,sequence:0
323msgid "Sequence"
324msgstr "Séquence"
325
326#. module: hotel
327#: model:ir.ui.menu,name:hotel.menu_action_hotel_room_amenities_type_view_form
328msgid "Amenity Types"
329msgstr "Type de Commodités"
330
331#. module: hotel
332#: model:ir.ui.menu,name:hotel.menu_hotel_room_category_action
333msgid "Room by Category"
334msgstr "Chambre par Catégorie"
335
336#. module: hotel
337#: field:hotel.room_amenities,rcateg_id:0
338msgid "Amenity Catagory"
339msgstr "Catégorie Commodité"
340
341#. module: hotel
342#: view:hotel.folio:0
343msgid "Other data"
344msgstr "Autres Info"
345
346#. module: hotel
347#: field:hotel.room,max_child:0
348msgid "Max Child"
349msgstr "Max Enfant"
350
351#. module: hotel
352#: view:hotel.room:0 view:hotel.room_amenities:0 view:hotel.services:0
353msgid "Descriptions"
354msgstr "Descriptions"
355
356#. module: hotel
357#: wizard_field:hotel.folio.total_folio,init,date_start:0
358msgid "Start Date"
359msgstr "Date Début"
360
361#. module: hotel
362#: model:ir.model,name:hotel.model_hotel_folio_line
363msgid "hotel folio1 room line"
364msgstr ""
365
366#. module: hotel
367#: field:product.category,isroomtype:0
368msgid "Is Room Type"
369msgstr "Es un type de Chambre"
370
371#. module: hotel
372#: rml:folio.total:0
373msgid "Total Collection"
374msgstr ""
375
376#. module: hotel
377#: view:hotel.folio:0
378msgid "Automatic Declaration"
379msgstr "Déclaration Automatique"
380
381#. module: hotel
382#: view:hotel.folio:0
383msgid "Rent(UOM)"
384msgstr "Unités (UOM)"
385
386#. module: hotel
387#: model:ir.model,name:hotel.model_hotel_services
388msgid "Hotel Services and its charges"
389msgstr "Services and charges comprises"
390
391#. module: hotel
392#: view:hotel.folio:0
393msgid "Procurement Corrected"
394msgstr "Approvisionnement correct"
395
396#. module: hotel
397#: view:hotel.folio:0
398msgid "Room Line"
399msgstr "Chambre"
400
401#. module: hotel
402#: view:hotel.folio:0
403msgid "Room No"
404msgstr "Chambre No"
405
406#. module: hotel
407#: view:hotel.services:0
408msgid "Service rate"
409msgstr "Tarif Service"
410
411#. module: hotel
412#: model:ir.actions.act_window,name:hotel.open_hotel_folio1_form_tree
413#: model:ir.actions.act_window,name:hotel.open_hotel_folio1_form_tree_all
414msgid "Hotel Folio"
415msgstr "Classeur Hotel"
416
417#. module: hotel
418#: field:hotel.folio,room_lines:0 field:hotel.folio,service_lines:0
419msgid "unknown"
420msgstr "Inconnu"
421
422#. module: hotel
423#: view:hotel.folio:0
424msgid "Guest Name"
425msgstr "Client"
426
427#. module: hotel
428#: view:hotel.folio:0
429msgid "Service Line"
430msgstr "Services"
431
432#. module: hotel
433#: view:hotel.room_amenities_type:0
434#: model:ir.actions.act_window,name:hotel.action_hotel_room_amenities_type_view_form
435msgid "Hotel Room Amenities Type"
436msgstr "Type de Commodités de Chambre"
437
438#. module: hotel
439#: view:hotel.folio:0
440msgid "Folio Line"
441msgstr "Ligne Classeur"
442
443#. module: hotel
444#: view:hotel.folio:0
445msgid "Date"
446msgstr "Date"
447
448#. module: hotel
449#: view:hotel.folio:0 view:hotel.room:0 view:hotel.room_amenities:0
450#: view:hotel.services:0
451msgid "Properties"
452msgstr "Propriété"
453
454#. module: hotel
455#: view:hotel.room_amenities:0 view:hotel.services:0
456msgid "Purchase Description"
457msgstr "Description Achat"
458
459#. module: hotel
460#: view:hotel.folio:0
461msgid "Compute"
462msgstr "Calculer"
463
464#. module: hotel
465#: model:ir.model,name:hotel.model_hotel_room_amenities
466msgid "Room amenities"
467msgstr "Commodités de Chambre"
468
469#. module: hotel
470#: model:product.category,name:hotel.hotel_room_type_3_product_category
471msgid "No Room"
472msgstr "Pas de Chambre"
473
474#. module: hotel
475#: field:hotel_service.line,service_line_id:0
476msgid "service_line_id"
477msgstr "service_line_id"
478
479#. module: hotel
480#: model:product.category,name:hotel.hotel_room_amenities_type_1_product_category
481msgid "Beds"
482msgstr "Lits"
483
484#. module: hotel
485#: model:product.category,name:hotel.hotel_service_type_2_product_category
486msgid "Variable"
487msgstr "Variable"
488
489#. module: hotel
490#: field:hotel.room,floor_id:0
491msgid "Floor No"
492msgstr "Etage No"
493
494#. module: hotel
495#: view:hotel.services:0
496#: model:ir.actions.act_window,name:hotel.action_hotel_services_form
497msgid "Hotel Services"
498msgstr "Services de l'Hotel"
499
500#. module: hotel
501#: view:hotel.room_amenities:0
502#: model:ir.actions.act_window,name:hotel.action_hotel_room_amenities_view_form
503msgid "Hotel Room Amenities"
504msgstr "Commodités de Chambre"
505
506#. module: hotel
507#: view:hotel.folio:0
508msgid "History"
509msgstr "Historique"
510
511#. module: hotel
512#: model:ir.actions.act_window,name:hotel.open_hotel_floor_form_tree
513msgid "Floor Structure"
514msgstr "Structure Etage"
515
516#. module: hotel
517#: rml:folio.total:0
518msgid "Net Total :-"
519msgstr "Net Total :-"
520
521#. module: hotel
522#: view:hotel.folio:0
523msgid "Related invoices"
524msgstr "Factures Associées"
525
526#. module: hotel
527#: selection:hotel.room,avail_status:0
528msgid "Assigned"
529msgstr "Assigné"
530
531#. module: hotel
532#: selection:hotel.room,avail_status:0
533msgid "Unassigned"
534msgstr "Non-assigné"
535
536#. module: hotel
537#: model:ir.module.module,shortdesc:hotel.module_meta_information
538#: model:ir.ui.menu,name:hotel.hotel_management_menu
539msgid "Hotel Management"
540msgstr "Hotel Management"
541
542#. module: hotel
543#: wizard_button:hotel.folio.total_folio,init,end:0
544msgid "Cancel"
545msgstr "Annulé"
546
547#. module: hotel
548#: view:hotel.room:0 view:hotel.room_amenities:0 view:hotel.services:0
549msgid "Information"
550msgstr "Information"
551
552#. module: hotel
553#: constraint:ir.model:0
554msgid ""
555"The Object name must start with x_ and not contain any special character !"
556msgstr ""
557"Le nom de l'objet doit commencer par x_ et ne doit pas contenir de "
558"caractères spéciaux !"
559
560#. module: hotel
561#: field:hotel.room,product_id:0
562msgid "Product_id"
563msgstr "Product_id"
564
565#. module: hotel
566#: view:hotel.folio:0
567msgid "Hotel Folio1"
568msgstr "Hôtel Classeur 1"
569
570#. module: hotel
571#: view:hotel.room:0 model:ir.model,name:hotel.model_hotel_floor
572#: model:ir.ui.menu,name:hotel.menu_open_hotel_floor_form_tree
573msgid "Floor"
574msgstr "Etage"
575
576#. module: hotel
577#: model:product.category,name:hotel.hotel_room_type_0_product_category
578msgid "All Rooms"
579msgstr "Toutes les Chambres"
580
581#. module: hotel
582#: view:hotel.folio:0
583msgid "Create Invoice"
584msgstr "Créer Facture"
585
586#. module: hotel
587#: wizard_button:hotel.folio.total_folio,init,print_report:0
588msgid "Print Report"
589msgstr "Imprimer Etat"
590
591#. module: hotel
592#: model:ir.actions.report.xml,name:hotel.hotel_folio_details
593#: model:ir.actions.wizard,name:hotel.wizard_hotel_total
594msgid "Folio Total"
595msgstr "Total Classeur"
596
597#. module: hotel
598#: model:ir.actions.act_window,name:hotel.open_hotel_room_type_form_tree
599#: model:ir.model,name:hotel.model_hotel_room_type
600msgid "Room Type"
601msgstr "Type de Chambre"
602
603#. module: hotel
604#: view:hotel.room:0 view:hotel.room_amenities:0 view:hotel.services:0
605msgid "Description"
606msgstr "Description"
607
608#. module: hotel
609#: field:hotel_folio.line,folio_id:0 field:hotel_service.line,folio_id:0
610msgid "folio_id"
611msgstr "folio_id"
612
613#. module: hotel
614#: view:hotel.room_amenities:0 view:hotel.services:0
615msgid "Sale Description"
616msgstr "Description Vente"
617
618#. module: hotel
619#: model:product.category,name:hotel.hotel_room_amenities_type_4_product_category
620msgid "Double Bed"
621msgstr "Lit Double"
622
623#. module: hotel
624#: field:product.product,isservice:0
625msgid "Is Service id"
626msgstr "Es l'id du Service"
627
628#. module: hotel
629#: model:ir.ui.menu,name:hotel.menu_open_hotel_room_type_form_tree
630msgid "Room Types"
631msgstr "Type de Chambre"
632
633#. module: hotel
634#: rml:folio.total:0
635msgid "CheckOut"
636msgstr "Départ"
637
638#. module: hotel
639#: model:ir.actions.act_window,name:hotel.hotel_service_category_action
640#: model:ir.ui.menu,name:hotel.menu_hotel_service_category_action
641msgid "Services by Category"
642msgstr "Services par Catégorie"
643
644#. module: hotel
645#: model:ir.ui.menu,name:hotel.menu_open_hotel_room_form
646msgid "Rooms"
647msgstr "Chambres"
648
649#. module: hotel
650#: view:hotel.room:0
651msgid "Room rate"
652msgstr "Tarif Chambre"
653
654#. module: hotel
655#: wizard_field:hotel.folio.total_folio,init,date_end:0
656msgid "End Date"
657msgstr "Date Fin"
658
659#. module: hotel
660#: model:product.category,name:hotel.hotel_room_type_2_product_category
661msgid "Double"
662msgstr "Double"
663
664#. module: hotel
665#: rml:folio.total:0
666msgid "CheckIn"
667msgstr "Arrivée"
668
669#. module: hotel
670#: field:hotel.room,max_adult:0
671msgid "Max Adult"
672msgstr "Max Adulte"
673
674#. module: hotel
675#: model:ir.module.module,description:hotel.module_meta_information
676msgid ""
677"\n"
678" Module for Hotel/Resort/Property management. You can manage:\n"
679" * Configure Property\n"
680" * Hotel Configuration\n"
681" * Check In, Check out\n"
682" * Manage Folio\n"
683" * Payment\n"
684"\n"
685" Different reports are also provided, mainly for hotel statistics.\n"
686" "
687msgstr ""
688"\n"
689" Module Hotel/Property management. Fonctionnalités:\n"
690" * Configure Property\n"
691" * Configuration Hotel\n"
692" * Arrivées, Départs\n"
693" * Classeurs de Factures\n"
694" * Paiements\n"
695"\n"
696" Plusieurs rapports sont disponibles pour les statistiques Hotel.\n"
697" "
698
699#. module: hotel
700#: model:ir.ui.menu,name:hotel.hotel_report_menu
701msgid "Reports"
702msgstr "Rapports"
703
704#. module: hotel
705#: view:hotel.folio:0
706msgid "Related packings"
707msgstr "Package lié"
708
709#. module: hotel
710#: view:hotel.folio:0
711msgid "Folio No"
712msgstr "Classeur No"
713
714#. module: hotel
715#: view:hotel.room_type:0
716msgid " Hotel Room Type"
717msgstr "Type de Chambre d'Hotel"
718
719#. module: hotel
720#: view:hotel.folio:0
721msgid "Invoice Corrected"
722msgstr "Facture Corrigée"
723
724#. module: hotel
725#: model:ir.ui.menu,name:hotel.wizard_hotel_menu
726msgid "Hotel Folio Report"
727msgstr "Etat Classeur Facture"
728
729#. module: hotel
730#: view:hotel.folio:0
731msgid "States"
732msgstr "Situations"
733
734#. module: hotel
735#: model:product.category,name:hotel.hotel_room_type_1_product_category
736msgid "Single"
737msgstr "Seul"
738
739#. module: hotel
740#: constraint:product.product:0
741msgid "Error: Invalid ean code"
742msgstr "Erreur: Code EAN invalide"
743
744#. module: hotel
745#: view:hotel.folio:0
746msgid "Rent"
747msgstr "Louer"
748
749#. module: hotel
750#: rml:folio.total:0
751msgid "Total"
752msgstr "Total"
0753
=== modified file 'hotel/i18n/fr_BE.po' (properties changed: +x to -x)
=== modified file 'hotel/i18n/hotel.pot' (properties changed: +x to -x)
--- hotel/i18n/hotel.pot 2012-05-22 14:06:57 +0000
+++ hotel/i18n/hotel.pot 2014-09-28 13:18:16 +0000
@@ -4,754 +4,975 @@
4#4#
5msgid ""5msgid ""
6msgstr ""6msgstr ""
7"Project-Id-Version: OpenERP Server 5.0.6\n"7"Project-Id-Version: OpenERP Server 7.0\n"
8"Report-Msgid-Bugs-To: support@openerp.com\n"8"Report-Msgid-Bugs-To: \n"
9"POT-Creation-Date: 2009-11-26 07:33:36+0000\n"9"POT-Creation-Date: 2013-10-09 13:00+0000\n"
10"PO-Revision-Date: 2009-11-26 07:33:36+0000\n"10"PO-Revision-Date: 2013-10-09 18:33+0530\n"
11"Last-Translator: <>\n"11"Last-Translator: Anil Kesariya <a.kesariya.serpentcs@gmail.com>\n"
12"Language-Team: \n"12"Language-Team: \n"
13"MIME-Version: 1.0\n"13"MIME-Version: 1.0\n"
14"Content-Type: text/plain; charset=UTF-8\n"14"Content-Type: text/plain; charset=UTF-8\n"
15"Content-Transfer-Encoding: \n"15"Content-Transfer-Encoding: 8bit\n"
16"Plural-Forms: \n"16"Plural-Forms: \n"
1717
18#. module: hotel18#. module: hotel
19#: model:ir.ui.menu,name:hotel.menu_open_hotel_folio1_form_tree19#: model:ir.ui.menu,name:hotel.menu_open_hotel_folio1_form_tree_all
20msgid "Generate Folio"20msgid "Generate Folio"
21msgstr ""21msgstr "Generate Folio"
22
23#. module: hotel
24#: help:hotel.folio,room_lines:0
25msgid "Hotel room reservation detail."
26msgstr "Hotel room reservation detail."
2227
23#. module: hotel28#. module: hotel
24#: view:hotel.folio:029#: view:hotel.folio:0
25msgid "Recreate Procurement"30msgid "Recreate Procurement"
26msgstr ""31msgstr "Recreate Procurement"
2732
28#. module: hotel33#. module: hotel
29#: field:hotel.folio,checkout_date:034#: view:hotel.services:0
30#: field:hotel_folio.line,checkout_date:035msgid "Service"
31msgid "Check Out"36msgstr "Service"
32msgstr ""37
38#. module: hotel
39#: view:hotel.room:0
40#: model:ir.actions.act_window,name:hotel.action_hotel_room_form
41#: model:ir.model,name:hotel.model_hotel_room
42msgid "Hotel Room"
43msgstr "Hotel Room"
44
45#. module: hotel
46#: view:hotel.room:0
47#: view:hotel.room.amenities:0
48#: view:hotel.services:0
49msgid "Group By..."
50msgstr "Group By..."
3351
34#. module: hotel52#. module: hotel
35#: model:ir.ui.menu,name:hotel.menu_action_hotel_room_amenities_view_form53#: model:ir.ui.menu,name:hotel.menu_action_hotel_room_amenities_view_form
36msgid "Amenities"54msgid "Amenities"
37msgstr ""55msgstr "Amenities"
3856
39#. module: hotel57#. module: hotel
40#: constraint:ir.actions.act_window:058#: view:hotel.folio:0
41msgid "Invalid model name in the action definition."59msgid "Branch"
42msgstr ""60msgstr "Branch"
4361
44#. module: hotel62#. module: hotel
45#: field:hotel.floor,name:063#: field:hotel.floor,name:0
46msgid "Floor Name"64msgid "Floor Name"
47msgstr ""65msgstr "Floor Name"
4866
49#. module: hotel67#. module: hotel
50#: field:product.product,iscategid:068#: field:product.product,iscategid:0
51msgid "Is categ id"69msgid "Is categ id"
52msgstr ""70msgstr "Is categ id"
5371
54#. module: hotel72#. module: hotel
55#: model:ir.model,name:hotel.model_hotel_room_amenities_type73#: model:ir.model,name:hotel.model_hotel_room_amenities_type
56msgid "amenities Type"74msgid "amenities Type"
57msgstr ""75msgstr "amenities Type"
5876
59#. module: hotel77#. module: hotel
60#: view:hotel.room_amenities:078#: view:hotel.room.amenities:0
61msgid "Amenity rate"79msgid "Amenity rate"
62msgstr ""80msgstr "Amenity rate"
6381
64#. module: hotel82#. module: hotel
65#: field:product.category,isservicetype:083#: field:room.rent,price:0
66msgid "Is Service Type"84msgid "Room rent"
67msgstr ""85msgstr "Room rent"
86
87#. module: hotel
88#: view:hotel.folio:0
89msgid "Automatic Declaration"
90msgstr "Automatic Declaration"
6891
69#. module: hotel92#. module: hotel
70#: view:hotel.folio:093#: view:hotel.folio:0
71msgid "Set to Draft"94msgid "Set to Draft"
72msgstr ""95msgstr "Set to Draft"
7396
74#. module: hotel97#. module: hotel
75#: rml:folio.total:098#: model:ir.ui.menu,name:hotel.menu_hotel_service
76msgid "to"
77msgstr ""
78
79#. module: hotel
80#: wizard_view:hotel.folio.total_folio,init:0
81msgid "Folio List"
82msgstr ""
83
84#. module: hotel
85#: model:ir.ui.menu,name:hotel.menu_open_hotel_services_form99#: model:ir.ui.menu,name:hotel.menu_open_hotel_services_form
86msgid "Services"100msgid "Services"
87msgstr ""101msgstr "Services"
88102
89#. module: hotel103#. module: hotel
90#: view:hotel.folio:0104#: view:hotel.room.amenities:0
91msgid "Cancel Order"105msgid "Define supplier taxes if there any on the Amenity. "
92msgstr ""106msgstr "Define supplier taxes if there any on the Amenity. "
93
94#. module: hotel
95#: view:hotel.folio:0
96msgid "Confirm Order"
97msgstr ""
98107
99#. module: hotel108#. module: hotel
100#: model:product.category,name:hotel.hotel_room_amenities_type_0_product_category109#: model:product.category,name:hotel.hotel_room_amenities_type_0_product_category
101msgid "All Aminities"110msgid "All Aminities"
102msgstr ""111msgstr "All Aminities"
103112
104#. module: hotel113#. module: hotel
105#: view:hotel.folio:0114#: selection:hotel.folio,hotel_policy:0
106msgid "Notes"115msgid "On Booking"
107msgstr ""116msgstr "On Booking"
117
118#. module: hotel
119#: view:hotel.room:0
120#: view:hotel.room.amenities:0
121msgid "Suppliers"
122msgstr "Suppliers"
108123
109#. module: hotel124#. module: hotel
110#: view:hotel.floor:0125#: view:hotel.floor:0
111msgid " Hotel Floor"126msgid " Hotel Floor"
112msgstr ""127msgstr " Hotel Floor"
113128
114#. module: hotel129#. module: hotel
115#: rml:folio.total:0130#: help:hotel.room,floor_id:0
131msgid "At which floor the room is located."
132msgstr "At which floor the room is located."
133
134#. module: hotel
135#: report:folio.total:0
116msgid "Customer Name"136msgid "Customer Name"
117msgstr ""137msgstr "Customer Name"
118138
119#. module: hotel139#. module: hotel
120#: field:product.product,isroom:0140#: field:product.product,isroom:0
121msgid "Is Room"141msgid "Is Room"
122msgstr ""142msgstr "Is Room"
123143
124#. module: hotel144#. module: hotel
125#: model:product.category,name:hotel.hotel_service_type_1_product_category145#: model:product.category,name:hotel.hotel_service_type_1_product_category
126msgid "Fixed"146msgid "Fixed"
127msgstr ""147msgstr "Fixed"
128148
129#. module: hotel149#. module: hotel
130#: model:ir.model,name:hotel.model_hotel_service_line150#: model:ir.model,name:hotel.model_hotel_service_line
131msgid "hotel Service line"151msgid "hotel Service line"
132msgstr ""152msgstr "hotel Service line"
133
134#. module: hotel
135#: model:ir.ui.menu,name:hotel.menu_open_hotel_folio1_form_tree_all
136msgid "All Folio"
137msgstr ""
138153
139#. module: hotel154#. module: hotel
140#: view:hotel.room:0155#: view:hotel.room:0
141#: field:hotel.room,room_amenities:0156#: field:hotel.room,room_amenities:0
142msgid "Room Amenities"157msgid "Room Amenities"
143msgstr ""158msgstr "Room Amenities"
144159
145#. module: hotel160#. module: hotel
146#: view:hotel.service_type:0161#: view:hotel.service.type:0
147#: model:ir.actions.act_window,name:hotel.open_hotel_service_type_form_tree162#: model:ir.actions.act_window,name:hotel.open_hotel_service_type_form_tree
148#: model:ir.model,name:hotel.model_hotel_service_type163#: model:ir.model,name:hotel.model_hotel_service_type
149msgid "Service Type"164msgid "Service Type"
150msgstr ""165msgstr "Service Type"
151166
152#. module: hotel167#. module: hotel
153#: field:hotel_folio.line,order_line_id:0168#: field:hotel.folio,hotel_policy:0
169msgid "Hotel Policy"
170msgstr "Hotel Policy"
171
172#. module: hotel
173#: field:hotel.folio.line,order_line_id:0
154msgid "order_line_id"174msgid "order_line_id"
155msgstr ""175msgstr "order_line_id"
156
157#. module: hotel
158#: constraint:product.category:0
159msgid "Error ! You can not create recursive categories."
160msgstr ""
161176
162#. module: hotel177#. module: hotel
163#: model:ir.model,name:hotel.model_hotel_folio178#: model:ir.model,name:hotel.model_hotel_folio
164msgid "hotel folio new"179msgid "hotel folio new"
165msgstr ""180msgstr "hotel folio new"
166181
167#. module: hotel182#. module: hotel
168#: view:hotel.folio:0183#: view:hotel.folio:0
169msgid "Extra Info"184msgid "Extra Info"
170msgstr ""185msgstr "Extra Info"
171186
172#. module: hotel187#. module: hotel
173#: model:ir.actions.act_window,name:hotel.hotel_room_category_action188#: model:ir.actions.act_window,name:hotel.hotel_room_category_action
174msgid "Rooms by Category"189msgid "Rooms by Category"
175msgstr ""190msgstr "Rooms by Category"
191
192#. module: hotel
193#: view:hotel.room:0
194msgid "List of supplier taxes if there any on the defined room. "
195msgstr "List of supplier taxes if there any on the defined room. "
176196
177#. module: hotel197#. module: hotel
178#: model:product.category,name:hotel.hotel_room_amenities_type_3_product_category198#: model:product.category,name:hotel.hotel_room_amenities_type_3_product_category
179msgid "Single Bed"199msgid "Single Bed"
180msgstr ""200msgstr "Single Bed"
181201
182#. module: hotel202#. module: hotel
183#: model:ir.ui.menu,name:hotel.menu_open_hotel_service_type_form_tree203#: model:ir.ui.menu,name:hotel.menu_open_hotel_service_type_form_tree
184msgid "Service Types"204msgid "Service Types"
185msgstr ""205msgstr "Service Types"
186206
187#. module: hotel207#. module: hotel
188#: model:product.category,name:hotel.hotel_room_amenities_type_2_product_category208#: model:product.category,name:hotel.hotel_room_amenities_type_2_product_category
189msgid "Tables"209msgid "Tables"
190msgstr ""210msgstr "Tables"
191211
192#. module: hotel212#. module: hotel
193#: view:hotel.folio:0213#: view:hotel.folio:0
214#: model:ir.ui.menu,name:hotel.menu_all_folio
194msgid "Folio"215msgid "Folio"
195msgstr ""216msgstr "Folio"
196
197#. module: hotel
198#: rml:folio.total:0
199msgid "From"
200msgstr ""
201217
202#. module: hotel218#. module: hotel
203#: view:hotel.folio:0219#: view:hotel.folio:0
204msgid "Recreate Invoice"220msgid "Recreate Invoice"
205msgstr ""221msgstr "Recreate Invoice"
206222
207#. module: hotel223#. module: hotel
208#: field:product.category,isamenitype:0224#: field:product.category,isamenitype:0
209msgid "Is amenities Type"225msgid "Is amenities Type"
210msgstr ""226msgstr "Is amenities Type"
211227
212#. module: hotel228#. module: hotel
213#: view:hotel.room:0229#: view:hotel.room:0
214msgid " Room Amenities"230msgid " Room Amenities"
215msgstr ""231msgstr " Room Amenities"
232
233#. module: hotel
234#: constraint:hotel.folio:0
235msgid "You can not allocate the same room twice!"
236msgstr "You can not allocate the same room twice!"
216237
217#. module: hotel238#. module: hotel
218#: field:hotel.folio,checkin_date:0239#: field:hotel.folio,checkin_date:0
219#: field:hotel_folio.line,checkin_date:0240#: field:hotel.folio.line,checkin_date:0
220msgid "Check In"241msgid "Check In"
221msgstr ""242msgstr "Check In"
243
244#. module: hotel
245#: view:hotel.folio:0
246#: field:hotel.folio,name:0
247msgid "Folio Number"
248msgstr "Folio Number"
222249
223#. module: hotel250#. module: hotel
224#: model:ir.actions.act_window,name:hotel.hotel_amenity_category_action251#: model:ir.actions.act_window,name:hotel.hotel_amenity_category_action
225#: model:ir.ui.menu,name:hotel.menu_hotel_amenity_category_action252#: model:ir.ui.menu,name:hotel.menu_hotel_amenity_category_action
226msgid "Amenities by Category"253msgid "Amenities by Category"
227msgstr ""254msgstr "Amenities by Category"
255
256#. module: hotel
257#: view:folio.report.wizard:0
258msgid "Print"
259msgstr "Print"
228260
229#. module: hotel261#. module: hotel
230#: field:hotel.services,service_id:0262#: field:hotel.services,service_id:0
231msgid "Service_id"263msgid "Service_id"
232msgstr ""264msgstr "Service_id"
265
266#. module: hotel
267#: field:hotel.room.amenities.type,cat_id:0
268#: field:hotel.room.type,cat_id:0
269#: field:hotel.service.type,ser_id:0
270msgid "category"
271msgstr "category"
233272
234#. module: hotel273#. module: hotel
235#: view:hotel.folio:0274#: view:hotel.folio:0
236msgid "Invoice Lines"275msgid "Invoice Lines"
237msgstr ""276msgstr "Invoice Lines"
238277
239#. module: hotel278#. module: hotel
240#: view:hotel.folio:0279#: model:ir.ui.menu,name:hotel.menu_hotel_room
241msgid "Untaxed amount"280msgid "Room"
242msgstr ""281msgstr "Room"
243282
244#. module: hotel283#. module: hotel
245#: field:hotel.room_amenities_type,cat_id:0284#: view:hotel.room:0
246#: field:hotel.room_type,cat_id:0285#: selection:hotel.room,status:0
247#: field:hotel.service_type,ser_id:0286msgid "Available"
248msgid "category"287msgstr "Available"
249msgstr ""288
250289#. module: hotel
251#. module: hotel290#: report:folio.total:0
252#: view:hotel.room:0291msgid "\" To \""
253#: field:hotel.room,avail_status:0292msgstr "\" To \""
293
294#. module: hotel
295#: view:hotel.room:0
254msgid "Room Status"296msgid "Room Status"
255msgstr ""297msgstr "Room Status"
256298
257#. module: hotel299#. module: hotel
258#: field:hotel.room_amenities,room_categ_id:0300#: field:hotel.room.amenities,room_categ_id:0
301#: model:ir.model,name:hotel.model_product_category
259msgid "Product Category"302msgid "Product Category"
260msgstr ""303msgstr "Product Category"
261304
262#. module: hotel305#. module: hotel
263#: view:hotel.folio:0306#: view:hotel.folio:0
264msgid "Manual Description"307msgid "Manual Description"
265msgstr ""308msgstr "Manual Description"
266309
267#. module: hotel310#. module: hotel
268#: model:product.category,name:hotel.hotel_service_type_0_product_category311#: model:product.category,name:hotel.hotel_service_type_0_product_category
269msgid "All Services"312msgid "All Services"
270msgstr ""313msgstr "All Services"
314
315#. module: hotel
316#: view:hotel.folio:0
317msgid "---Description---"
318msgstr "---Description---"
319
320#. module: hotel
321#: field:hotel.folio,checkout_date:0
322#: field:hotel.folio.line,checkout_date:0
323msgid "Check Out"
324msgstr "Check Out"
271325
272#. module: hotel326#. module: hotel
273#: view:hotel.room:0327#: view:hotel.room:0
274#: model:ir.actions.act_window,name:hotel.action_hotel_room_form328msgid "state"
275#: model:ir.model,name:hotel.model_hotel_room329msgstr "state"
276msgid "Hotel Room"
277msgstr ""
278330
279#. module: hotel331#. module: hotel
280#: rml:folio.total:0332#: report:folio.total:0
281msgid "Folio No."333msgid "Folio No."
282msgstr ""334msgstr "Folio No."
283
284#. module: hotel
285#: view:hotel.folio:0
286msgid "Inventory Moves"
287msgstr ""
288335
289#. module: hotel336#. module: hotel
290#: model:ir.ui.menu,name:hotel.hotel_configuration_menu337#: model:ir.ui.menu,name:hotel.hotel_configuration_menu
291msgid "Configuration"338msgid "Configuration"
292msgstr ""339msgstr "Configuration"
293340
294#. module: hotel341#. module: hotel
295#: view:hotel.folio:0342#: view:hotel.folio:0
296msgid "Total amount"343msgid "Total amount"
297msgstr ""344msgstr "Total amount"
298345
299#. module: hotel346#. module: hotel
300#: view:hotel.floor:0347#: view:hotel.floor:0
301msgid " Hotel Floors"348msgid " Hotel Floors"
302msgstr ""349msgstr " Hotel Floors"
303350
304#. module: hotel351#. module: hotel
305#: constraint:ir.ui.view:0352#: view:hotel.room:0
306msgid "Invalid XML for View Architecture!"353msgid "Status"
307msgstr ""354msgstr "Status"
355
356#. module: hotel
357#: field:res.company,additional_hours:0
358msgid "Additional Hours"
359msgstr "Additional Hours"
360
361#. module: hotel
362#: view:hotel.room:0
363#: field:hotel.room,room_rent_ids:0
364#: field:room.rent,rent_id:0
365msgid "Room Rent"
366msgstr "Room Rent"
367
368#. module: hotel
369#: report:folio.total:0
370msgid "From \""
371msgstr "From \""
308372
309#. module: hotel373#. module: hotel
310#: field:hotel.folio,order_id:0374#: field:hotel.folio,order_id:0
311msgid "order_id"375msgid "order_id"
312msgstr ""376msgstr "order_id"
313377
314#. module: hotel378#. module: hotel
315#: field:hotel.room_amenities,amenity_rate:0379#: view:hotel.room:0
316msgid "Amenity Rate"380msgid "Customer taxes apply on the perticular room. "
317msgstr ""381msgstr "Customer taxes apply on the perticular room. "
318382
319#. module: hotel383#. module: hotel
320#: view:hotel.room:0384#: view:hotel.folio:0
321#: view:hotel.room_amenities:0385msgid "Service Lines"
386msgstr "Service Lines"
387
388#. module: hotel
389#: view:hotel.room:0
390#: view:hotel.room.amenities:0
322#: view:hotel.services:0391#: view:hotel.services:0
323msgid "Procurement"392msgid "Procurement"
324msgstr ""393msgstr "Procurement"
325394
326#. module: hotel395#. module: hotel
327#: field:hotel.floor,sequence:0396#: field:hotel.floor,sequence:0
328msgid "Sequence"397msgid "Sequence"
329msgstr ""398msgstr "Sequence"
330399
331#. module: hotel400#. module: hotel
332#: model:ir.ui.menu,name:hotel.menu_action_hotel_room_amenities_type_view_form401#: model:ir.ui.menu,name:hotel.menu_action_hotel_room_amenities_type_view_form
333msgid "Amenity Types"402msgid "Amenity Types"
334msgstr ""403msgstr "Amenity Types"
404
405#. module: hotel
406#: view:hotel.room:0
407msgid "Delete"
408msgstr "Delete"
335409
336#. module: hotel410#. module: hotel
337#: model:ir.ui.menu,name:hotel.menu_hotel_room_category_action411#: model:ir.ui.menu,name:hotel.menu_hotel_room_category_action
338msgid "Room by Category"412msgid "Room by Category"
339msgstr ""413msgstr "Room by Category"
340414
341#. module: hotel415#. module: hotel
342#: field:hotel.room_amenities,rcateg_id:0416#: field:hotel.folio,duration:0
417msgid "Duration in Days"
418msgstr "Duration in Days"
419
420#. module: hotel
421#: field:hotel.room.amenities,rcateg_id:0
343msgid "Amenity Catagory"422msgid "Amenity Catagory"
344msgstr ""423msgstr "Amenity Catagory"
345424
346#. module: hotel425#. module: hotel
347#: view:hotel.folio:0426#: view:hotel.folio:0
348msgid "Other data"427msgid "Other data"
349msgstr ""428msgstr "Other data"
350429
351#. module: hotel430#. module: hotel
352#: field:hotel.room,max_child:0431#: field:hotel.room,max_child:0
353msgid "Max Child"432msgid "Max Child"
354msgstr ""433msgstr "Max Child"
434
435#. module: hotel
436#: help:hotel.folio,service_lines:0
437msgid "Hotel services detail provide to customer and it will include in main Invoice."
438msgstr "Hotel services detail provide to customer and it will include in main Invoice."
439
440#. module: hotel
441#: help:hotel.folio,duration:0
442msgid "Number of days which will automatically count from the check-in and check-out date. "
443msgstr "Number of days which will automatically count from the check-in and check-out date. "
444
445#. module: hotel
446#: selection:hotel.folio,hotel_policy:0
447msgid "On Check In"
448msgstr "On Check In"
355449
356#. module: hotel450#. module: hotel
357#: view:hotel.room:0451#: view:hotel.room:0
358#: view:hotel.room_amenities:0452#: view:hotel.room.amenities:0
359#: view:hotel.services:0453#: view:hotel.services:0
360msgid "Descriptions"454msgid "Descriptions"
361msgstr ""455msgstr "Descriptions"
362456
363#. module: hotel457#. module: hotel
364#: wizard_field:hotel.folio.total_folio,init,date_start:0458#: view:hotel.services:0
459msgid "Customer taxes applied on the service. "
460msgstr "Customer taxes applied on the service. "
461
462#. module: hotel
463#: view:hotel.services:0
464msgid "List of supplier taxes related to the service provided by hotel. "
465msgstr "List of supplier taxes related to the service provided by hotel. "
466
467#. module: hotel
468#: field:folio.report.wizard,date_start:0
365msgid "Start Date"469msgid "Start Date"
366msgstr ""470msgstr "Start Date"
471
472#. module: hotel
473#: selection:hotel.room,status:0
474msgid "Occupied"
475msgstr "Occupied"
367476
368#. module: hotel477#. module: hotel
369#: model:ir.model,name:hotel.model_hotel_folio_line478#: model:ir.model,name:hotel.model_hotel_folio_line
370msgid "hotel folio1 room line"479msgid "hotel folio1 room line"
371msgstr ""480msgstr "hotel folio1 room line"
372481
373#. module: hotel482#. module: hotel
374#: field:product.category,isroomtype:0483#: field:product.category,isroomtype:0
375msgid "Is Room Type"484msgid "Is Room Type"
376msgstr ""485msgstr "Is Room Type"
377486
378#. module: hotel487#. module: hotel
379#: rml:folio.total:0488#: report:folio.total:0
380msgid "Total Collection"489msgid "Total Collection"
381msgstr ""490msgstr "Total Collection"
491
492#. module: hotel
493#: field:product.category,isservicetype:0
494msgid "Is Service Type"
495msgstr "Is Service Type"
382496
383#. module: hotel497#. module: hotel
384#: view:hotel.folio:0498#: view:hotel.folio:0
385msgid "Automatic Declaration"499msgid "Room Lines"
386msgstr ""500msgstr "Room Lines"
387501
388#. module: hotel502#. module: hotel
389#: view:hotel.folio:0503#: view:hotel.folio:0
390msgid "Rent(UOM)"504msgid "Rent(UOM)"
391msgstr ""505msgstr "Rent(UOM)"
392506
393#. module: hotel507#. module: hotel
394#: model:ir.model,name:hotel.model_hotel_services508#: model:ir.model,name:hotel.model_hotel_services
395msgid "Hotel Services and its charges"509msgid "Hotel Services and its charges"
396msgstr ""510msgstr "Hotel Services and its charges"
397511
398#. module: hotel512#. module: hotel
399#: view:hotel.folio:0513#: view:hotel.folio:0
400msgid "Procurement Corrected"514msgid "Procurement Corrected"
401msgstr ""515msgstr "Procurement Corrected"
402516
403#. module: hotel517#. module: hotel
404#: view:hotel.folio:0518#: view:hotel.folio:0
405msgid "Room Line"519msgid "Room Line"
406msgstr ""520msgstr "Room Line"
407521
408#. module: hotel522#. module: hotel
409#: view:hotel.folio:0523#: view:hotel.folio:0
410msgid "Room No"524msgid "Room No"
411msgstr ""525msgstr "Room No"
412526
413#. module: hotel527#. module: hotel
414#: view:hotel.services:0528#: view:hotel.services:0
415msgid "Service rate"529msgid "Service rate"
416msgstr ""530msgstr "Service rate"
417531
418#. module: hotel532#. module: hotel
419#: model:ir.actions.act_window,name:hotel.open_hotel_folio1_form_tree533#: view:hotel.folio:0
534msgid "Folios"
535msgstr "Folios"
536
537#. module: hotel
538#: view:hotel.folio:0
420#: model:ir.actions.act_window,name:hotel.open_hotel_folio1_form_tree_all539#: model:ir.actions.act_window,name:hotel.open_hotel_folio1_form_tree_all
421msgid "Hotel Folio"540msgid "Hotel Folio"
422msgstr ""541msgstr "Hotel Folio"
542
543#. module: hotel
544#: view:hotel.room:0
545msgid "í"
546msgstr "í"
547
548#. module: hotel
549#: help:hotel.room,room_amenities:0
550msgid "List of room amenities. "
551msgstr "List of room amenities. "
423552
424#. module: hotel553#. module: hotel
425#: field:hotel.folio,room_lines:0554#: field:hotel.folio,room_lines:0
426#: field:hotel.folio,service_lines:0555#: field:hotel.folio,service_lines:0
427msgid "unknown"556msgid "unknown"
428msgstr ""557msgstr "unknown"
429558
430#. module: hotel559#. module: hotel
431#: view:hotel.folio:0560#: view:hotel.folio:0
432msgid "Guest Name"561msgid "Guest Name"
433msgstr ""562msgstr "Guest Name"
563
564#. module: hotel
565#: view:hotel.room:0
566#: view:hotel.room.amenities:0
567#: view:hotel.services:0
568msgid "Customer Taxes"
569msgstr "Customer Taxes"
434570
435#. module: hotel571#. module: hotel
436#: view:hotel.folio:0572#: view:hotel.folio:0
437msgid "Service Line"573msgid "Service Line"
438msgstr ""574msgstr "Service Line"
439575
440#. module: hotel576#. module: hotel
441#: view:hotel.room_amenities_type:0577#: view:hotel.room.amenities.type:0
442#: model:ir.actions.act_window,name:hotel.action_hotel_room_amenities_type_view_form578#: model:ir.actions.act_window,name:hotel.action_hotel_room_amenities_type_view_form
443msgid "Hotel Room Amenities Type"579msgid "Hotel Room Amenities Type"
444msgstr ""580msgstr "Hotel Room Amenities Type"
445581
446#. module: hotel582#. module: hotel
447#: view:hotel.folio:0583#: view:hotel.folio:0
448msgid "Folio Line"584msgid "Folio Line"
449msgstr ""585msgstr "Folio Line"
450586
451#. module: hotel587#. module: hotel
452#: view:hotel.folio:0588#: model:res.groups,name:hotel.group_hotel_user
453msgid "Date"589msgid "Hotel Management / User"
454msgstr ""590msgstr "Hotel Management / User"
455591
456#. module: hotel592#. module: hotel
457#: view:hotel.folio:0593#: model:product.category,name:hotel.hotel_service_type_2_product_category
458#: view:hotel.room:0594msgid "Variable"
459#: view:hotel.room_amenities:0595msgstr "Variable"
460#: view:hotel.services:0596
461msgid "Properties"597#. module: hotel
462msgstr ""598#: help:hotel.folio,hotel_policy:0
463599msgid "Hotel policy for payment that either the guest has to payment at booking time or check-in check-out time."
464#. module: hotel600msgstr "Hotel policy for payment that either the guest has to payment at booking time or check-in check-out time."
465#: view:hotel.room_amenities:0601
602#. module: hotel
603#: view:hotel.room.amenities:0
466#: view:hotel.services:0604#: view:hotel.services:0
467msgid "Purchase Description"605msgid "Purchase Description"
468msgstr ""606msgstr "Purchase Description"
469607
470#. module: hotel608#. module: hotel
471#: view:hotel.folio:0609#: view:hotel.folio:0
472msgid "Compute"610msgid "Compute"
473msgstr ""611msgstr "Compute"
474612
475#. module: hotel613#. module: hotel
476#: model:ir.model,name:hotel.model_hotel_room_amenities614#: model:ir.model,name:hotel.model_hotel_room_amenities
477msgid "Room amenities"615msgid "Room amenities"
478msgstr ""616msgstr "Room amenities"
479617
480#. module: hotel618#. module: hotel
481#: model:product.category,name:hotel.hotel_room_type_3_product_category619#: model:product.category,name:hotel.hotel_room_type_3_product_category
482msgid "No Room"620msgid "No Room"
483msgstr ""621msgstr "No Room"
484622
485#. module: hotel623#. module: hotel
486#: field:hotel_service.line,service_line_id:0624#: model:ir.model,name:hotel.model_res_company
625msgid "Companies"
626msgstr "Companies"
627
628#. module: hotel
629#: field:hotel.service.line,service_line_id:0
487msgid "service_line_id"630msgid "service_line_id"
488msgstr ""631msgstr "service_line_id"
632
633#. module: hotel
634#: view:hotel.room:0
635msgid "Status:"
636msgstr "Status:"
637
638#. module: hotel
639#: model:ir.model,name:hotel.model_folio_report_wizard
640msgid "folio.report.wizard"
641msgstr "folio.report.wizard"
489642
490#. module: hotel643#. module: hotel
491#: model:product.category,name:hotel.hotel_room_amenities_type_1_product_category644#: model:product.category,name:hotel.hotel_room_amenities_type_1_product_category
492msgid "Beds"645msgid "Beds"
493msgstr ""646msgstr "Beds"
494647
495#. module: hotel648#. module: hotel
496#: model:product.category,name:hotel.hotel_service_type_2_product_category649#: view:hotel.room:0
497msgid "Variable"650msgid "Available Rooms"
498msgstr ""651msgstr "Available Rooms"
499652
500#. module: hotel653#. module: hotel
501#: field:hotel.room,floor_id:0654#: field:hotel.room,floor_id:0
502msgid "Floor No"655msgid "Floor No"
503msgstr ""656msgstr "Floor No"
504657
505#. module: hotel658#. module: hotel
506#: view:hotel.services:0659#: view:hotel.services:0
507#: model:ir.actions.act_window,name:hotel.action_hotel_services_form660#: model:ir.actions.act_window,name:hotel.action_hotel_services_form
508msgid "Hotel Services"661msgid "Hotel Services"
509msgstr ""662msgstr "Hotel Services"
510663
511#. module: hotel664#. module: hotel
512#: view:hotel.room_amenities:0665#: view:hotel.room.amenities:0
513#: model:ir.actions.act_window,name:hotel.action_hotel_room_amenities_view_form666#: model:ir.actions.act_window,name:hotel.action_hotel_room_amenities_view_form
514msgid "Hotel Room Amenities"667msgid "Hotel Room Amenities"
515msgstr ""668msgstr "Hotel Room Amenities"
669
670#. module: hotel
671#: view:hotel.room:0
672msgid "Rate:"
673msgstr "Rate:"
516674
517#. module: hotel675#. module: hotel
518#: view:hotel.folio:0676#: view:hotel.folio:0
519msgid "History"677msgid "History"
520msgstr ""678msgstr "History"
679
680#. module: hotel
681#: view:hotel.room.amenities:0
682#: model:ir.ui.menu,name:hotel.menu_amenity
683msgid "Amenity"
684msgstr "Amenity"
521685
522#. module: hotel686#. module: hotel
523#: model:ir.actions.act_window,name:hotel.open_hotel_floor_form_tree687#: model:ir.actions.act_window,name:hotel.open_hotel_floor_form_tree
524msgid "Floor Structure"688msgid "Floor Structure"
525msgstr ""689msgstr "Floor Structure"
526690
527#. module: hotel691#. module: hotel
528#: rml:folio.total:0692#: view:hotel.room.amenities:0
693msgid "List of customer taxes applied on the Amenity. "
694msgstr "List of customer taxes applied on the Amenity. "
695
696#. module: hotel
697#: report:folio.total:0
529msgid "Net Total :-"698msgid "Net Total :-"
530msgstr ""699msgstr "Net Total :-"
531700
532#. module: hotel701#. module: hotel
533#: view:hotel.folio:0702#: view:hotel.folio:0
534msgid "Related invoices"703msgid "Related invoices"
535msgstr ""704msgstr "Related invoices"
536705
537#. module: hotel706#. module: hotel
538#: selection:hotel.room,avail_status:0
539msgid "Assigned"
540msgstr ""
541
542#. module: hotel
543#: selection:hotel.room,avail_status:0
544msgid "Unassigned"
545msgstr ""
546
547#. module: hotel
548#: model:ir.module.module,shortdesc:hotel.module_meta_information
549#: model:ir.ui.menu,name:hotel.hotel_management_menu707#: model:ir.ui.menu,name:hotel.hotel_management_menu
550msgid "Hotel Management"708msgid "Hotel Management"
551msgstr ""709msgstr "Hotel Management"
552710
553#. module: hotel711#. module: hotel
554#: wizard_button:hotel.folio.total_folio,init,end:0712#: view:folio.report.wizard:0
555msgid "Cancel"713msgid "Cancel"
556msgstr ""714msgstr "Cancel"
557715
558#. module: hotel716#. module: hotel
559#: view:hotel.room:0717#: view:hotel.room:0
560#: view:hotel.room_amenities:0718#: view:hotel.room.amenities:0
561#: view:hotel.services:0719#: view:hotel.services:0
562msgid "Information"720msgid "Information"
563msgstr ""721msgstr "Information"
564722
565#. module: hotel723#. module: hotel
566#: constraint:ir.model:0724#: view:hotel.room:0
567msgid "The Object name must start with x_ and not contain any special character !"725msgid "-->"
568msgstr ""726msgstr "-->"
569727
570#. module: hotel728#. module: hotel
571#: field:hotel.room,product_id:0729#: field:hotel.room,product_id:0
572msgid "Product_id"730msgid "Product_id"
573msgstr ""731msgstr "Product_id"
574
575#. module: hotel
576#: view:hotel.folio:0
577msgid "Hotel Folio1"
578msgstr ""
579732
580#. module: hotel733#. module: hotel
581#: view:hotel.room:0734#: view:hotel.room:0
582#: model:ir.model,name:hotel.model_hotel_floor735#: model:ir.model,name:hotel.model_hotel_floor
583#: model:ir.ui.menu,name:hotel.menu_open_hotel_floor_form_tree736#: model:ir.ui.menu,name:hotel.menu_open_hotel_floor_form_tree
584msgid "Floor"737msgid "Floor"
585msgstr ""738msgstr "Floor"
739
740#. module: hotel
741#: model:ir.model,name:hotel.model_room_rent
742msgid "room.rent"
743msgstr "room.rent"
586744
587#. module: hotel745#. module: hotel
588#: model:product.category,name:hotel.hotel_room_type_0_product_category746#: model:product.category,name:hotel.hotel_room_type_0_product_category
589msgid "All Rooms"747msgid "All Rooms"
590msgstr ""748msgstr "All Rooms"
591749
592#. module: hotel750#. module: hotel
593#: view:hotel.folio:0751#: view:hotel.folio:0
594msgid "Create Invoice"752msgid "Create Invoice"
595msgstr ""753msgstr "Create Invoice"
596
597#. module: hotel
598#: wizard_button:hotel.folio.total_folio,init,print_report:0
599msgid "Print Report"
600msgstr ""
601754
602#. module: hotel755#. module: hotel
603#: model:ir.actions.report.xml,name:hotel.hotel_folio_details756#: model:ir.actions.report.xml,name:hotel.hotel_folio_details
604#: model:ir.actions.wizard,name:hotel.wizard_hotel_total
605msgid "Folio Total"757msgid "Folio Total"
606msgstr ""758msgstr "Folio Total"
607759
608#. module: hotel760#. module: hotel
609#: model:ir.actions.act_window,name:hotel.open_hotel_room_type_form_tree761#: field:hotel.room,room_reservation_line_ids:0
610#: model:ir.model,name:hotel.model_hotel_room_type762msgid "Room Reservation Line"
611msgid "Room Type"763msgstr "Room Reservation Line"
612msgstr ""764
613765#. module: hotel
614#. module: hotel766#: help:res.company,additional_hours:0
615#: view:hotel.room:0767msgid "Provide the min hours value for check in checkout days, whatever the hours will be provided here based on that extra days will be calculated."
616#: view:hotel.room_amenities:0768msgstr "Provide the min hours value for check in checkout days, whatever the hours will be provided here based on that extra days will be calculated."
769
770#. module: hotel
771#: view:hotel.room:0
772msgid "occupied"
773msgstr "occupied"
774
775#. module: hotel
776#: model:ir.actions.act_window,name:hotel.hotel_folio_wizard
777msgid "Hotel Folio Wizard"
778msgstr "Hotel Folio Wizard"
779
780#. module: hotel
781#: model:ir.model,name:hotel.model_product_product
782msgid "Product"
783msgstr "Product"
784
785#. module: hotel
786#: view:hotel.room:0
787#: view:hotel.room.amenities:0
617#: view:hotel.services:0788#: view:hotel.services:0
618msgid "Description"789msgid "Description"
619msgstr ""790msgstr "Description"
620791
621#. module: hotel792#. module: hotel
622#: field:hotel_folio.line,folio_id:0793#: sql_constraint:hotel.folio:0
623#: field:hotel_service.line,folio_id:0794msgid "Check in Date Should be less than the Check Out Date!"
795msgstr "Check in Date Should be less than the Check Out Date!"
796
797#. module: hotel
798#: field:hotel.folio.line,folio_id:0
799#: field:hotel.service.line,folio_id:0
624msgid "folio_id"800msgid "folio_id"
625msgstr ""801msgstr "folio_id"
626802
627#. module: hotel803#. module: hotel
628#: view:hotel.room_amenities:0804#: view:hotel.room.amenities:0
629#: view:hotel.services:0805#: view:hotel.services:0
630msgid "Sale Description"806msgid "Sale Description"
631msgstr ""807msgstr "Sale Description"
632808
633#. module: hotel809#. module: hotel
634#: model:product.category,name:hotel.hotel_room_amenities_type_4_product_category810#: model:product.category,name:hotel.hotel_room_amenities_type_4_product_category
635msgid "Double Bed"811msgid "Double Bed"
636msgstr ""812msgstr "Double Bed"
637813
638#. module: hotel814#. module: hotel
639#: field:product.product,isservice:0815#: field:product.product,isservice:0
640msgid "Is Service id"816msgid "Is Service id"
641msgstr ""817msgstr "Is Service id"
818
819#. module: hotel
820#: view:hotel.services:0
821msgid "Suplliers"
822msgstr "Suplliers"
642823
643#. module: hotel824#. module: hotel
644#: model:ir.ui.menu,name:hotel.menu_open_hotel_room_type_form_tree825#: model:ir.ui.menu,name:hotel.menu_open_hotel_room_type_form_tree
645msgid "Room Types"826msgid "Room Types"
646msgstr ""827msgstr "Room Types"
647828
648#. module: hotel829#. module: hotel
649#: rml:folio.total:0830#: view:hotel.folio:0
831msgid "Untaxed amount"
832msgstr "Untaxed amount"
833
834#. module: hotel
835#: report:folio.total:0
650msgid "CheckOut"836msgid "CheckOut"
651msgstr ""837msgstr "CheckOut"
652838
653#. module: hotel839#. module: hotel
654#: model:ir.actions.act_window,name:hotel.hotel_service_category_action840#: model:ir.actions.act_window,name:hotel.hotel_service_category_action
655#: model:ir.ui.menu,name:hotel.menu_hotel_service_category_action841#: model:ir.ui.menu,name:hotel.menu_hotel_service_category_action
656msgid "Services by Category"842msgid "Services by Category"
657msgstr ""843msgstr "Services by Category"
658844
659#. module: hotel845#. module: hotel
660#: model:ir.ui.menu,name:hotel.menu_open_hotel_room_form846#: view:hotel.folio:0
661msgid "Rooms"847msgid "Cancel Folio"
662msgstr ""848msgstr "Cancel Folio"
663849
664#. module: hotel850#. module: hotel
665#: view:hotel.room:0851#: view:hotel.room:0
666msgid "Room rate"852msgid "Room rate"
667msgstr ""853msgstr "Room rate"
668854
669#. module: hotel855#. module: hotel
670#: wizard_field:hotel.folio.total_folio,init,date_end:0856#: field:folio.report.wizard,date_end:0
671msgid "End Date"857msgid "End Date"
672msgstr ""858msgstr "End Date"
859
860#. module: hotel
861#: model:res.groups,name:hotel.group_hotel_manager
862msgid "Hotel Management/ Manager"
863msgstr "Hotel Management/ Manager"
864
865#. module: hotel
866#: view:hotel.room:0
867msgid "Name"
868msgstr "Name"
869
870#. module: hotel
871#: view:folio.report.wizard:0
872msgid "Folio Report"
873msgstr "Folio Report"
874
875#. module: hotel
876#: view:hotel.room:0
877msgid "Edit"
878msgstr "Edit"
673879
674#. module: hotel880#. module: hotel
675#: model:product.category,name:hotel.hotel_room_type_2_product_category881#: model:product.category,name:hotel.hotel_room_type_2_product_category
676msgid "Double"882msgid "Double"
677msgstr ""883msgstr "Double"
678884
679#. module: hotel885#. module: hotel
680#: rml:folio.total:0886#: report:folio.total:0
681msgid "CheckIn"887msgid "CheckIn"
682msgstr ""888msgstr "CheckIn"
683889
684#. module: hotel890#. module: hotel
685#: field:hotel.room,max_adult:0891#: field:hotel.room,max_adult:0
686msgid "Max Adult"892msgid "Max Adult"
687msgstr ""893msgstr "Max Adult"
688894
689#. module: hotel895#. module: hotel
690#: model:ir.module.module,description:hotel.module_meta_information896#: model:ir.actions.act_window,name:hotel.open_hotel_room_type_form_tree
691msgid "\n"897#: model:ir.model,name:hotel.model_hotel_room_type
692" Module for Hotel/Resort/Property management. You can manage:\n"898msgid "Room Type"
693" * Configure Property\n"899msgstr "Room Type"
694" * Hotel Configuration\n"
695" * Check In, Check out\n"
696" * Manage Folio\n"
697" * Payment\n"
698"\n"
699" Different reports are also provided, mainly for hotel statistics.\n"
700" "
701msgstr ""
702900
703#. module: hotel901#. module: hotel
704#: model:ir.ui.menu,name:hotel.hotel_report_menu902#: model:ir.ui.menu,name:hotel.hotel_report_menu
705msgid "Reports"903msgid "Reports"
706msgstr ""904msgstr "Reports"
707905
708#. module: hotel906#. module: hotel
709#: view:hotel.folio:0907#: view:hotel.room.amenities:0
710msgid "Related packings"908#: view:hotel.services:0
711msgstr ""909msgid "Catagory"
712910msgstr "Catagory"
713#. module: hotel911
714#: view:hotel.folio:0912#. module: hotel
715msgid "Folio No"913#: field:room.rent,day:0
716msgstr ""914msgid "Weekday"
717915msgstr "Weekday"
718#. module: hotel916
719#: view:hotel.room_type:0917#. module: hotel
918#: model:ir.ui.menu,name:hotel.menu_open_hotel_room_form
919msgid "Rooms"
920msgstr "Rooms"
921
922#. module: hotel
923#: view:hotel.room.type:0
720msgid " Hotel Room Type"924msgid " Hotel Room Type"
721msgstr ""925msgstr " Hotel Room Type"
722926
723#. module: hotel927#. module: hotel
724#: view:hotel.folio:0928#: view:hotel.folio:0
725msgid "Invoice Corrected"929msgid "Invoice Corrected"
726msgstr ""930msgstr "Invoice Corrected"
931
932#. module: hotel
933#: selection:hotel.folio,hotel_policy:0
934msgid "On Checkout"
935msgstr "On Checkout"
727936
728#. module: hotel937#. module: hotel
729#: model:ir.ui.menu,name:hotel.wizard_hotel_menu938#: model:ir.ui.menu,name:hotel.wizard_hotel_menu
730msgid "Hotel Folio Report"939msgid "Hotel Folio Report"
731msgstr ""940msgstr "Hotel Folio Report"
941
942#. module: hotel
943#: view:hotel.folio:0
944msgid "Confirm Folio"
945msgstr "Confirm Folio"
732946
733#. module: hotel947#. module: hotel
734#: view:hotel.folio:0948#: view:hotel.folio:0
735msgid "States"949msgid "States"
736msgstr ""950msgstr "States"
737951
738#. module: hotel952#. module: hotel
739#: model:product.category,name:hotel.hotel_room_type_1_product_category953#: model:product.category,name:hotel.hotel_room_type_1_product_category
740msgid "Single"954msgid "Single"
741msgstr ""955msgstr "Single"
742956
743#. module: hotel957#. module: hotel
744#: constraint:product.product:0958#: field:hotel.room,status:0
745msgid "Error: Invalid ean code"959msgid "status"
746msgstr ""960msgstr "status"
747961
748#. module: hotel962#. module: hotel
749#: view:hotel.folio:0963#: view:hotel.folio:0
750msgid "Rent"964msgid "Rent"
751msgstr ""965msgstr "Rent"
752966
753#. module: hotel967#. module: hotel
754#: rml:folio.total:0968#: report:folio.total:0
755msgid "Total"969msgid "Total"
756msgstr ""970msgstr "Total"
971
972#. module: hotel
973#: view:hotel.room:0
974#: view:hotel.room.amenities:0
975#: view:hotel.services:0
976msgid "Supplier Taxes"
977msgstr "Supplier Taxes"
757978
758979
=== modified file 'hotel/report/__init__.py'
--- hotel/report/__init__.py 2012-05-22 14:06:57 +0000
+++ hotel/report/__init__.py 2014-09-28 13:18:16 +0000
@@ -1,24 +1,25 @@
1# -*- encoding: utf-8 -*-1# -*- coding: utf-8 -*-
2##############################################################################2##############################################################################
3# 3#
4# OpenERP, Open Source Management Solution4# OpenERP, Open Source Management Solution
5# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).5# Copyright (C) 2012-Today Serpent Consulting Services Pvt. Ltd. (<http://www.serpentcs.com>)
6# Copyright (C) 2004 OpenERP SA (<http://www.openerp.com>)
6#7#
7# This program is free software: you can redistribute it and/or modify8# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as9# it under the terms of the GNU General Public License as published by
9# published by the Free Software Foundation, either version 3 of the10# the Free Software Foundation, either version 3 of the License, or
10# License, or (at your option) any later version.11# (at your option) any later version.
11#12#
12# This program is distributed in the hope that it will be useful,13# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of14# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU Affero General Public License for more details.16# GNU General Public License for more details.
16#17#
17# You should have received a copy of the GNU Affero General Public License18# You should have received a copy of the GNU General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>. 19# along with this program. If not, see <http://www.gnu.org/licenses/>
19#20#
20##############################################################################21##############################################################################
2122
22import hotel_report23from . import hotel_report
2324
24# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:25# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
25\ No newline at end of file26\ No newline at end of file
2627
=== modified file 'hotel/report/hotel_report.py'
--- hotel/report/hotel_report.py 2012-05-23 07:17:58 +0000
+++ hotel/report/hotel_report.py 2014-09-28 13:18:16 +0000
@@ -1,53 +1,52 @@
1# -*- encoding: utf-8 -*-1# -*- coding: utf-8 -*-
2##############################################################################2##############################################################################
3# 3#
4# OpenERP, Open Source Management Solution4# OpenERP, Open Source Management Solution
5# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).5# Copyright (C) 2012-Today Serpent Consulting Services Pvt. Ltd. (<http://www.serpentcs.com>)
6# Copyright (C) 2004 OpenERP SA (<http://www.openerp.com>)
6#7#
7# This program is free software: you can redistribute it and/or modify8# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as9# it under the terms of the GNU General Public License as published by
9# published by the Free Software Foundation, either version 3 of the10# the Free Software Foundation, either version 3 of the License, or
10# License, or (at your option) any later version.11# (at your option) any later version.
11#12#
12# This program is distributed in the hope that it will be useful,13# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of14# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU Affero General Public License for more details.16# GNU General Public License for more details.
16#17#
17# You should have received a copy of the GNU Affero General Public License18# You should have received a copy of the GNU General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>. 19# along with this program. If not, see <http://www.gnu.org/licenses/>
19#20#
20##############################################################################21##############################################################################
2122
22import time23import time
23from report import report_sxw24from openerp.report import report_sxw
24import datetime25
25import pooler
26class folio_report(report_sxw.rml_parse):26class folio_report(report_sxw.rml_parse):
27 def __init__(self, cr, uid, name, context):27 def __init__(self, cr, uid, name, context):
28 super(folio_report, self).__init__(cr, uid, name, context)28 super(folio_report, self).__init__(cr, uid, name, context)
29 self.localcontext.update( {29 self.localcontext.update( {
30 'time': time,30 'time': time,
31 'get_data': self.get_data,31 'get_data': self.get_data,
32 'get_Total' : self.getTotal,32 'get_Total': self.getTotal,
33 'get_total': self.gettotal,33 'get_total': self.gettotal,
34 })34 })
35 self.temp = 0.035 self.temp = 0.0
3636
37 def get_data(self,date_start,date_end):37 def get_data(self, date_start, date_end):
38 tids = self.pool.get('hotel.folio').search(self.cr,self.uid,[('checkin_date', '>=', date_start),('checkout_date', '<=', date_end)])38 folio_obj = self.pool.get('hotel.folio')
39 res = self.pool.get('hotel.folio').browse(self.cr,self.uid,tids)39 tids = folio_obj.search(self.cr, self.uid, [('checkin_date', '>=', date_start), ('checkout_date', '<=', date_end)])
40 res = folio_obj.browse(self.cr, self.uid, tids)
40 return res41 return res
41 42
42 def gettotal(self,total):43 def gettotal(self, total):
43 self.temp = self.temp + float(total)44 self.temp = self.temp + float(total)
44 return total45 return total
45 46
46 def getTotal(self):47 def getTotal(self):
47 return self.temp48 return self.temp
48 49
49report_sxw.report_sxw('report.folio.total', 'hotel.folio', 'addons/hotel/report/total_folio.rml',parser= folio_report) 50report_sxw.report_sxw('report.folio.total', 'hotel.folio', 'addons/hotel/report/total_folio.rml', parser=folio_report)
50
51
5251
53# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: 52# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
54\ No newline at end of file53\ No newline at end of file
5554
=== modified file 'hotel/report/hotel_report.xml'
--- hotel/report/hotel_report.xml 2012-05-23 07:17:58 +0000
+++ hotel/report/hotel_report.xml 2014-09-28 13:18:16 +0000
@@ -1,6 +1,7 @@
1<?xml version="1.0"?>1<?xml version="1.0"?>
2<openerp>2<openerp>
3 <data>3 <data>
4
4 <report id="hotel_folio_details"5 <report id="hotel_folio_details"
5 string="Folio Total"6 string="Folio Total"
6 model="hotel.folio"7 model="hotel.folio"
78
=== modified file 'hotel/report/total_folio.rml'
--- hotel/report/total_folio.rml 2012-05-22 14:06:57 +0000
+++ hotel/report/total_folio.rml 2014-09-28 13:18:16 +0000
@@ -13,6 +13,7 @@
13 <blockTableStyle id="Table1">13 <blockTableStyle id="Table1">
14 <blockAlignment value="LEFT"/>14 <blockAlignment value="LEFT"/>
15 <blockValign value="TOP"/>15 <blockValign value="TOP"/>
16 <lineStyle kind="GRID" colorName="black"/>
16 <blockBackground colorName="#c0c0c0" start="0,0" stop="0,0"/>17 <blockBackground colorName="#c0c0c0" start="0,0" stop="0,0"/>
17 <blockBackground colorName="#c0c0c0" start="1,0" stop="1,0"/>18 <blockBackground colorName="#c0c0c0" start="1,0" stop="1,0"/>
18 <blockBackground colorName="#c0c0c0" start="2,0" stop="2,0"/>19 <blockBackground colorName="#c0c0c0" start="2,0" stop="2,0"/>
@@ -22,6 +23,7 @@
22 <blockTableStyle id="Table2">23 <blockTableStyle id="Table2">
23 <blockAlignment value="LEFT"/>24 <blockAlignment value="LEFT"/>
24 <blockValign value="TOP"/>25 <blockValign value="TOP"/>
26 <lineStyle kind="GRID" colorName="black"/>
25 <blockBackground colorName="#ffffff" start="0,0" stop="0,0"/>27 <blockBackground colorName="#ffffff" start="0,0" stop="0,0"/>
26 <blockBackground colorName="#c0c0c0" start="1,0" stop="1,0"/>28 <blockBackground colorName="#c0c0c0" start="1,0" stop="1,0"/>
27 </blockTableStyle>29 </blockTableStyle>
@@ -52,9 +54,21 @@
52 <para style="P2">54 <para style="P2">
53 <font color="white"> </font>55 <font color="white"> </font>
54 </para>56 </para>
55 <para style="P9">Total Collection</para>57 <para style="P2">
58 <font color="white"> </font>
59 </para>
60 <para style="P2">
61 <font color="white"> </font>
62 </para>
63 <para style="P9" alignment="CENTER"><b>Total Collection</b></para>
64 <para style="P2">
65 <font color="white"> </font>
66 </para>
56 <para style="P10">[[repeatIn(objects,'o')]]</para>67 <para style="P10">[[repeatIn(objects,'o')]]</para>
57 <para style="P12">From [[ data['form']['date_start'] ]] to [[ data['form']['date_end'] ]] </para>68 <para style="P12"><b>From "</b>[[ formatLang(data['form']['date_start'],date=True) ]]<b>" To "</b>[[ formatLang(data['form']['date_end'],date=True) ]]<b>"</b></para>
69 <para style="P4">
70 <font color="white"> </font>
71 </para>
58 <blockTable colWidths="90.0,129.0,98.0,96.0,69.0" style="Table1">72 <blockTable colWidths="90.0,129.0,98.0,96.0,69.0" style="Table1">
59 <tr>73 <tr>
60 <td>74 <td>
@@ -74,27 +88,25 @@
74 </td>88 </td>
75 </tr>89 </tr>
76 <tr>90 <tr>
77 <td>91 <para style="P6">[[ repeatIn(get_data(data['form']['date_start'],data['form']['date_end']) ,'o') ]]</para>
78 <para style="P6">[[ repeatIn(get_data(data['form']['date_start'],data['form']['date_end']) ,'o') ]]</para>92 <td>
79 <para style="P4">[[o.order_id.name]]</para>93 <para style="P4">[[o.name or '' ]]</para>
80 </td>94 </td>
81 <td>95 <td>
82 <para style="P4">[[o.partner_id.name]]</para>96 <para style="P4" alignment="LEFT">[[o.partner_id and o.partner_id.name or '']]</para>
83 </td>97 </td>
84 <td>98 <td>
85 <para style="P4">[[o.checkin_date]]</para>99 <para style="P4">[[ formatLang(o.checkin_date, date=True) ]]</para>
86 </td>100 </td>
87 <td>101 <td>
88 <para style="P4">[[o.checkout_date]]</para>102 <para style="P4">[[ formatLang(o.checkout_date, date=True) ]]</para>
89 </td>103 </td>
90 <td>104 <td>
91 <para style="P4">[[o.amount_total]]</para>105 <para style="P4" alignment="RIGHT">[[formatLang(get_total(o.amount_total), digits=get_digits(dp='Account')) ]]</para>
92
93 <para style="P4">[[get_total(o.amount_total)]]</para>
94 </td>106 </td>
95 </tr>107 </tr>
96 </blockTable>108 </blockTable>
97 <blockTable colWidths="316.0,96.0,69.0" style="Table2">109 <blockTable colWidths="317.0,96.0,69.0" style="Table2">
98 <tr>110 <tr>
99 <td>111 <td>
100 <para style="P8">112 <para style="P8">
@@ -105,7 +117,7 @@
105 <para style="P7">Net Total :-</para>117 <para style="P7">Net Total :-</para>
106 </td>118 </td>
107 <td>119 <td>
108 <para style="P4">[[get_Total()]]</para>120 <para style="P4" alignment="RIGHT">[[formatLang(get_Total(), digits=get_digits(dp='Account')) ]]</para>
109 </td>121 </td>
110 </tr>122 </tr>
111 </blockTable>123 </blockTable>
112124
=== modified file 'hotel/security/ir.model.access.csv'
--- hotel/security/ir.model.access.csv 2012-05-22 14:06:57 +0000
+++ hotel/security/ir.model.access.csv 2014-09-28 13:18:16 +0000
@@ -1,13 +1,34 @@
1"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"1"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
2"access_hotel_floor_group","hotel.floor","model_hotel_floor","hotel.group_hotel_user",1,1,0,02"access_hotel_floor_group","hotel.floor.user","model_hotel_floor","hotel.group_hotel_user",1,1,1,0
3"access_product_category","product.category","product.model_product_category","hotel.group_hotel_user",1,1,0,03"access_product_category","product.category.user","product.model_product_category","hotel.group_hotel_user",1,1,1,0
4"access_hotel_room_type","hotel.room_type","model_hotel_room_type","hotel.group_hotel_user",1,1,0,04"access_hotel_room_type","hotel.room_type.user","model_hotel_room_type","hotel.group_hotel_user",1,1,1,0
5"access_product_product","product.product","product.model_product_product","hotel.group_hotel_user",1,1,1,15"access_hotel_room_rent","hotel.room_rent.user","model_room_rent","hotel.group_hotel_user",1,1,1,0
6"access_hotel_room_amenities_type","hotel.room_amenities_type","model_hotel_room_amenities_type","hotel.group_hotel_user",1,1,0,06"access_product_product","product.product.user","product.model_product_product","hotel.group_hotel_user",1,1,1,0
7"access_hotel_room_amenities","hotel.room_aminities","model_hotel_room_amenities","hotel.group_hotel_user",1,1,0,07"access_hotel_room_amenities_type","hotel.room_amenities_type.user","model_hotel_room_amenities_type","hotel.group_hotel_user",1,1,1,0
8"access_hotel_room","hotel.room","model_hotel_room","hotel.group_hotel_user",1,1,0,08"access_hotel_room_amenities","hotel.room_aminities.user","model_hotel_room_amenities","hotel.group_hotel_user",1,1,1,0
9"access_hotel_folio","hotel.folio","model_hotel_folio","hotel.group_hotel_user",1,1,1,19"access_hotel_room","hotel.room.user","model_hotel_room","hotel.group_hotel_user",1,1,1,0
10"access_hotel_folio_line","hotel_folio.line","model_hotel_folio_line","hotel.group_hotel_user",1,1,1,110"access_hotel_folio","hotel.folio.user","model_hotel_folio","hotel.group_hotel_user",1,1,1,0
11"access_hotel_service_line","hotel_service.line","model_hotel_service_line","hotel.group_hotel_user",1,1,1,111"access_hotel_folio_line","hotel_folio.line.user","model_hotel_folio_line","hotel.group_hotel_user",1,1,1,0
12"acess_hotel_service_type","hotel.service_type","model_hotel_service_type","hotel.group_hotel_user",1,1,0,012"access_hotel_service_line","hotel_service.line.user","model_hotel_service_line","hotel.group_hotel_user",1,1,1,0
13"access_hotel_services","hotel.sevices","model_hotel_services","hotel.group_hotel_user",1,1,0,013"acess_hotel_service_type","hotel.service_type.user","model_hotel_service_type","hotel.group_hotel_user",1,1,1,0
14"access_hotel_services","hotel.sevices.user","model_hotel_services","hotel.group_hotel_user",1,1,1,0
15"access_hotel_order_user","hotel.order.user","sale.model_sale_order","hotel.group_hotel_user",1,1,1,0
16"access_hotel_order_line_user","hotel.order.line.user","sale.model_sale_order_line","hotel.group_hotel_user",1,1,1,0
17"access_hotel_invoice_user","account.invoice.user","account.model_account_invoice","hotel.group_hotel_user",1,1,1,0
18
19"access_hotel_floor_group_manager","hotel.floor.manager","model_hotel_floor","hotel.group_hotel_manager",1,1,1,1
20"access_product_category_manager","product.category.manager","product.model_product_category","hotel.group_hotel_manager",1,1,1,1
21"access_hotel_room_type_manager","hotel.room_type.manager","model_hotel_room_type","hotel.group_hotel_manager",1,1,1,1
22"access_hotel_room_rent_manager","hotel.room_rent.manager","model_room_rent","hotel.group_hotel_manager",1,1,1,1
23"access_product_product_manager","product.product.manager","product.model_product_product","hotel.group_hotel_manager",1,1,1,1
24"access_hotel_room_amenities_type_manager","hotel.room_amenities_type.manager","model_hotel_room_amenities_type","hotel.group_hotel_manager",1,1,1,1
25"access_hotel_room_amenities_manager","hotel.room_aminities.manager","model_hotel_room_amenities","hotel.group_hotel_manager",1,1,1,1
26"access_hotel_room_manager","hotel.room.manager","model_hotel_room","hotel.group_hotel_manager",1,1,1,1
27"access_hotel_folio_manager","hotel.folio.manager","model_hotel_folio","hotel.group_hotel_manager",1,1,1,1
28"access_hotel_folio_line_manager","hotel_folio.line.manager","model_hotel_folio_line","hotel.group_hotel_manager",1,1,1,1
29"access_hotel_service_line_manager","hotel_service.line.manager","model_hotel_service_line","hotel.group_hotel_manager",1,1,1,1
30"acess_hotel_service_type_manager","hotel.service_type.manager","model_hotel_service_type","hotel.group_hotel_manager",1,1,1,1
31"access_hotel_services_manager","hotel.sevices.manager","model_hotel_services","hotel.group_hotel_manager",1,1,1,1
32"access_hotel_order_manager_manager","hotel.order.manager","sale.model_sale_order","hotel.group_hotel_manager",1,1,1,1
33"access_hotel_order_line_manager","hotel.order.line.manager","sale.model_sale_order_line","hotel.group_hotel_manager",1,1,1,0
34"access_hotel_invoice_manager","account.invoice.manager","account.model_account_invoice","hotel.group_hotel_manager",1,1,1,1
14\ No newline at end of file35\ No newline at end of file
1536
=== added directory 'hotel/static'
=== renamed directory 'hotel/static' => 'hotel/static.moved'
=== added directory 'hotel/static/src'
=== added directory 'hotel/static/src/css'
=== added file 'hotel/static/src/css/room_kanban.css'
--- hotel/static/src/css/room_kanban.css 1970-01-01 00:00:00 +0000
+++ hotel/static/src/css/room_kanban.css 2014-09-28 13:18:16 +0000
@@ -0,0 +1,4 @@
1.openerp .oe_kanban_view .oe_kanban_status {
2 position: relative;
3 top: -13px;
4}
0\ No newline at end of file5\ No newline at end of file
16
=== modified file 'hotel/wizard/__init__.py'
--- hotel/wizard/__init__.py 2012-05-22 14:06:57 +0000
+++ hotel/wizard/__init__.py 2014-09-28 13:18:16 +0000
@@ -1,24 +1,25 @@
1# -*- encoding: utf-8 -*-1# -*- encoding: utf-8 -*-
2##############################################################################2##############################################################################
3# 3#
4# OpenERP, Open Source Management Solution4# OpenERP, Open Source Management Solution
5# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).5# Copyright (C) 2012-Today Serpent Consulting Services Pvt. Ltd. (<http://www.serpentcs.com>)
6# Copyright (C) 2004 OpenERP SA (<http://www.openerp.com>)
6#7#
7# This program is free software: you can redistribute it and/or modify8# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as9# it under the terms of the GNU General Public License as published by
9# published by the Free Software Foundation, either version 3 of the10# the Free Software Foundation, either version 3 of the License, or
10# License, or (at your option) any later version.11# (at your option) any later version.
11#12#
12# This program is distributed in the hope that it will be useful,13# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of14# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU Affero General Public License for more details.16# GNU General Public License for more details.
16#17#
17# You should have received a copy of the GNU Affero General Public License18# You should have received a copy of the GNU General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>. 19# along with this program. If not, see <http://www.gnu.org/licenses/>
19#20#
20##############################################################################21##############################################################################
2122
22import hotel_wizard23from . import hotel_wizard
2324
24# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:25# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
25\ No newline at end of file26\ No newline at end of file
2627
=== modified file 'hotel/wizard/hotel_wizard.py'
--- hotel/wizard/hotel_wizard.py 2012-05-23 07:17:58 +0000
+++ hotel/wizard/hotel_wizard.py 2014-09-28 13:18:16 +0000
@@ -1,50 +1,45 @@
1# -*- encoding: utf-8 -*-1# -*- encoding: utf-8 -*-
2##############################################################################2##############################################################################
3# 3#
4# OpenERP, Open Source Management Solution4# OpenERP, Open Source Management Solution
5# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).5# Copyright (C) 2012-Today Serpent Consulting Services Pvt. Ltd. (<http://www.serpentcs.com>)
6# Copyright (C) 2004 OpenERP SA (<http://www.openerp.com>)
6#7#
7# This program is free software: you can redistribute it and/or modify8# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as9# it under the terms of the GNU General Public License as published by
9# published by the Free Software Foundation, either version 3 of the10# the Free Software Foundation, either version 3 of the License, or
10# License, or (at your option) any later version.11# (at your option) any later version.
11#12#
12# This program is distributed in the hope that it will be useful,13# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of14# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU Affero General Public License for more details.16# GNU General Public License for more details.
16#17#
17# You should have received a copy of the GNU Affero General Public License18# You should have received a copy of the GNU General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>. 19# along with this program. If not, see <http://www.gnu.org/licenses/>
19#20#
20##############################################################################21################################################################################
2122
22from osv import osv,fields23from openerp.osv import osv, fields
2324
24class folio_report_wizard(osv.osv_memory):25class folio_report_wizard(osv.TransientModel):
25
26 _name = 'folio.report.wizard'26 _name = 'folio.report.wizard'
27
28 _rec_name = 'date_start'27 _rec_name = 'date_start'
29 _columns = {28 _columns = {
30 'date_start':fields.datetime('Start Date'),29 'date_start': fields.datetime('Start Date'),
31 'date_end':fields.datetime('End Date')30 'date_end': fields.datetime('End Date')
32 }31 }
33 32
34 def print_report(self, cr, uid, ids, context=None):33 def print_report(self, cr, uid, ids, context=None):
35 datas = {34 values = {
36 'ids': ids,35 'ids': ids,
37 'model': 'hotel.folio',36 'model': 'hotel.folio',
38 'form': self.read(cr, uid, ids)[0]37 'form': self.read(cr, uid, ids, context=context)[0]
39 }38 }
40 return {39 return {
41 'type': 'ir.actions.report.xml',40 'type': 'ir.actions.report.xml',
42 'report_name': 'folio.total',41 'report_name': 'folio.total',
43 'datas': datas,42 'datas': values,
44 }43 }
4544
46 45# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
47folio_report_wizard()
48
49# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
50
51\ No newline at end of file46\ No newline at end of file
5247
=== modified file 'hotel/wizard/hotel_wizard.xml'
--- hotel/wizard/hotel_wizard.xml 2012-05-23 07:17:58 +0000
+++ hotel/wizard/hotel_wizard.xml 2014-09-28 13:18:16 +0000
@@ -1,37 +1,39 @@
1<?xml version="1.0" ?>1<?xml version="1.0" ?>
2<openerp>2<openerp>
3 <data>
4
5 <record model="ir.ui.view" id="view_hotel_folio_wizard">
6 <field name="name">folio.report.wizard</field>
7 <field name="model">folio.report.wizard</field>
8 <field name="type">form</field>
9 <field name="arch" type="xml">
10 <form string="Folio Report">
11 <field name="date_start" required="1"/>
12 <field name="date_end" required="1"/>
13 <newline/>
14 <separator colspan='4'/>
15 <newline/>
16 <button icon="gtk-cancel" string="Cancel" special="cancel"/>
17 <button icon="gtk-print" name="print_report" string="Print" type="object"/>
18 </form>
19 </field>
20 </record>
21
22 <record model="ir.actions.act_window" id="hotel_folio_wizard">
23 <field name="name">Hotel Folio Wizard</field>
24 <field name="res_model">folio.report.wizard</field>
25 <field name="view_type">form</field>
26 <field name="view_mode">form</field>
27 <field name="target">new</field>
28 </record>
29
30 <menuitem
31 name="Hotel Folio Report"
The diff has been truncated for viewing.