Pos ticket logo
Project description
POS Ticket logo
Add company logo in POS ticket
Motivation
`XmlReceipt` Qweb report is used when `iface_print_via_proxy` config is True: https://github.com/odoo/odoo/blob/8.0/addons/point_of_sale/static/src/js/screens.js#L1341
But in the case `iface_print_via_proxy` config is False, `PosTicket` Qweb report is used, and company_logo is not used: https://github.com/odoo/odoo/blob/8.0/addons/point_of_sale/static/src/js/screens.js#L984
In other hand, company_logo is loaded using `/web/binary/company_logo` controller that returns a 150px wide logo: https://github.com/odoo/odoo/blob/8.0/addons/point_of_sale/static/src/js/models.js#L371 but after that logo is resized to 300px width, so a pixelled logo appears even original logo is 300px wide. That’s why we override how company_logo is loaded. We also resized it to 260px (not 300px) wide because appears cut in PDF:
Credits
Contributors
Antonio Espinosa <antonioea@antiun.com>
Endika Iglesias <endikaig@antiun.com>
Maintainer
This module is maintained by the OCA.
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.
To contribute to this module, please visit http://odoo-community.org.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for odoo8_addon_pos_ticket_logo-8.0.1.0.0.99.dev1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f38bd54e297ada09c224fa35fcb85f732ae3bb1eb4eecd45db9b085e185ec1dd |
|
MD5 | a7b33fa660bd2f7a4e06d65b700efc9f |
|
BLAKE2b-256 | 861a34521013816919b8a08e4938b6dca655df9d87906ba6b661bc12153bf497 |