Hi,
I want an automatic email to be sent each time a session is closed (and posted) with the Sales Details Report in POS attached.
I know it can be done through scheduled actions under technical, but I need help with the code.
Thanks.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
I want an automatic email to be sent each time a session is closed (and posted) with the Sales Details Report in POS attached.
I know it can be done through scheduled actions under technical, but I need help with the code.
Thanks.
Hello Feryial Mangou,
If you want to send email whenever POS session get closed then you can inherit action_pos_session_closing_control method of pos.session object like this:
def action_pos_session_closing_control(self):
# your code to send email
return super(PosSession, self).action_pos_session_closing_control()