Skip to Content
Odoo मेन्यू
  • Sign in
  • मुफ़्त में आज़माएं
  • ऐप्लिकेशन
    फ़ाइनेंस
    • अकाउंटिंग
    • इनवॉइसिंग
    • एक्सपेंस
    • स्प्रेडशीट (बीआई)
    • डॉक्यूमेंट्स
    • साइन
    सेल्स
    • सीआरएम
    • सेल्स
    • पीओएस शॉप
    • पीओएस रेस्टोरेंट
    • सब्सक्रिप्शन
    • रेंटल
    वेबसाइट
    • वेबसाइट बिल्डर
    • ई-कॉमर्स
    • ब्लॉग
    • फ़ोरम
    • लाइव चैट
    • ई-लर्निंग
    सप्लाई चेन
    • इन्वेंट्री
    • मैन्युफ़ैक्चरिंग
    • पीएलएम
    • परचेज़
    • मेंटेनेंस
    • क्वालिटी
    मानव संसाधन
    • कर्मचारी
    • रिक्रूटमेंट
    • टाइम ऑफ़
    • अप्रेज़ल
    • रेफ़रल
    • फ़्लीट
    मार्केटिंग
    • सोशल मार्केटिंग
    • ईमेल मार्केटिंग
    • एसएमएस मार्केटिंग
    • इवेंट
    • मार्केटिंग ऑटोमेशन
    • सर्वे
    सेवाएं
    • प्रोजेक्ट
    • टाइमशीट
    • फ़ील्ड सर्विस
    • हेल्पडेस्क
    • प्लानिंग
    • अपॉइंटमेंट
    प्रॉडक्टिविटी
    • डिस्कस
    • अप्रूवल
    • आईओटी
    • वीओआईपी
    • नॉलेज
    • WhatsApp
    तीसरे पक्ष के ऐप्लिकेशन Odoo स्टूडियो Odoo क्लाउड प्लेटफ़ॉर्म
  • इंडस्ट्री
    रीटेल
    • बुक स्टोर
    • क्लोदिंग स्टोर
    • फ़र्नीचर स्टोर
    • ग्रॉसरी स्टोर
    • हार्डवेयर स्टोर
    • टॉय स्टोर
    Food & Hospitality
    • बार और पब
    • रेस्टोरेंट
    • फ़ास्ट फ़ूड
    • Guest House
    • बेवरिज डिस्ट्रीब्यूटर
    • होटल
    रियल एस्टेट
    • Real Estate Agency
    • आर्किटेक्चर फ़र्म
    • कंसट्रक्शन
    • एस्टेट मैनेजमेंट
    • गार्ड्निंग
    • प्रॉपर्टी ओनर असोसिएशन
    कंसल्टिंग
    • अकाउंटिंग फ़र्म
    • Odoo पार्टनर
    • मार्केटिंग एजेंसी
    • लॉ फ़र्म
    • टैलेंट ऐक्विज़िशन
    • ऑडिट & सर्टिफ़िकेशन
    मैन्युफ़ैक्चरिंग
    • टेक्सटाइल
    • Metal
    • फ़र्नीचर
    • फ़ूड
    • Brewery
    • कॉर्पोरेट गिफ़्ट
    हेल्थ & फिटनेस
    • स्पोर्ट्स क्लब
    • आईवियर स्टोर
    • फिटनेस सेंटर
    • वेलनेस प्रैक्टिशनर
    • फॉर्मेसी
    • हेयर सैलून
    Trades
    • Handyman
    • आईटी हॉर्डवेयर और सपोर्ट
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    अन्य
    • Nonprofit Organization
    • एन्वायरमेंटल एजेंसी
    • बिलबोर्ड रेंटल
    • फ़ोटोग्राफी
    • बाइक लीजिंग
    • सॉफ़्टवेयर रीसेलर
    Browse all Industries
  • कम्यूनिटी
    सीखें
    • ट्यूटोरियल्स
    • दस्तावेज़
    • सर्टिफ़िकेशन
    • ट्रेनिंग
    • ब्लॉग
    • पॉडकास्ट
    शिक्षा को बढ़ावा दें
    • एजुकेशन प्रोग्राम
    • स्केल अप! बिजनेस गेम
    • Odoo के ऑफ़िस में आएं
    सॉफ़्टवेयर पाएं
    • डाउनलोड
    • वर्शन की तुलना करें
    • रिलीज़
    साथ मिलकर काम करें
    • Github
    • फ़ोरम
    • इवेंट
    • अनुवाद
    • पार्टनर बनें
    • Services for Partners
    • अपना अकाउंटिंग फ़र्म रजिस्टर करें
    सेवाएं पाएं
    • पार्टनर ढूंढें
    • अकाउंटेंट खोजें
    • सलाहकार की मदद लें
    • इम्प्लिमेंटेशन सेवाएं
    • कस्टमर रेफ़रेंस
    • सहायता
    • अपग्रेड
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    डेमो देखें
  • कीमत
  • सहायता

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • सीआरएम
  • e-Commerce
  • लेखांकन
  • इन्वेंटरी
  • PoS
  • प्रोजेक्ट
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
टैग (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
टैग (View all)
odoo accounting v14 pos v15
About this forum
Help

How to generate customer invoice in hotel management?

Subscribe

Get notified when there's activity on this post

This question has been flagged
invoicehotel
6322 Views
Avatar
Kapil More

     Hello, I am working on Hotel Management Module. The tabs present inside are reservation, housekeeping services, restaurant, folio, reports and configuration. Now, I want to create customer invoice for final payment which will be generated in accounting.(customer invoices)  

      In existing module, customer invoice only includes charges for reservation and services consumed by customer. For restaurant, there is no any invoice generated. I wish to include restaurant charges in folio and should gets to customer invoice.

Can anyone help me with generating customer invoice which includes all the charges.( reservation, services and restaurant )

The code for hotel folio is,

class hotel_folio(osv.Model):

        def copy(self, cr, uid, id, default=None, context=None):

                return self.pool.get('sale.order').copy(cr, uid, id, default=None, context=None)

       def _invoiced(self, cursor, user, ids, name, arg, context=None):

                return self.pool.get('sale.order')._invoiced(cursor, user, ids, name, arg, context=None) 

       def _invoiced_search(self, cursor, user, obj, name, args):

                return self.pool.get('sale.order')._invoiced_search(cursor, user, obj, name, args)     

_name = 'hotel.folio'

_description = 'hotel folio new'

_inherits = {'sale.order': 'order_id'}

_rec_name = 'order_id'

_order = 'id desc'

_columns = {                     

                         'name': fields.char('Folio Number', size=24, readonly=True),

                         'order_id': fields.many2one('sale.order', 'Order', required=True, ondelete='cascade'),

                         'checkin_date': fields.datetime('Check In', required=True, readonly=True, states={'draft':[('readonly', False)]}),

                         'checkout_date': fields.datetime('Check Out', required=True, readonly=True, states={'draft':[('readonly', False)]}),

                          'room_lines': fields.one2many('hotel.folio.line', 'folio_id', readonly=True, states={'draft': [('readonly', False)], 'sent':                             [('readonly', False)]}, help="Hotel room reservation detail."),

                         '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."),

                         '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-ou                             time."),

                           'duration': fields.float('Duration in Days', readonly=True, help="Number of days which will automatically count from                            the check-in and check-out date. "),       

                          }

                         _defaults = {

                         'name': lambda obj, cr, uid, context: obj.pool.get('ir.sequence').get(cr, uid, 'hotel.folio'),

                         'hotel_policy':'manual'

                         }

                         _sql_constraints = [

                        ('check_in_out', 'CHECK (checkin_date<=checkout_date)', 'Check in Date Should be less than the Check Out                                    Date!'),

                         ]

--------------------------------------------------------------------------------------------------------------------------------------------------------

The form view for folio is,

<form string="Folio" version="7.0">

        <header>       

           <button name="order_confirm" string="Confirm Folio" states="draft" icon="gtk-apply" class="oe_highlight"/>

          <button name="invoice_recreate" string="Recreate Invoice" states="invoice_except" icon="gtk-redo" class="oe_highlight"/>

          <button name="invoice_corrected" string="Invoice Corrected" states="invoice_except" icon="gtk-paste-v"                          class="oe_highlight"/>

          <button name="ship_recreate" string="Recreate Procurement" states="shipping_except" icon="gtk-redo"                 class="oe_highlight"/>

           <button name="ship_corrected" string="Procurement Corrected" states="shipping_except" icon="gtk-paste-v"               class="oe_highlight"/>

            <button name="manual_invoice" states="manual" string="Create Invoice" icon="gtk-new" class="oe_highlight"/>

            <button name="ship_cancel" string="Cancel Folio" states="shipping_except" icon="gtk-cancel" class="oe_highlight oe_highlight" />

             <button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object" icon="gtk-file" class="oe_highlight"/>

              <button name="action_cancel" string="Cancel Folio" states="manual,progress" type="object" icon="gtk-cancel" class="oe_highlight"/>        

             <button name="cancel" string="Cancel Folio" states="draft" icon="gtk-cancel" class="oe_highlight"/>

            <button name="invoice_cancel" string="Cancel Folio" states="invoice_except" icon="gtk-cancel" class="oe_highlight"/>

            <field name="state" select="2" widget="statusbar" statusbar_visible="draft,sent,invoiced,done"/>

</header>


<notebook colspan="4">              

          <page string="Folio">

                <group colspan="4" col="4">

                        <field name="partner_id" on_change="onchange_partner_id(partner_id)" required="1" string="Guest Name"/>

                        <field name="partner_invoice_id" domain="[('parent_id','=',partner_id)]"/>

                        <field name="pricelist_id" domain="[('type','=','sale')]" />

                        <field name="project_id"/>

                      <field name="partner_shipping_id" domain="[('parent_id','=',partner_id)]" invisible="1" />

                 </group>

         <newline/>

                 <group colspan="4" col="6">

                         <field name="checkin_date" on_change="onchange_dates(checkin_date,checkout_date)" />

                        <field name="checkout_date" on_change="onchange_dates(checkin_date,checkout_date)"/>

                        <field name="duration" on_change="onchange_dates(checkin_date,False,duration)"/>

                       </group>

             </group>


 <separator string="Room Lines" colspan="4"/>

                   <field name="room_lines" colspan="4" string="Room Line" default_get="{'checkin_date':                                   checkin_date,'checkout_date':checkout_date}" nolabel="1">

                  <form string="Room Line" version="7.0">

                 <notebook>

                      <page string="Folio Line">

                      <group>

                          <field name="checkin_date"/>

                          <field name="checkout_date" on_change="on_change_checkout(checkin_date,checkout_date)" />


<separator string="Automatic Declaration" colspan="4"/>

                        <field name="product_uom_qty"                   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)"  context="{'partner_id':parent.partner_id,'quantity':product_uom_qty,'pricelist':parent.pricelist_id,'uom':product_uom}"  invisible="1"/>

                <field name="product_uom" 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)"  string="Rent(UOM)"/>

                <field name="product_id"  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)"  context="{'partner_id':parent.partner_id,'quantity':product_uom_qty,'pricelist':parent.pricelist_id,'uom':product_uom}"  colspan="4" select="1" domain="[('isroom','=',True)]" string="Room No"/>

</group>


 <separator string="Manual Description"  colspan="4" />

            <field name="name" colspan="4" select="2" placeholder="---Description---"/>

            <group>

                <field name="price_unit" select="2" string="Rent"/>

                <field name="discount"/>

            <newline/>

                <field name="tax_id" colspan="4" nolabel="1"/>

 <separator string="States" colspan="4"/>

            <field name="state" select="2"/>

            <field name="invoiced" select="2"/>

 </group>

</page>


<page string="Extra Info">

    <group>

        <field name="product_uos_qty"/>

        <field name="product_uos" />

        <field name="address_allotment_id" select="2"/>

    </group>

</page>

<page string="History">

        <separator string="Invoice Lines" colspan="4"/>

            <field name="invoice_lines" colspan="4" nolabel="1"/>

 </page>

</notebook>

</form>

        <tree string = "Room Line">

                <field name="name"/>

                <field name="checkin_date"/>

                <field name="checkout_date"/>

                <field name="product_id" string="Room No"/>    

               <field name="product_uom" string="Rent(UOM)"/>

                <field name="price_unit" string="Rent"/>

               <field name="price_subtotal"/>

                <field name="state"/>

        </tree>

</field>

After confirmation of folio, generates invoice.

0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
How to copy value of TOTAL field form one module to add into customer invoices?
invoice customer hotel
Avatar
0
जुल॰ 15
3765
change between 2 Invoice formats Solved
invoice
Avatar
Avatar
1
जुल॰ 25
1756
Hello, how can I change the size of the logo and the invoice? Solved
invoice
Avatar
Avatar
Avatar
2
जुल॰ 25
2123
Validation Error. You will need to clear the Journal Entry's Number to proceed
invoice
Avatar
Avatar
1
जुल॰ 25
3056
Restricting Salesperson Access to Customer Invoice Details
invoice
Avatar
Avatar
Avatar
3
अप्रैल 25
2937
कम्यूनिटी
  • ट्यूटोरियल्स
  • दस्तावेज़
  • फ़ोरम
ओपन सोर्स
  • डाउनलोड
  • Github
  • रनबॉट
  • अनुवाद
सेवाएं
  • Odoo.sh Hosting
  • सहायता
  • अपग्रेड
  • कस्टम डेवलपमेंट्स
  • शिक्षा
  • अकाउंटेंट खोजें
  • पार्टनर ढूंढें
  • पार्टनर बनें
हमारे बारे में
  • हमारी कंपनी
  • ब्रांड ऐसेट
  • संपर्क करें
  • नौकरियां
  • इवेंट
  • पॉडकास्ट
  • ब्लॉग
  • ग्राहक
  • लीगल • गोपनीयता
  • सुरक्षा
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo, बिज़नेस से जुड़े ऐप्लिकेशन का एक कलेक्शन है जो ओपन सोर्स पर आधारित है. इसमें आपकी कंपनी की हर ज़रूरत के लिए ऐप्लिकेशन हैं. जैसे, सीआरएम, ई-कॉमर्स, अकाउंटिंग, इन्वेंट्री, पॉइंट ऑफ़ सेल, प्रोजेक्ट मैनेजमेंट वगैरह.

Odoo की सबसे बड़ी खासियत है कि यह इस्तेमाल करने में बहुत आसान है और यह पूरी तरह से इंटिग्रेट किया हुआ है.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now