Version: Odoo 16 running on SH
Is there a way to dynamically add the sales order payment link to an email template for sending to customers? I know that we can get the payment link manually from the sales order via Action >> Generate Payment Link >> Copy, but I'm hoping there's a way to add this to an email template so my sales reps don't have to copy and paste this value every time. I've gotten close to figuring this out, but am hung up on the access_token parameter in the URL. Here's my code so far:
https://mydomain\.odoo\.com/payment/pay\?reference=\{\{object\.name\}\}\&amount=\{\{object\.amount_total\}\}\&access_token=\{\{object\.access_token\}\}\&sale_order_id=\{\{object.id}}&provider_id=14">Payment Link
The access_token being returned from object.access_token is different than the access token parameter found in the link when I copy it from the Generate Payment Link popup. It seems like this used to be available in earlier versions of Odoo, so I'm hoping it is possible v16.
Thanks!
Unfortunately, no.