Search 1.9 billion lines of Odoo code on GitHub

pos_default_empty_image

Author: Akretion, GRAP, Odoo Community Association (OCA)
License: AGPL-3
Branch: 12.0
Repository: aurestic/pos
Dependencies: point_of_sale
Languages: CSS (12, 1.8%), HTML (368, 55.8%), JavaScript (40, 6.1%), PO File (28, 4.2%), Python (41, 6.2%), XML (69, 10.5%), and reStructuredText (102, 15.5%)
Other branches: 10.0, 8.0, 8.0-fix_osv_deprecated, 8.0-imp-lazy_price_with_taxes, 8.0-pos_save_client_error_fix, and 8.0_FIX_pos_order_to_sale_order_tax
Other repositories: 2FM/pos, AK017/pos, AMEERAAA/pos, Aboulwafi/pos, AbubakarHusaain/pos, AcruxLab/pos, AntonioOERP/pos, Ark74/pos, CB-Gran-Canaria/pos, CGenie/pos, Callino/pos, Change2improve/pos, ClearCorp/oca-pos, Comunitea/pos, Confidere/pos, ControlWebManager/pos, Cywaithaka/pos, DatabasesWorks/pos-1, Dobtor-OCA/pos, Domatix/pos, EBII/pos, ERPLibre/pos, EddieIndboo/pos, Ellyan/pos, ElvenStudio/pos, EstebanMonge/pos, Firasbessaad/pos, Fkawala/pos, ForgeFlow/pos, GabbasovDinar/pos, Gabinete-Digital/pos, Gofekra/pos, GrupoAlvamex/pos, GuavanaUX/pos, Guillon88/pos, Guobower/pos, Hectorline/pos, HirenDangar/pos, Ingeos/pos, JayVora-SerpentCS/pos-1, Jeisonpernia/pos, JohnTheBeloved/pos, Jzano/pos, KasunDA/pos, Khanstore/pos, KolushovAlexandr/pos, LasLabs/pos, LevelPrime/pos, Mahmoud-Alaa-Eldeen/pos, Martronic-SA/pos, MathBenTech/pos, Mckamba12/pos, Mefistous/pos, MindAndGo/pos, Murtaza-Mithaiwala/pos, NL66278/pos, NachoAlesLopez/pos, NathanQj/pos, NeatNerdPrime/pos, OCA-MUK/pos, OCA/pos, ORETEK/pos, Odilio/pos, Ommo73/pos, OpusVL/pos, PierrickBrun/pos, PlanetaTIC/pos, PrasongDev/pos-1, QANSEE/pos, QubiQ/pos, RaulCarbonell/pos, SanteLibre/pos, Sarfarazsajjad/pos, SerpentConsultingServices/pos, SetRac/pos, SeuMarco/pos, SimoRubi/pos, StefanRijnhart/pos, Studio73/pos, TRESCLOUD/pos, Tecnativa/pos, Theseverinn/pos, Tonow-c2c/pos, Turiinjargal/pos, VisiionSolucionesTecnologicas/pos, abassvoice/pos, abdulhamidalsalman/pos, abiezersifontes/pos, abstract-open-solutions/pos, acsone/pos, acsonefho/pos, adeel982010/pos, adolfoeliazat/pos, ahilali/pos, ahmed22s885111qq/pos, ahmedgenina/pos, ajinvn2019/pos, akretion/pos, albertkouemou/pos, alfieqashwa/pos, amendoncabh/pos-extras, ammarofficewla/pos, amygeis/pos, anangari/pos, angelmoya/pos, anhvu-sg/pos, ansinaesmejor/pos, apetbiz/pos, apwellington/pos-1, aroodooteam/pos, atilamedia/pos, azmeuk/pos, bacgroup/pos, bankmahal/pos, berpweb/pos, bimajatiwijaya/pos, binhexsystems/pos, bishalgit/pos, bud-e/pos, camptocamp/pos, carrm29/pos, ccarly/pos, chetanrdhaduk/pos, cmayo/pos, coopiteasy/pos, corsisa/pos, cristinamartinrod/pos, dansanti/pos, darmaa/pos, dcorio/pos, detian08/pos, diagramsoftware/pos, diegogd/pos, drojivadiya/pos, druidoo-dev/pos, dsasoftware/pos, e-COSI/pos, eLBati/pos, edkroked/pos, elhamdaoui/pos, elvirekemajou/pos, enmasys/pos, eribowo/pos, etobella/pos, evansochuka/pos, exosoftware/oca-pos, factorlibre/pos, fanguloa/pos, fauzi-tsani/pos, fayezt/pos, fedibits/pos, flotho/pos, fmdl/pos, fraxnet/pos, gaelTorrecillas/pos, garzadekoster/pos, globalic/pos, grap/pos, grethellgarcia/pos, grexe/pos, guadaltech/pos, haidd/pos, haroldtamo/pos, haryoran04/pos, heymanh/pos, hibou-io/oca-pos, hoangpq/pos, hpatelserpentcs/pos, iRichGit/pos, imaralux/pos, invitu/pos, isos/pos, isoscl/pos, jairuque/pos, jajunero/pos, jalaludin/pos, javaaid/pos, jcarlosmontoya/pos, jcsuscriptor/pos, jvpacoin/pos, jweste/pos, kach200/pos, karouani/pos, keadanis/pos, kemekongfrancois/pos, kh-hathout/pos, kmee/pos, lambda-is/pos, lauracvilla-zz/pos, leelapriskila/pos, legalsylvain/pos, leonidasthe300/pos, lideritjnma/pos, lilyLovesJeans/pos, linuxnow/pos, llacroix/pos, lollia6/pos-1, lukehuang/pos, lutonda/pos, makeplerc/pos, manolain/pos, manuel3366/pos, manuelcalerosolis/pos, marionumza/pos, mathieuvatel/pos, mettadipa/pos, minorisa/pos, mnajjari49/pos, mnoukrati/pos, moignon/pos, molandtoxx/pos, mondoraemon/pos, nabima/pos, navarromiguel/pos, neohckim/pos, nilshamerlinck/pos, nodoo/pos, odoosoft/pos, ondrong/pos, open-synergy/pos, osfp-Pakistan/pos, ossamagharib/pos, oswaldasmith/pos, othmancs/pos, ovnicraft/pos, percevaq/pos, petypi/pos, phuctranerp/pos, popcomputadores-desenv/pos, primes2h/pos, pscloud/pos, pythoner-3k/pos, quentinDupont/pos, r-sierra/pos, regaby/pos, resources-hub/pos, retail-ecommerce/pos, reynaldiyosfino/pos, rm-jamotion/pos, robertsvx27/pos, rossasa/pos, royalline1/pos, rudisulistyo/pos-1, rupa-acespritech/pos, sagar-developer-92/pos, samirGuesmi/pos, sanube/pos, saonam/pos, sc4you/pos, schouleu/pos, sebastiken/pos, sendalpegat/pos, simahawk/pos, simonjejcic/pos, simplifysolutions/pos, singcust/pos, soadrca/pos, socomp/pos, solbutec/pos, solvosci/pos, sotav/pos, spacemonkeythe/pos, ssaid/pos, stesi/pos, straziboy/pos, subteno-it/pos, sunflowerit/pos, syci/pos, tafaRU/pos, takobi-online/pos, tanceee/pos, tegin/pos, thinkopensolutions/oca-l10n-brazil, thinkopensolutions/oca-pos, thmaph/pos, timbze/pos, tonihr/pos, tonyli0127/pos, tools-env/pos, trinanda/pos, uktc87504/pos, unitek-solusi/OCA-pos, valenciaricardos/pos, valmarnet/pos, wahello/oca-pos, wajidksa/pos-1, wamdam/pos, weddingjuma/pos, weisk/pos, xpansa/pos, y2gsmith/pos, yasmanycastillo/pos, ythak-ylog/pos, yusniermatos/pos, and zarumaru/pos

<h1 class="title">POS Default empty image</h1> <p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/pos/tree/12.0/pos_default_empty_image"><img alt="OCA/pos" src="https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_default_empty_image"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/184/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p>This module extends the functionality of point of sale to make PoS load faster and to improve products display.</p> <a name="point-of-sale-load-faster"></a> <h2>Point Of Sale Load faster</h2> <p>In the point of sale, loading products without image spend unnecessary time and resources.</p> <p>When you have 8000 products in your Point of Sale and most of them don't have images, removing thousands of useless requests is welcome: the PoS loads faster that way.</p> <a name="improve-products-display"></a> <h2>Improve products display</h2> <p>By default, Odoo PoS display a useless generic image for products that doesn't have images.</p> <blockquote> <div class="figure"> <img alt="https://raw.githubusercontent.com/OCA/pos/12.0/pos_default_empty_image/static/description/pos_display_default.png" src="https://raw.githubusercontent.com/OCA/pos/12.0/pos_default_empty_image/static/description/pos_display_default.png" style="width: 800px;" /> </div> </blockquote> <p>With this module, the display of the product is changed, (Size of the name is increased for better visibility);</p> <blockquote> <div class="figure"> <img alt="https://raw.githubusercontent.com/OCA/pos/12.0/pos_default_empty_image/static/description/pos_display_improved.png" src="https://raw.githubusercontent.com/OCA/pos/12.0/pos_default_empty_image/static/description/pos_display_improved.png" style="width: 800px;" /> </div> </blockquote> <a name="technical-information"></a> <h2>Technical information</h2> <p>Each time the PoS instantiate a product, it will add this code for each product</p> <pre> <code lang="html">&lt;img src=&quot;'/web/binary/image?model=product.product&amp;field=image_medium&amp;id='+product.id;&quot; /&gt;</code> </pre> <p>The browser will trigger as many requests than there are different urls.</p> <p>If you have many products, the browser will soon reach his limit of network connections to Odoo server and will wait for free slots instead of loading other valuable contents. Then the PoS is then very slow to work with.</p> <p>This module adds a field has_image in product.product model.</p> <p>If product has no image, the product image url is not sent to the PoS</p> <p><strong>Table of contents</strong></p> <a name="changelog"></a> <h2>Changelog</h2> <ul class="simple"> <li>Feb 2016 : First version</li> <li>March 2018 : migration to v10 and improvements for Display</li> <li>January 2020 : migration to v12</li> </ul> <a name="bug-tracker"></a> <h2>Bug Tracker</h2> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/pos/issues">GitHub Issues</a>. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed <a class="reference external" href="https://github.com/OCA/pos/issues/new?body=module:%20pos_default_empty_image%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> <p>Do not contact contributors directly about support or help with technical issues.</p> <a name="credits"></a> <h2>Credits</h2> <a name="authors"></a> <h3>Authors</h3> <ul class="simple"> <li>Akretion</li> <li>GRAP</li> </ul> <a name="contributors"></a> <h3>Contributors</h3> <ul class="simple"> <li>Hparfr &lt;<a class="reference external" href="https://github.com/hparfr">https://github.com/hparfr</a>&gt; <a class="reference external" href="https://akretion.com">Akretion</a></li> <li>Sylvain LE GAL &lt;<a class="reference external" href="https://twitter.com/legalsylvain">https://twitter.com/legalsylvain</a>&gt;</li> <li>Invitu &lt;<a class="reference external" href="https://github.com/invitu">https://github.com/invitu</a>&gt;</li> </ul> <a name="maintainers"></a> <h3>Maintainers</h3> <p>This module is maintained by the OCA.</p> <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> <p>OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.</p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/pos/tree/12.0/pos_default_empty_image">OCA/pos</a> project on GitHub.</p> <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>