This Odoo technical development blog is my way to contribute back to the Odoo Community, for all the selfless and great sharing by the community members.
Often time, we need to remove Odoo branding in the standard Sale Quotation or Invoice email template, such as Odoo logo, "powered by Odoo" footer and Pay Online.
a) There is an OCA module mail debrand to remove the "powered by Odoo", but no easy way to remove Odoo logo, etc.
Click "Like" at the bottom of this blog, to motivate us to continue sharing more Odoo tips.
b) To remove the "Pay Online" button in Sales Quotation or invoice.
Go to Technical -> User Interface -> View. Search “Mail: Pay Now”.
Remove these tags.
<t t-set="access_action" t-value="record.with_context(force_website=True).get_access_action()"/>
<t t-set="is_online" t-value="access_action and access_action['type'] == 'ir.actions.act_url'"/>
View <t t-esc="model_description or 'document'"/>
Final result is here:
<t t-set="access_action" t-value="record.with_context(force_website=True).get_access_action()"/>
<t t-set="is_online" t-value="access_action and access_action['type'] == 'ir.actions.act_url'"/>
<t t-set="base_url" t-value="record.get_base_url()"/>
<t t-set="share_url" t-value="record._get_share_url(redirect=True, signup_partner=True)"/>
<t t-set="access_url" t-value="is_online and share_url and base_url + share_url or ''"/>
<t t-set="access_name">
View <t t-esc="model_description or 'document'"/>
</t>
Comments