Theo VINCENT (thvi) 6ad564cd49 [FIX] point_of_sale: close session when no cash pm
Since a869ee87f2, the cashier can no longer close a session from the frontend UI if the POS config has not a cash payment method.

Steps to reproduce:
 - Remove any cash payment method from the POS config you want to use
 - Open a POS session for the previous POS config
 - Make an order
 - Try to close the session

A (silent) error is raised, the user cannot close the session.
This error is particularly noticeable when we don't use demo data (--without-demo=True).

The fix consists in correctly checking if there is a cash payment method or not.

closes odoo/odoo#136387

Task-id: 3519547
Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
2023-09-25 09:38:42 +00:00
…
2023-09-25 09:38:41 +00:00
…
…
…
…
…
…

Build Status Tech Doc Help Nightly Builds

Odoo

Odoo is a suite of web based open source business apps.

The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...

Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.

Getting started with Odoo

For a standard installation please follow the Setup instructions from the documentation.

To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials

S
Description
No description provided
Readme LGPL-3.0
3.4 GiB
Languages
Python 49.6%
JavaScript 47.8%
SCSS 2%
CSS 0.3%
HTML 0.2%