From 90a0e989c85f738d5861ba32ec256970b4e0b36e Mon Sep 17 00:00:00 2001 From: luis Date: Tue, 9 Dec 2025 11:38:15 +0100 Subject: [PATCH 1/2] pos_order_backend_receipt: fix string lang --- pos_order_backend_receipt/models/pos_order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pos_order_backend_receipt/models/pos_order.py b/pos_order_backend_receipt/models/pos_order.py index 04b4a52..95bafda 100644 --- a/pos_order_backend_receipt/models/pos_order.py +++ b/pos_order_backend_receipt/models/pos_order.py @@ -13,7 +13,7 @@ class PosOrder(models.Model): if self.state not in ("paid", "done", "invoiced"): raise UserError( _( - "Solo se puede imprimir el ticket cuando el pedido está pagado o cerrado." + "You can only print the receipt when the order is paid, closed, or invoiced." ) ) return self.env.ref( From 51a53f54ba5872a6b55af40f133fa0b9c36063d7 Mon Sep 17 00:00:00 2001 From: luis Date: Tue, 9 Dec 2025 13:05:45 +0100 Subject: [PATCH 2/2] FoodcoopBCN/foodcoopbcn#162 add website_sale_cart_line_subtotal --- website_sale_cart_line_subtotal/README.md | 50 +++++++++++++++++++ website_sale_cart_line_subtotal/__init__.py | 1 + .../__manifest__.py | 13 +++++ .../views/website_sale_cart_templates.xml | 32 ++++++++++++ 4 files changed, 96 insertions(+) create mode 100644 website_sale_cart_line_subtotal/README.md create mode 100644 website_sale_cart_line_subtotal/__init__.py create mode 100644 website_sale_cart_line_subtotal/__manifest__.py create mode 100644 website_sale_cart_line_subtotal/views/website_sale_cart_templates.xml diff --git a/website_sale_cart_line_subtotal/README.md b/website_sale_cart_line_subtotal/README.md new file mode 100644 index 0000000..f9753af --- /dev/null +++ b/website_sale_cart_line_subtotal/README.md @@ -0,0 +1,50 @@ +# Website Sale Cart Line Subtotal + +## Description + +This module adds a "Subtotal" column to the shopping cart lines that displays the total amount for each line (quantity × unit price). + +### Problem + +By default, the Odoo website shopping cart shows: +- Product quantity +- Unit price + +But it doesn't show the line total (quantity × price), which can be confusing for customers when they want to quickly see how much each line is costing them. + +### Solution + +This module adds a new "Subtotal" column that shows: +- `price_subtotal` (without taxes) for users with tax-excluded view +- `price_total` (with taxes) for users with tax-included view + +The subtotal column is inserted between the "Price" and action columns in the cart. + +## Installation + +1. Install the module from the Apps menu +2. No additional configuration is required + +## Usage + +After installation: +1. Add products to your cart +2. Go to the shopping cart page +3. You will see a new "Subtotal" column showing the line total for each product + +The subtotal respects your tax display configuration (with or without taxes). + +## Credits + +### Contributors + +* Criptomart + +### Maintainers + +This module is maintained by the OCA. + +## Compatibility + +- Odoo 16.0 +- website_sale diff --git a/website_sale_cart_line_subtotal/__init__.py b/website_sale_cart_line_subtotal/__init__.py new file mode 100644 index 0000000..d9d1f13 --- /dev/null +++ b/website_sale_cart_line_subtotal/__init__.py @@ -0,0 +1 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). diff --git a/website_sale_cart_line_subtotal/__manifest__.py b/website_sale_cart_line_subtotal/__manifest__.py new file mode 100644 index 0000000..08fc79e --- /dev/null +++ b/website_sale_cart_line_subtotal/__manifest__.py @@ -0,0 +1,13 @@ +# Copyright 2025 Criptomart +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +{ + "name": "Website Sale Cart Line Subtotal", + "version": "16.0.1.0.0", + "summary": "Show line subtotal (quantity × price) in shopping cart", + "license": "AGPL-3", + "author": "Criptomart, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/e-commerce", + "depends": ["website_sale"], + "data": ["views/website_sale_cart_templates.xml"], + "installable": True, +} diff --git a/website_sale_cart_line_subtotal/views/website_sale_cart_templates.xml b/website_sale_cart_line_subtotal/views/website_sale_cart_templates.xml new file mode 100644 index 0000000..f776f85 --- /dev/null +++ b/website_sale_cart_line_subtotal/views/website_sale_cart_templates.xml @@ -0,0 +1,32 @@ + + + + + + +