diff options
| author | nie <nie@odoo.com> | 2021-01-15 16:43:01 +0000 |
|---|---|---|
| committer | nie <nie@odoo.com> | 2021-01-15 16:48:22 +0000 |
| commit | 71b342b8e16973eae9fdc3484b88ed135c5d2834 (patch) | |
| tree | e28096601d7f1eba51f51c4f3a0a23aee18ab4b3 /addons/fleet/data/fleet_data.xml | |
| parent | 08d44d444490713ca39618a67f441bbd84b8b900 (diff) | |
[FIX] point_of_sale: cannot close rescue session with Cash Control
Steps:
- Go to Point of Sale > Shop > Settings
- Activate "Advanced Cash Control"
- Start a new Shop session
- Once in the POS go offline
- Create some orders
- Close the POS UI in the top-right corner
- Go back online
- Close the session and post the entries
- Start a new session
- Create an order
- Close the POS UI
- Close the session and post the entries
- Go to Orders > Sessions
- Click the rescue session
- Click "Continue Selling"
Bug:
The user is redirected to the POS dashboard instead of opening the UI.
Explanation:
First, you cannot "Continue Selling" in a rescue session as seen here:
https://github.com/odoo/odoo/blob/b826c96ad39fc887a735c6ca839e3796aa18dac5/addons/point_of_sale/controllers/main.py#L17-L22
This commit removes the button from the UI in this case.
Then, after it has been created, the rescue session should be open and
not in the 'opening_control' state as seen here:
https://github.com/odoo/odoo/blob/9a8ebcc7cb05572681444ddb2511ccea4cee5565/addons/point_of_sale/models/pos_order.py#L98-L99
This is not the case anymore since https://github.com/odoo/odoo/commit/d21420d87ad8a269a0f30b3d9c0a3cee8c46cb14
opw:2427972
closes odoo/odoo#64632
Signed-off-by: backspac <backspac@users.noreply.github.com>
Diffstat (limited to 'addons/fleet/data/fleet_data.xml')
0 files changed, 0 insertions, 0 deletions
