Search 1.9 billion lines of Odoo code on GitHub

hotel_data_bi

Author: Jose Luis Algara (Alda hotels) <osotranquilo@gmail.com>
License: AGPL-3
Branch: 11.0
Repository: OsoTranquilo/alda
Dependencies: base, hotel, hotel_channel_connector, and hotel_l10n_es
Languages: Python (625, 82.9%), XML (89, 11.8%), and reStructuredText (40, 5.3%)
Other repositories: AyoubZahid/hootel, Brahim820/hootel, InstaERP/hootel, Mefistous/hootel, RL-OtherApps/hootel, arpixnet/hootel, consultingerp/hootel, dockdoo/hootel, haylahi/hootel, hootel/hootel, hxsam/hootel, jakkritz/hootel, leodoooca/hootel, mulaudzicalvin/hootel, sm2x/hootel, suningwz/hootel, tate11/hootel, tomassole/hootel, vidtsin/hootel, and zfis/hootel

<a name="revenue-exporter"></a> <h2>REVENUE EXPORTER</h2> <p>Export Odoo data for Revenue MyDataBI</p> <a name="usage"></a> <h2>Usage</h2> <p>To use this module, you need to:</p> <p>Create a user and give the &quot;Hotel Management / Export data BI&quot; permission.</p> <p>To connect to Odoo via xmlrpc there are examples in <a class="reference external" href="https://www.odoo.com/documentation/10.0/api_integration.html">https://www.odoo.com/documentation/10.0/api_integration.html</a> in the &quot;Calling methods&quot; section with examples in several languages.</p> <p>A python example: import xmlrpclib</p> <p>url = '<a class="reference external" href="https://www.example.org">https://www.example.org</a>'</p> <p>username = <a class="reference external" href="mailto:'username&#64;example.org">'username&#64;example.org</a>'</p> <p>password = '123passwordexample'</p> <p>db = 'example_db_name'</p> <p>common = xmlrpclib.ServerProxy('{}/xmlrpc/2/common'.format(url))</p> <p>uid = common.authenticate(db, username, password, {})</p> <p>models = xmlrpclib.ServerProxy('{}/xmlrpc/2/object'.format(url))</p> <p>models.execute_kw(db, uid, password,'data_bi','export_data_bi', [ 8, '2018-01-01'])</p> <p>In the parameters of export_data_bi:</p> <p>archivo == 1 'Tarifa'</p> <p>archivo == 2 'Canal'</p> <p>archivo == 3 'Hotel'</p> <p>archivo == 4 'Pais'</p> <p>archivo == 5 'Regimen'</p> <p>archivo == 6 'Reservas'</p> <p>archivo == 7 'Capacidad'</p> <p>archivo == 8 'Tipo HabitaciĆ³n'</p> <p>archivo == 9 'Budget'</p> <p>archivo == 10 'Bloqueos'</p> <p>archivo == 11 'Motivo Bloqueo'</p> <p>archivo == 12 'Segmentos'</p> <p>archivo == 13 'Clientes'</p> <p>archivo == 14 'Estado Reservas'</p> <p>fechafoto = start date to take data</p> <p>in the example recive 8 'Tipo HabitaciĆ³n' from '2018-01-01'</p> <a name="credits"></a> <h2 class="with-subtitle">Credits</h2> <h2 class="section-subtitle" id="creator"><span class="section-subtitle">Creator</span></h2> <ul class="simple"> <li>Jose Luis Algara (Alda hotels) &lt;<a class="reference external" href="mailto:osotranquilo&#64;gmail.com">osotranquilo&#64;gmail.com</a>&gt;</li> </ul>