This module adds an approval workflow for closing Point of Sale (POS) sessions in Odoo 17. It enforces an approval process when there is a cash difference between the expected and counted cash at the end of a session, based on the configuration in the POS settings.
- Add the module
custom_pos_approval
to your custom modules list. - Navigate to Apps in Odoo, click on "Update Apps List," and then "Update."
- Search for
custom_pos_approval
and install it. - Upgrade the module
- Navigate to Point of Sale -> Configuration -> Settings. 2. In the Close Session Cash Difference Approval section:
-
Closing a POS Session:
- When attempting to close a POS session, if there is a cash difference, a dialog will prompt the user that approval is required.
- The session status will change to "Pending Approval" once confirmed.
- Emails will be sent to the designated approvers based on the configuration.
- Inherited pos.session and res.config.settings to add the settings
- pos.session: added approval extra fields, status and implemented approval logic + notification logic
- Changes to view_pos_config_kanban to add approval status view
- Added template for email notification
- Changes to view_pos_session_tree and view_pos_session_form to add button approve and status view
- Patched ClosePosPopup JS to change the logic flow on approve enabled and added method to post approval
- Approval Dialog Not Showing: Ensure that the "Approval Required" setting is enabled in the POS configuration.
- Emails Not Being Sent: Check the email server configuration and that the correct approvers are set.
- Approval Workflow Not Triggering: Verify the configuration settings.
LGPL-3