[FIX] sale: missing variable in 'Send by email' template
doc_name was accidentally removed at 5a6f03a1ce.
Shame.
This commit is contained in:
committed by
Thibault Delavallée
parent
2580cd635d
commit
232a44a31d
@@ -17,6 +17,7 @@
|
||||
<p>Dear ${object.partner_id.name}
|
||||
% set access_action = object.with_context(force_website=True).get_access_action()
|
||||
% set is_online = access_action and access_action['type'] == 'ir.actions.act_url'
|
||||
% set doc_name = 'quotation' if object.state in ('draft', 'sent') else 'order confirmation'
|
||||
% set pay_sign_name = ('require_payment' in object and object.require_payment and 'pay') or 'sign'
|
||||
% set access_name = is_online and object.template_id and object.state in ('draft', 'sent') and 'Accept and %s online' % pay_sign_name or 'View %s' % doc_name
|
||||
% set access_url = is_online and access_action['url'] or ''
|
||||
|
||||
Reference in New Issue
Block a user