Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
113 changes: 113 additions & 0 deletions pos_early_receipt_printing/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
==========================
POS Early Receipt Printing
==========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:b72f153c5e0f9c73d969259c3d3e6d0285d4a323258d5d3b77bace56ee643223
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/18.0/pos_early_receipt_printing
:alt: OCA/pos
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/pos-18-0/pos-18-0-pos_early_receipt_printing
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/pos&target_branch=18.0
:alt: Try me on Runboat

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

This module allows you to display the option to print bills from the POS
even if it is not a restaurant type.

**Table of contents**

.. contents::
:local:

Configuration
=============

To configure this module, you need to:

1. Go to **Point of Sale**.

2. Open **Point of Sale → Settings**.

3. Enable **Early Receipt Printing**:

- For **shop** Point of Sale configurations, the option is available
in the **Bills & Receipts** section.
- For **restaurant** Point of Sale configurations, the option remains
available in the **Restaurant Mode** section.

Alternatively, you can configure the option directly from the Point of
Sale configuration form: **Point of Sale → Dashboard → (⋮) → Edit** and
enable **Early Receipt Printing**.

Usage
=====

To use this module, you need to:

1. Configure **Early Receipt Printing** on the desired Point of Sale.
2. Open a new Point of Sale session.
3. Create an order and add one or more products.
4. Click **Actions**.
5. Click **Bill** to print a receipt before completing the payment.

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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/pos/issues/new?body=module:%20pos_early_receipt_printing%0Aversion:%2018.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
-------

* Sygel

Contributors
------------

- `Sygel <https://www.sygel.es>`__:

- Valentín Vinagre
- Ángel García de la Chica
- Ángel Rivas
- Harald Panten

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/18.0/pos_early_receipt_printing>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions pos_early_receipt_printing/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
18 changes: 18 additions & 0 deletions pos_early_receipt_printing/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "POS Early Receipt Printing",
"summary": "Generate bill from Shop",
"version": "18.0.1.0.0",
"category": "POS",
"website": "https://github.com/OCA/pos",
"author": "Sygel, Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": ["pos_restaurant"],
"data": ["views/pos_config_views.xml"],
"assets": {
"point_of_sale._assets_pos": [
"pos_early_receipt_printing/static/src/xml/control_buttons.xml",
],
},
}
41 changes: 41 additions & 0 deletions pos_early_receipt_printing/i18n/ca_ES.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_early_receipt_printing
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-06-08 06:23+0000\n"
"PO-Revision-Date: 2026-06-08 08:25+0200\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: ca_ES\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 3.9\n"

#. module: pos_early_receipt_printing
#: model_terms:ir.ui.view,arch_db:pos_early_receipt_printing.pos_shop_bill_config_view_form
#: model_terms:ir.ui.view,arch_db:pos_early_receipt_printing.res_config_settings_view_form_pos_printbill
msgid "Allow to print receipt before payment"
msgstr "Permet imprimir el rebut abans del pagament"

#. module: pos_early_receipt_printing
#. odoo-javascript
#: code:addons/pos_early_receipt_printing/static/src/xml/control_buttons.xml:0
msgid "Bill"
msgstr "Factura"

#. module: pos_early_receipt_printing
#: model:ir.model,name:pos_early_receipt_printing.model_res_config_settings
msgid "Config Settings"
msgstr "Paràmetres de configuració"

#. module: pos_early_receipt_printing
#: model_terms:ir.ui.view,arch_db:pos_early_receipt_printing.pos_shop_bill_config_view_form
#: model_terms:ir.ui.view,arch_db:pos_early_receipt_printing.res_config_settings_view_form_pos_printbill
msgid "Early Receipt Printing"
msgstr "Impressió de rebut inicial"
41 changes: 41 additions & 0 deletions pos_early_receipt_printing/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_early_receipt_printing
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-06-08 06:23+0000\n"
"PO-Revision-Date: 2026-06-08 08:24+0200\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 3.9\n"

#. module: pos_early_receipt_printing
#: model_terms:ir.ui.view,arch_db:pos_early_receipt_printing.pos_shop_bill_config_view_form
#: model_terms:ir.ui.view,arch_db:pos_early_receipt_printing.res_config_settings_view_form_pos_printbill
msgid "Allow to print receipt before payment"
msgstr "Permitir imprimir el recibo antes del pago"

#. module: pos_early_receipt_printing
#. odoo-javascript
#: code:addons/pos_early_receipt_printing/static/src/xml/control_buttons.xml:0
msgid "Bill"
msgstr "Factura"

#. module: pos_early_receipt_printing
#: model:ir.model,name:pos_early_receipt_printing.model_res_config_settings
msgid "Config Settings"
msgstr "Ajustes de configuración"

#. module: pos_early_receipt_printing
#: model_terms:ir.ui.view,arch_db:pos_early_receipt_printing.pos_shop_bill_config_view_form
#: model_terms:ir.ui.view,arch_db:pos_early_receipt_printing.res_config_settings_view_form_pos_printbill
msgid "Early Receipt Printing"
msgstr "Impresión anticipada del recibo"
32 changes: 32 additions & 0 deletions pos_early_receipt_printing/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_early_receipt_printing
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2025-11-12 09:42+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.10.4\n"

#. module: pos_early_receipt_printing
#: model_terms:ir.ui.view,arch_db:pos_early_receipt_printing.pos_shop_bill_config_view_form
msgid "Allow to print receipt before payment"
msgstr "Consente di stampare la ricevuta prima del pagamento"

#. module: pos_early_receipt_printing
#: model:ir.model,name:pos_early_receipt_printing.model_res_config_settings
msgid "Config Settings"
msgstr "Impostazioni configurazione"

#. module: pos_early_receipt_printing
#: model_terms:ir.ui.view,arch_db:pos_early_receipt_printing.pos_shop_bill_config_view_form
msgid "Early Receipt Printing"
msgstr "Stampa ricevuta in anticipo"
29 changes: 29 additions & 0 deletions pos_early_receipt_printing/i18n/pos_early_receipt_printing.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_early_receipt_printing
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: pos_early_receipt_printing
#: model_terms:ir.ui.view,arch_db:pos_early_receipt_printing.pos_shop_bill_config_view_form
msgid "Allow to print receipt before payment"
msgstr ""

#. module: pos_early_receipt_printing
#: model:ir.model,name:pos_early_receipt_printing.model_res_config_settings
msgid "Config Settings"
msgstr ""

#. module: pos_early_receipt_printing
#: model_terms:ir.ui.view,arch_db:pos_early_receipt_printing.pos_shop_bill_config_view_form
msgid "Early Receipt Printing"
msgstr ""
4 changes: 4 additions & 0 deletions pos_early_receipt_printing/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2025 Ángel García de la Chica Herrera <angel.garcia@sygel.es>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import res_config_settings
20 changes: 20 additions & 0 deletions pos_early_receipt_printing/models/res_config_settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2025 Ángel García de la Chica Herrera <angel.garcia@sygel.es>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import api, models


class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"

@api.depends("pos_module_pos_restaurant", "pos_config_id")
def _compute_pos_module_pos_restaurant(self):
res = super()._compute_pos_module_pos_restaurant()
for res_config in self:
if (
not res_config.pos_module_pos_restaurant
and res_config.pos_config_id.iface_printbill
):
res_config.pos_iface_printbill = True
res_config.pos_iface_splitbill = False
return res
3 changes: 3 additions & 0 deletions pos_early_receipt_printing/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
11 changes: 11 additions & 0 deletions pos_early_receipt_printing/readme/CONFIGURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
To configure this module, you need to:

1. Go to **Point of Sale**.
2. Open **Point of Sale → Settings**.
3. Enable **Early Receipt Printing**:

* For **shop** Point of Sale configurations, the option is available in the **Bills & Receipts** section.
* For **restaurant** Point of Sale configurations, the option remains available in the **Restaurant Mode** section.

Alternatively, you can configure the option directly from the Point of Sale configuration form:
**Point of Sale → Dashboard → (⋮) → Edit** and enable **Early Receipt Printing**.
5 changes: 5 additions & 0 deletions pos_early_receipt_printing/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- [Sygel](https://www.sygel.es):
- Valentín Vinagre
- Ángel García de la Chica
- Ángel Rivas
- Harald Panten
2 changes: 2 additions & 0 deletions pos_early_receipt_printing/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module allows you to display the option to print bills from the POS
even if it is not a restaurant type.
7 changes: 7 additions & 0 deletions pos_early_receipt_printing/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
To use this module, you need to:

1. Configure **Early Receipt Printing** on the desired Point of Sale.
2. Open a new Point of Sale session.
3. Create an order and add one or more products.
4. Click **Actions**.
5. Click **Bill** to print a receipt before completing the payment.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading