diff options
| author | qsm-odoo <qsm@odoo.com> | 2019-08-08 10:33:22 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2019-08-09 09:45:07 +0000 |
| commit | e60323f87665e08d4cb0bd099dd0ee0fd1630114 (patch) | |
| tree | cf9f21a6faa41535e66a4eb9712e04883aaf42cb /addons/sale_quotation_builder | |
| parent | e21656413a73a25796ec67122e3bb2ed60f5ba32 (diff) | |
[IMP] website, *: improve brand promotion in the footer
* web, website_event, website_sale, sale_quotation_builder
Instead of an ugly danger-colored badge promoting "odoo", we now use
the official odoo logo. The code is also refactored to use more
consistent and translatable sentences without duplicated code.
Note: the odoo logo is added in the repo, downloaded from our official
brand assets page (https://www.odoo.com/page/brand-assets), in its
'tiny' version. The repo already contained multiple odoo logos but they
are quite old and should be replaced in a further update. Note: the svg
version was not able to be used as it contains external margins...
Part of https://github.com/odoo/odoo/pull/34422
task-2026299
Diffstat (limited to 'addons/sale_quotation_builder')
| -rw-r--r-- | addons/sale_quotation_builder/views/sale_portal_templates.xml | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/addons/sale_quotation_builder/views/sale_portal_templates.xml b/addons/sale_quotation_builder/views/sale_portal_templates.xml index 2b3bbe19ce4..4c5b2f6dc95 100644 --- a/addons/sale_quotation_builder/views/sale_portal_templates.xml +++ b/addons/sale_quotation_builder/views/sale_portal_templates.xml @@ -83,11 +83,13 @@ </template> <template id="brand_promotion" inherit_id="website.brand_promotion"> - <xpath expr="//div[hasclass('o_brand_promotion')]" position="replace"> - <div class="o_brand_promotion"> - Powered by <a target="_blank" class="badge badge-danger" href="http://www.odoo.com/page/website-builder">Odoo</a>, - an awesome <a target="_blank" href="http://www.odoo.com/page/crm">Open Source CRM</a>. - </div> + <xpath expr="//t[@t-call='web.brand_promotion_message']" position="replace"> + <t t-call="web.brand_promotion_message"> + <t t-set="_message"> + An awesome <a target="_blank" href="https://www.odoo.com/page/crm?utm_source=db&utm_medium=portal">Open Source CRM</a> + </t> + <t t-set="_utm_medium">portal</t> + </t> </xpath> </template> |
