Search 1.9 billion lines of Odoo code on GitHub

pos_restaurant_base

Author: IT-Projects LLC, Dinar Gabbasov
License: Other OSI approved licence
Branch: 13.0-pos_network_printer
Repository: em230418/pos-addons
Dependencies: point_of_sale, and pos_restaurant
Languages: HTML (24, 7.7%), JavaScript (193, 61.9%), Python (22, 7.1%), XML (19, 6.1%), and reStructuredText (54, 17.3%)
Other branches: 10.0, 10.0-jussi, 10.0-pos_invoice_pay-screens_derive, 10.0-pos_invoice_pay-where-is-change-fix, 10.0-pos_invoice_postponed-main-image, 10.0-pos_multi_session_sync-logs, 11.0, 11.0-pos_invoice_pay-add-lines, 11.0-pos_invoice_pay-fix-css-print, 11.0-pos_invoice_pay-issue1182, 11.0-pos_multi_sesssion-port-sync-offline-fix-from-10, 11.0-pos_nfc, 11.0-pos_qr_scan-ctx-fix, 12.0, 12.0-dinar-port-pr1027, 12.0-makepot, 12.0-pos_invoice_pay-fix-css-print, 12.0-pos_invoice_pay-get_sale_details_fix, 12.0-pos_invoice_pay-port-fix-from-10.0, 12.0-pos_mobile-fix-clientlist, 12.0-pos_multi_session-port-fixes-from-10, 12.0_pos_product_category_discount-docs, 13.0-price-change, 13.0-travis-bump-build-link, 13.0-travis-bump-python, 13.0-travis-notifications, 13.0-travis-porting-to-13, and patch-1
Other repositories: 001101/pos-addons, 2FM/pos-addons, ADVALAKI/pos-addons, AEK-BKF/pos-addons, AITIC/pos-addons, Abdullah-Alghoul/pos-addons, AcruxLab/pos-addons, Alikerin/pos-addons, Alitec-sg/pos-addons, AndryEddy/pos-addons, ArtyomLosev/pos-addons, Banetese/pos-addons, BayarkhuuBataa/pos-addons, BrayhanJC/pos-addons, CarlosZea/pos-addons, ClearCorp/it-projects-pos-addons, ConsciousGroup/pos-addons, CustomOdoo/pos-addons, CybroOdoo/pos-addons, DITIntl/pos-addons, Denzeland/pos-addons, Dobtor-it-projects-llc/pos-addons, DudhatShivam/pos-addons, ERPLibre/pos-addons, Elbagoury/pos-addons, EmilioBravo/pos-addons, Englishrain/pos-addons, Enigma228322/pos-addons, FabienAmiaud/pos-addons, Fitranugraha/pos-addons, GabbasovDinar/pos-addons, Gofekra/pos-addons, GrupoAlvamex/pos-addons, GuavanaUX/pos-addons, Guobower/pos-addons, ICTSTUDIO/pos-addons, ImplantiSolucoes/pos-addons, Jeisonpernia/pos-addons, JorgeJuarezM/pos-addons, Jzano/pos-addons, KolushovAlexandr/pos-addons, KonosCL/pos-addons, MYRCONSULTING/pos-addons, MacManas/pos-addons, Mahmoud-Alaa-Eldeen/pos-addons, MediaJockey/pos-addons, MeetKD/pos-addons, MihranThalhath/pos-addons, MjAbuz/pos-addons, ModSaeed/pos-addons, Muhammad105/pos-addons, NeatNerdPrime/pos-addons, NigmatullinAN/pos-addons, Nikhilkrishnan0101/pos-addons, NilmarShereef/pos-addons, ORETEK/pos-addons, Odoo-10-test/pos-addons, Ommo73/pos-addons, PabloValdivia/pos-addons, Perpetualism/pos-addons, Posland/pos-addons, RL-OtherApps/pos-addons, Ramil-Mukhametzyanov/pos-addons, Raniani-lab/pos-addons, RealSolutionsLux/pos-addons, RubenWaterman/pos-addons, Rusllan/pos-addons, SantosJMM/pos-addons, SetRac/pos-addons, SeuMarco/pos-addons, SolutionSeekers/pos-addons, SouyiroZ/pos-addons, Stanadigme/pos-addons, Storegud/pos-addons, TestMergeBot/pos-addons, ThanhICSC/skit_odoo12, TheCloneMaster/pos-addons, TurBoss/pos-addons, Vanneri/pos-addons, W360S/pos-addons, abassvoice/pos-addons, abdiiwan1841/pos-addons, abdo3247/pos-addons, abdounasser202/pos-addons, abdulrhmans/pos-addons, adeel982010/pos-addons, ahmedbahaa61/pos-addons, aipaperclip/pos-addons, ajaxangular/pos-addons, ajinvn2019/pos-addons, akekaphop/pos-addons, akhdaniel/pos-addons, akhif4u/pos-addons, akloptim/pos-addons, akretion/pos-addons, akshaynesm/pos-addons, albertkouemou/pos-addons, alcdigital/pos-addons, alhashash/pos-addons, allan225/pos-addons, amendoncabh/pos-addons, amine05/pos-addons, anasallaham/pos-addons, anggadjava/pos-addons, antherkiv/pos-addons, ata2001/pos-addons, aymeperdomo/pos-addons, bduong06/pos-addons, benhenicraf/pos-addons, benoitlavorata/pos-addons, bingika/pos-addons, bishalgit/pos-addons, bitodoo/pos-addons, bluedaemondev/pos-addons, bopo/pos-addons, borera/pos-addons, brmad175/pos-addons, carlware/pos-addons, cbaltodano90/pos-addons, cfljdfz/pos-addons, cglill/pos-addons, chafarleston/pos-addons, chenguoliang318/pos-addons, ciptasoft/pos-addons, claro5/pos-addons, code-pack/pos-addons, coolzhoe/pos-addons, coopiteasy/pos-addons, damendieta/pos-addons, detian08/pos-addons, dev-tanvir/pos-addons, diegobgl/pos-addons, diegogd/pos-addons, domedfd/pos-addons, dong-z/pos-addons, dorucioclea/pos-addons, dynaz/pos-addons, eabellom/pos-addons, eddyrene/pos-addons, ehtishamfaisal/pos-addons, ejbdev/pos-addons-fork, ekitsikpui5/pos-addons, elblasy33/pos-addons, elsemieni/pos-addons, eribowo/skit_odoo12, fanguloa/pos-addons, fauzi-tsani/pos-addons, fuentes010/pos-addons, gaelTorrecillas/pos-addons, galcorta/pos-addons, gandad/pos-addons, gastonfeng/pos-addons, gayanW/pos-addons, germanponce/pos-addons, giangle9695/pos-addons, gokhancetiner/pos-addons, grethellgarcia/pos-addons, grottas/pos-addons, guohuadeng/pos-addons, gustotc/pos-addons, haroldtamo/pos-addons, harsh3547/pos-addons, haryoran04/pos-addons, haygcao/pos-addons, herry88/pos-addons, hinfo506/pos-addons, holacliente/pos-addons, hunghn/pos-addons, huntergps/pos-addons, husseinAliPVG/pos-addons, id10tttt/pos-addons, iledarn/pos-addons, ilmir-k/pos-addons, indexa-git/pos-addons, infobit/pos-addons, initOS/pos-addons, innoving/pos-addons, itpp-labs/pos-addons, izzihector/pos-addons, jason156/pos-addons, javaaid/pos-addons, javogiraldez/skit_odoo12, jayanowsky/pos-addons, jeffryjdelarosa/pos-addons, jimmyec/pos-addons, joycehuan/pos-addons, jupiterzhuo/pos-addons, jupiterzhuo/skit_odoo12, justuni/pos-addons, kaadevelop/pos-addons, kaadevelopment/pos-addons, kalanso/pos-addons, kamasteve/pos-addons, keadanis/pos-addons, ketu/pos-addons, kit9/pos-addons, kit9/skit_odoo12, kmee/pos-addons, lammh/pos-addons, lawrencekm/pos-addons, leangjia/it-projects-pos-addons, legalsylvain/pos-addons, leonidasthe300/pos-addons, lindsaychung/pos-addons, lintoct/pos-addons, litnimax/pos-addons, ljacobo/pos-addons, llc-odoo/pos-addons, luis-rj/pos-addons, makeplerc/pos-addons, manolo03cali/pos-addons, marcelomora/pos-addons, marcelsavegnago/pos-addons, marionumza/it-projects-llc-pos-addons, marionumza/skit_odoo12, mariovillagra/pos-addons, masterdungeon/pos-addons, maurolguin1/pos-addons, mdark1001/pos-addons, mgielissen/pos-addons, mhassanqureshi/pos-addons, mohamedhabibchallouf/pos-addons, mrey37/pos-addons, mrezki/pos-addons, mrizqiariadi/pos-addons, muk-projects/pos-addons, myonnet/pos-addons, nabiforks/pos-addons, nick2474/pos-addons, niulinlnc/pos-addons, niulinlnc/skit_odoo12, noorealam96/pos-addons, nsxsoft/pos-addons, odoo-modules/pos-addons, odoo-revisar/pos-addons, odoo-test-9/pos-addons, odoo247/pos-addons, odoofans/pos-addons, ogyr/pos-addons, ondrong/pos-addons, one2pret/pos-addons, open-synergy/pos-addons, paulpwo/pos-addons, pe03re/pos-addons, phuctranerp/pos-addons, popcomputadores-desenv/pos-addons, prihadi-r/pos-addons, pushnube/pos-addons, pythoner-3k/pos-addons, quantso/pos-addons, quevedin/pos-addons, rashikkathuria/pos-addons, raulovallet/pos-addons, rkhalil1990/pos-addons, robelale/pos-addons, romendil/pos-addons, royalline1/pos-addons, rudisulistyo/pos-addons, samjaninf/pos-addons, samsagaz/pos-addons, sc4you/pos-addons, sgeerish/pos-addons, sheelarajeshkumar/pos-addons, sinandurgut07/pos-addons, sinomate/pos-addons, sisboca/pos-addons, sm2x/pos-addons, sm2x/skit_odoo12, softhealer/pos-addons, solbutec/pos-addons, sopheak1/pos-addons, sreejithcybrosys/pos-addons, srikesh/skit_odoo12, ssaid/pos-addons, steingabelgaard/pos-addons, sum1201/pos-addons, sunflowerit/pos-addons, suningwz/pos-addons, tankisstank/pos-addons, tanoggy/pos-addons, tasmail/pos-addons, thinkopensolutions/itprojectsllc-pos-addons, thomasbshop/pos-addons, timbze/pos-addons, toanthuan/pos-addons, tonitons/pos-addons, toolkt/pos-addons, trojikman/pos-addons, tuanace/pos-addons, tuedang/pos-addons, umair-gujjar/pos-addons, valenciaricardos/pos-addons, valley51/pos-addons, vanthaiunghoa/pos-addons, vdedyukhin/pos-addons, vfa-huytq/pos-addons, vidtsindia/pos-addons, vkuldeep/pos-addons, weddingjuma/pos-addons, westlyou/pos-addons, wuilfred/pos-addons, wwdxfa/pos-addons, x3noah/pos-addons, xduran/pos-addons, xizqu/pos-addons, xoe-labs/pos-addons, xuanyimin/pos-addons, yasr3mr96/pos-addons, yelizariev/pos-addons, yoozeer/pos-addons, zamzamintl/pos-addons, zfis/skit_odoo12, zhangire/pos-addons, and zulfikarm27/pos-addons

<a class="reference external image-reference" href="https://itpp.dev"><img alt="Tested and maintained by IT Projects Labs" src="https://itpp.dev/images/infinity-readme.png" /></a> <a name="pos-restaurant-base"></a> <h2>POS restaurant base</h2> <p>Technical module in POS.</p> <p>The standard <code>Printer</code> class in <code>pos_restaurant/static/src/js/multiprint.js</code> does not allow you to override the functions of this class. This module duplicates the <code>Printer</code> class and allows you to redefine it.</p> <p>Also, here were redefined the <code>computeChanges</code>, <code>printChanges</code>, <code>hasChangesToPrint</code>, <code>build_line_resume</code> functions from <code>Order</code> class and <code>set_dirty</code> function from <code>Orderline</code> class to improve speed and were added new functions such as <code>print_order_receipt</code>, <code>get_line_resume</code> for speed improvement of load POS.</p> <p>In the <code>orderline_change</code> function of the <code>OrderWidget</code> class, the orderline rendering was moved to a separate function to optimize the orderline rendering speed in the order after sending this orderline to the kitchen.</p> <a name="usage"></a> <h3>Usage</h3> <p>Example of using for the Printer class</p> <p>Connection:</p> <pre> <code>var Printer = require('pos_restaurant.base');</code> </pre> <p>Using:</p> <pre> <code>Printer.include({ print: function(receipt){ // your code // call super method this._super(receipt); }</code> </pre> <a name="questions"></a> <h3>Questions?</h3> <p>To get an assistance on this module contact us by email :arrow_right: <a class="reference external" href="mailto:help&#64;itpp.dev">help&#64;itpp.dev</a></p> <a name="contributors"></a> <h3>Contributors</h3> <ul class="simple"> <li>Dinar Gabbasov &lt;<a class="reference external" href="mailto:gabbasov&#64;it-projects.info">gabbasov&#64;it-projects.info</a>&gt;</li> </ul> <a name="further-information"></a> <h3>Further information</h3> <p>Odoo Apps Store: <a class="reference external" href="https://apps.odoo.com/apps/modules/13.0/pos_restaurant_base/">https://apps.odoo.com/apps/modules/13.0/pos_restaurant_base/</a></p> <p>Tested on <a class="reference external" href="https://github.com/odoo/odoo/commit/cdfa415829fa06f2860d65054fd8534180c8526a">Odoo 13.0</a></p>