Skip to content
Open
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
107 changes: 107 additions & 0 deletions pos_restaurant_split_order_usability/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

====================================
POS Restaurant Split Order Usability
====================================

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

.. |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/license-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/16.0/pos_restaurant_split_order_usability
:alt: OCA/pos
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_restaurant_split_order_usability
: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=16.0
:alt: Try me on Runboat

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

This module extends the functionality of Point of Sale Restaurant module,
improving the display of the Split screen.

The modules adds a link between split orders and display already paid
lines in the Split screen.

**With the module**

.. figure:: https://raw.githubusercontent.com/OCA/pos/16.0/pos_restaurant_split_order_usability/static/description/pos_restaurant_split_order_usability.png

.. figure:: https://raw.githubusercontent.com/OCA/pos/16.0/pos_restaurant_split_order_usability/static/description/pos_restaurant_split_order_usability_offline.png

**Table of contents**

.. contents::
:local:

Changelog
=========

16.0.1.0.0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

* Initial release
* Already paid lines displayed on Split Screen

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_restaurant_split_order_usability%0Aversion:%2016.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
~~~~~~~

* GRAP

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

* Quentin DUPONT (quentin.dupont@grap.coop)

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.

.. |maintainer-quentinDupont| image:: https://github.com/quentinDupont.png?size=40px
:target: https://github.com/quentinDupont
:alt: quentinDupont

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-quentinDupont|

This module is part of the `OCA/pos <https://github.com/OCA/pos/tree/16.0/pos_restaurant_split_order_usability>`_ 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_restaurant_split_order_usability/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
26 changes: 26 additions & 0 deletions pos_restaurant_split_order_usability/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright (C) 2026-Today GRAP (http://www.grap.coop)
# @author Quentin DUPONT
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

{
"name": "POS Restaurant Split Order Usability",
"summary": "Improve POS Split Screen by displaying already paid lines",
"version": "16.0.1.0.0",
"category": "Point of Sale",
"website": "https://github.com/OCA/pos",
"license": "AGPL-3",
"maintainers": ["quentinDupont"],
"author": "GRAP,Odoo Community Association (OCA)",
"depends": ["point_of_sale", "pos_restaurant"],
"data": [
"views/view_pos_order.xml",
],
"assets": {
"point_of_sale.assets": [
"pos_restaurant_split_order_usability/static/src/css/*.scss",
"pos_restaurant_split_order_usability/static/src/xml/**.xml",
"pos_restaurant_split_order_usability/static/src/js/**.js",
],
},
"installable": True,
}
69 changes: 69 additions & 0 deletions pos_restaurant_split_order_usability/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_restaurant_split_order_usability
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-04-02 13:28+0000\n"
"PO-Revision-Date: 2026-04-02 13:28+0000\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_restaurant_split_order_usability
#. odoo-javascript
#: code:addons/pos_restaurant_split_order_usability/static/src/xml/AlreadyPaidLines.xml:0
#, python-format
msgid "Already paid lines"
msgstr "Lignes déja payées"

#. module: pos_restaurant_split_order_usability
#. odoo-javascript
#: code:addons/pos_restaurant_split_order_usability/static/src/xml/AlreadyPaidLines.xml:0
#, python-format
msgid "No Internet connection: can't retrieve previous linked orders"
msgstr "Pas de connexion Internet : impossible d'afficher les commandes déjà payées."

#. module: pos_restaurant_split_order_usability
#: model:ir.model.fields,field_description:pos_restaurant_split_order_usability.field_pos_order__origin_order_uid
msgid "Original Order"
msgstr "Commande parent"

#. module: pos_restaurant_split_order_usability
#: model:ir.model,name:pos_restaurant_split_order_usability.model_pos_order
msgid "Point of Sale Orders"
msgstr "Commandes du point de vente"

#. module: pos_restaurant_split_order_usability
#: model:ir.model.fields,help:pos_restaurant_split_order_usability.field_pos_order__origin_order_uid
msgid ""
"This order was originally from this order before being split during payment"
msgstr ""
"Cette commande provient originellement de cette commande avant d'avoir été "
"partagé au moment du paiement."

#. module: pos_restaurant_split_order_usability
#. odoo-javascript
#: code:addons/pos_restaurant_split_order_usability/static/src/xml/AlreadyPaidLines.xml:0
#, python-format
msgid "With a"
msgstr "Avec"

#. module: pos_restaurant_split_order_usability
#. odoo-javascript
#: code:addons/pos_restaurant_split_order_usability/static/src/xml/AlreadyPaidLines.xml:0
#, python-format
msgid "at"
msgstr "a"

#. module: pos_restaurant_split_order_usability
#. odoo-javascript
#: code:addons/pos_restaurant_split_order_usability/static/src/xml/AlreadyPaidLines.xml:0
#, python-format
msgid "discount"
msgstr "remise"
1 change: 1 addition & 0 deletions pos_restaurant_split_order_usability/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import pos_order
44 changes: 44 additions & 0 deletions pos_restaurant_split_order_usability/models/pos_order.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Copyright (C) 2026-Today GRAP (https://www.grap.coop)
# @author Quentin DUPONT
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from odoo import api, fields, models


class PosOrder(models.Model):
_inherit = "pos.order"

origin_order_uid = fields.Char(
string="Original Order",
help="This order was originally from this order before being split during payment",
)

# Overload Section
@api.model
def _order_fields(self, ui_order):
res = super()._order_fields(ui_order)
res["origin_order_uid"] = ui_order.get("origin_order_uid") or False
return res

@api.model
def get_split_order_linked_order_lines(self, origin_order_uid, pos_session_id):
orders = self.search([("origin_order_uid", "=", origin_order_uid)])
lines = orders.mapped("lines")

res_lines = []
for line in lines:
res_lines.append(
{
"id": line.id,
"order_name": line.order_id.name,
"date_order": line.order_id.date_order,
"product_name": line.product_id.display_name,
"product_qty": line.qty,
"product_uom_name": line.product_uom_id.name,
"discount": line.discount,
"price_unit": line.price_unit,
"price_subtotal": line.price_subtotal,
}
)

return res_lines
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Quentin DUPONT (quentin.dupont@grap.coop)
11 changes: 11 additions & 0 deletions pos_restaurant_split_order_usability/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
This module extends the functionality of Point of Sale Restaurant module,
improving the display of the Split screen.

The modules adds a link between split orders and display already paid
lines in the Split screen.

**With the module**

.. figure:: ../static/description/pos_restaurant_split_order_usability.png

.. figure:: ../static/description/pos_restaurant_split_order_usability_offline.png
5 changes: 5 additions & 0 deletions pos_restaurant_split_order_usability/readme/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
16.0.1.0.0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

* Initial release
* Already paid lines displayed on Split Screen
Loading
Loading