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()
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Nov 24
|
47 | ||
|
3
Jul 24
|
300 | ||
|
0
Jul 24
|
230 | ||
|
1
Sep 22
|
911 | ||
|
0
Aug 20
|
1252 |