Joseph Caburnay 33466c6ecd [FIX] point_of_sale: properly call the 'post_closing_cash_details' method
2 issues

1. Activate cash control by making sure there is a cash payment method.
   There is traceback when closing session.
   - This is because the method call to post_closing_cash_details is not
     properly sent.
2. Install pos_restaurant, keep the cash payment method.
   Steps:
     - Create a new order.
     - Add item and go back to floor. (This will create a draft order in the backend.)
     - Try closing the session.
     - It should fail but it should not call `update_closing_control_state_session`.
     - BUG: Because `update_closing_control_state_session` is called, the session
       state changed and the user can't do "continue selling" because the button
       in the pos.session kanban is now "close". It should be "continue selling".

Solution:

1. Make sure the orm.call is provided the correct params.
2. Access `cashControl` from the component which is equivalent to env.pos.config.cash_control.

This commit fixes the listed issues.

closes odoo/odoo#118226

X-original-commit: 6541633e4e79e2ef6c6099982bb21e5993f5d1df
Signed-off-by: Heinz Robin (rhe) <rhe@odoo.com>
2023-04-13 15:26:46 +02:00
…
2023-04-13 09:31:23 +02: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%