Skip to content

Commit

Permalink
[IMP]: Improved the code
Browse files Browse the repository at this point in the history
  • Loading branch information
JayVora-SerpentCS committed Aug 5, 2014
1 parent 56bb30a commit 483a766
Show file tree
Hide file tree
Showing 12 changed files with 5 additions and 13 deletions.
4 changes: 3 additions & 1 deletion board_frontdesk/__openerp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@
* Calendar view of Weekly Check-In and Check-Out
* Calendar view of Monthly Check-In and Check-Out
""",
"data":["board_frontdesk_view.xml"],
"data":[
"board_frontdesk_view.xml"
],
"auto_install": False,
"installable": True
}
Expand Down
1 change: 0 additions & 1 deletion hotel/hotel.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
from openerp import netsvc
import datetime
from openerp.tools.translate import _
from openerp.tools import DEFAULT_SERVER_DATETIME_FORMAT

class hotel_floor(osv.Model):
_name = "hotel.floor"
Expand Down
2 changes: 0 additions & 2 deletions hotel/report/hotel_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
import time
from openerp.osv import osv
from openerp.report import report_sxw
from datetime import datetime
from openerp.tools import DEFAULT_SERVER_DATETIME_FORMAT

class folio_report(report_sxw.rml_parse):
def __init__(self, cr, uid, name, context):
Expand Down
1 change: 0 additions & 1 deletion hotel/wizard/hotel_wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,5 @@ def print_report(self, cr, uid, ids, context=None):
'model': 'hotel.folio',
'form': self.read(cr, uid, ids, context=context)[0]
}
print':::::VALUSE',values
return self.pool['report'].get_action(cr, uid, [], 'hotel.report_hotel_folio', data=values, context=context)
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
Binary file removed hotel_reservation/__init__.pyc
Binary file not shown.
Binary file removed hotel_reservation/hotel_reservation.pyc
Binary file not shown.
8 changes: 2 additions & 6 deletions hotel_reservation/hotel_reservation_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,11 @@
<field name="arch" type="xml">
<form string="Reservation" version="7.0">
<header>
<button name="confirm" string="Confirm" states="draft" class="oe_highlight"/>
<button name="done" string="Create Folio" states="confirm" class="oe_highlight"/>
<field name="state" widget="statusbar"/>

</header>
<sheet>
<h1 align="right">
<button name="confirm" string="Confirm" states="draft" class="oe_inline oe_stat_button"/>
<button name="done" string="Create Folio" states="confirm" class="oe_inline oe_stat_button"/>

</h1>
<label string="Reservation No"/>
<h1>
<field name="reservation_no" class="oe_inline"/>
Expand Down
Binary file removed hotel_reservation/report/__init__.pyc
Binary file not shown.
2 changes: 0 additions & 2 deletions hotel_reservation/report/hotel_reservation_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ def _get_room_used_detail(self, date_start, date_end):

return room_used_details



class report_test_checkin(osv.AbstractModel):
_name = "report.hotel_reservation.report_checkin_qweb"
_inherit = "report.abstract_report"
Expand Down
Binary file not shown.
Binary file removed hotel_reservation/wizard/__init__.pyc
Binary file not shown.
Binary file not shown.

0 comments on commit 483a766

Please sign in to comment.