Skip to content
Snippets Groups Projects
Commit 6abe353e authored by jev-odoo's avatar jev-odoo Committed by Pierre Masereel
Browse files

[FIX] point_of_sale: close sessions via xml-rpc


Some of the support scripts use xml-rpc calls to work
on pos.session on Saas or SH databases
(especially when needed to upload lot of offline orders
in smaller batches)
These scripts should be allowed to close any rescue session
created during this process programmatically via xml-rpc.

Our xml-rpc protocol does not allow to call function that
return nothing

closes odoo/odoo#78909

X-original-commit: 834bed30
Signed-off-by: default avatarMasereel Pierre <pim@odoo.com>
parent 206c9c8d
No related branches found
No related tags found
No related merge requests found
......@@ -277,6 +277,7 @@ class PosSession(models.Model):
session.write({'state': 'closing_control', 'stop_at': fields.Datetime.now()})
if not session.config_id.cash_control:
session.action_pos_session_close()
return True
def _check_pos_session_balance(self):
for session in self:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment