summaryrefslogtreecommitdiff
path: root/addons/website_payment
diff options
context:
space:
mode:
authorNirali Sapra <nsa@odoo.com>2017-12-06 17:18:52 +0530
committerqsm-odoo <qsm@odoo.com>2018-05-29 11:13:28 +0200
commitb2fefbd3c56b4ac1ef4cfe0387db45d24aa5a037 (patch)
tree567c0301b584d723c053729a4747fb280519f581 /addons/website_payment
parenta01f7b0e0bff93304ef6f22bfa58aab5cff05393 (diff)
[IMP] portal, website, website_*: make footer content easy to customize
Previously, customizing the website footer was not very easy. This commit will allow users to customize the footer like any other snippet area. There are several behavior changes, as mentioned below: - Removed toggles 'Automatic Footer' and 'Payment Icons' from the Customize menu - Language Selector was moved near the 'Copyright' section of the footer and features a dropdown (dropup technically) to select the language - Moved some footer links from various modules to top menu List of the added menus / changed menus: (a) Resellers (new menu for previous footer link 'Resellers') (b) References (new menu for previous footer link 'Our References') (c) Forums (renamed from 'Forum', as a replacement of 'Forums' footer link, showing all the forums instead of 'Help', as there is no link available to all forums after this commit) (d) Live Support (new menu for previous footer link 'Livechat Support') (e) Mailing Lists (new menu for previous footer link 'Mailing List') (f) Members (new menu for previous footer link 'Members') - Links which were already available as a website menus (Presentations, Jobs, Events, News, Documentation, etc) are simply removed Technical Notes: - Introduced a new template called 'brand_promotion' in website. This will help to avoid adding redundant footer content (like copyright, language selector etc) from several modules (website_sale, website_event, website_quote, etc) while the only intention is to replace module page links. - Removed summernote related fix in portal.less (caused by xpath) because footer is now customizable and added padding to structure instead of footer itself so that bg-color/img can be applied on whole footer. - Few of the tours are improved to drag and drop snippets at proper places and not inside the footer. - Used Flex in copyright portion of footer, so that text will always be horizontally centered (Some themes have different padding for buttons, etc, so if we don't align text dynamically, it has to be managed in particular theme and in particular layouts like full-screen / boxed. And if someone changes height of this portion, we have to re-design this portion again, etc). task-38069 Closes https://github.com/odoo/odoo/pull/22298 Co-authored-by: Dharmraj <dja@odoo.com>
Diffstat (limited to 'addons/website_payment')
-rw-r--r--addons/website_payment/__init__.py2
-rw-r--r--addons/website_payment/__manifest__.py1
-rw-r--r--addons/website_payment/models/__init__.py1
-rw-r--r--addons/website_payment/models/website.py14
-rw-r--r--addons/website_payment/views/website_payment_templates.xml15
5 files changed, 0 insertions, 33 deletions
diff --git a/addons/website_payment/__init__.py b/addons/website_payment/__init__.py
index dc5e6b693d1..67dee8c60db 100644
--- a/addons/website_payment/__init__.py
+++ b/addons/website_payment/__init__.py
@@ -1,4 +1,2 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
-
-from . import models
diff --git a/addons/website_payment/__manifest__.py b/addons/website_payment/__manifest__.py
index fce4212ca02..d569e2ea5d9 100644
--- a/addons/website_payment/__manifest__.py
+++ b/addons/website_payment/__manifest__.py
@@ -13,7 +13,6 @@
],
'data': [
'views/website_payment_view.xml',
- 'views/website_payment_templates.xml',
],
'auto_install': False,
}
diff --git a/addons/website_payment/models/__init__.py b/addons/website_payment/models/__init__.py
deleted file mode 100644
index bd190fa80b4..00000000000
--- a/addons/website_payment/models/__init__.py
+++ /dev/null
@@ -1 +0,0 @@
-from . import website
diff --git a/addons/website_payment/models/website.py b/addons/website_payment/models/website.py
deleted file mode 100644
index ff2159f384d..00000000000
--- a/addons/website_payment/models/website.py
+++ /dev/null
@@ -1,14 +0,0 @@
-# -*- coding: utf-8 -*-
-# Part of Odoo. See LICENSE file for full copyright and licensing details.
-
-from odoo import api, models
-
-
-class Website(models.Model):
- _inherit = "website"
-
- @api.model
- def payment_icons(self):
- """ This function returns the list of payment icons which are supported by payment acquirers that are published
- """
- return self.env['payment.icon'].sudo().search([('acquirer_ids.website_published', '=', True)])
diff --git a/addons/website_payment/views/website_payment_templates.xml b/addons/website_payment/views/website_payment_templates.xml
deleted file mode 100644
index f81ab5e6e50..00000000000
--- a/addons/website_payment/views/website_payment_templates.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<odoo>
- <template id="header_footer_custom_payment" inherit_id="website.footer_default" customize_show="True" active="False" name="Payment Icons">
- <xpath expr="//div[@id='info']" position="inside">
- <h4 class="payment_method_title">Payment Icons</h4>
- <ul class="payment_method_list list-inline">
- <t t-foreach="request.website.payment_icons()" t-as="icon">
- <li>
- <span t-field="icon.image" t-options='{"widget": "image", "alt-field": "name"}' />
- </li>
- </t>
- </ul>
- </xpath>
- </template>
-</odoo>