You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Elscine 51ed53a8fd
Update CONTRIBUTING.md
4 years ago
..
i18n Translated using Weblate (Spanish) 4 years ago
models [MIG] pos_default_empty_image: Migration to 12.0 5 years ago
readme [REF] Oca convention, add readme files 5 years ago
static [UPD] README.rst 5 years ago
views [MIG] pos_default_empty_image: Migration to 12.0 5 years ago
README.rst [UPD] README.rst 5 years ago
__init__.py [PORT] pos_default_empty_image courtesy @invitu 5 years ago
__manifest__.py [MIG] pos_default_empty_image: Migration to 12.0 5 years ago

README.rst

=======================
POS Default empty image
=======================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github
:target: https://github.com/OCA/pos/tree/12.0/pos_default_empty_image
:alt: OCA/pos
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_default_empty_image
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/184/12.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|

This module extends the functionality of point of sale to make PoS load faster
and to improve products display.

Point Of Sale Load faster
=========================

In the point of sale, loading products without image spend unnecessary time
and resources.

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.


Improve products display
========================

By default, Odoo PoS display a useless generic image for products that doesn't
have images.

.. figure:: https://raw.githubusercontent.com/OCA/pos/12.0/pos_default_empty_image/static/description/pos_display_default.png
:width: 800 px

With this module, the display of the product is changed, (Size of the name
is increased for better visibility);

.. figure:: https://raw.githubusercontent.com/OCA/pos/12.0/pos_default_empty_image/static/description/pos_display_improved.png
:width: 800 px

Technical information
=====================

Each time the PoS instantiate a product, it will add this code for each product

.. code:: html

<img src="'/web/binary/image?model=product.product&field=image_medium&id='+product.id;" />

The browser will trigger as many requests than there are different urls.

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.

This module adds a field has_image in product.product model.

If product has no image, the product image url is not sent to the PoS

**Table of contents**

.. contents::
:local:

Changelog
=========

* Feb 2016 : First version
* March 2018 : migration to v10 and improvements for Display
* January 2020 : migration to v12

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/pos/issues>`_.
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
`feedback <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**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Akretion
* GRAP

Contributors
~~~~~~~~~~~~

* Hparfr <https://github.com/hparfr> `Akretion <https://akretion.com>`_
* Sylvain LE GAL <https://twitter.com/legalsylvain>
* Invitu <https://github.com/invitu>

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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.

This module is part of the `OCA/pos <https://github.com/OCA/pos/tree/12.0/pos_default_empty_image>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.