Mail holds a "Pay Now" notification template holding notably customized links to portal for records like sale orders or invoices. It allow to give a more personalized button than a plain simple "View document" link. Currently frontend / backend links are not always correctly computed in this template. This commit fixes that behavior. Task ID-2513724 COM PR #69607 ENT PR odoo/enterprise#17849 closes odoo/odoo#69714 closes odoo/odoo#69744 closes odoo/odoo#69774 X-original-commit: c417ea6243cb968d17f5db0919ec8cd034f4cb5f Related: odoo/enterprise#17889 Related: odoo/enterprise#17902 Related: odoo/enterprise#17916 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>