| models | ||
| static/src/app/services | ||
| views | ||
| __init__.py | ||
| __manifest__.py | ||
| .gitignore | ||
| README.md | ||
POS Receipt Print Default Settings
This module allows you to set the default number of copies and paper size for POS receipts.
Features
- Default Number of Copies: Configure how many times the receipt should be printed.
- Default Paper Size: Suggest the paper size to the browser print dialog using
@pageCSS rules.- Supported sizes: 57mm (ISO 57), 58mm, 80mm, 80x210mm, 80x297mm, 112mm, A4.
How it works
- The module adds configuration fields in Point of Sale > Configuration > Settings.
- It patches the
PosStore.printReceiptmethod in Javascript to:- Inject dynamic CSS that overrides the
@pagesize. - Execute a loop to trigger the print function multiple times if more than 1 copy is requested.
- Inject dynamic CSS that overrides the
Requirements
- Odoo 19
- Standard browser printing (works best in Chrome/Edge for
@pagesupport). - For silent printing (no dialog), the browser must be started in kiosk mode (e.g.,
--kiosk-printingfor Chrome).