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.
Metadata
Release files for odoo8-addon-pos-ticket-logo 8.0.1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| odoo8_addon_pos_ticket_logo-8.0.1.0.0-py2-none-any.whl | Python 2 | none | any | Details for odoo8_addon_pos_ticket_logo-8.0.1.0.0-py2-none-any.whl |
Release files / odoo8_addon_pos_ticket_logo-8.0.1.0.0-py2-none-any.whl
| Download URL | odoo8_addon_pos_ticket_logo-8.0.1.0.0-py2-none-any.whl |
|---|---|
| Size | 19.7 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
ee0cdd2c11dc2a0e06323239fcc0e73dc6bcb4719d4c830db08d7562ef6d4726
|
|
BLAKE2b-256 checksum How to use checksums |
7bf2b0e6c433247f60e6b659abdce0cc07e05ccc058d27da220444462f6d602d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for odoo8-addon-pos-ticket-logo 8.0.1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.