Skip to content

Commit

Permalink
[MIG] website_seo_redirection: Upgrade to v9
Browse files Browse the repository at this point in the history
* Move menu to Technical settings, adjust ReadMe to compensate
* Upgrade JS api
* Switch openerp & data tags for odoo tags
* Raise version
  • Loading branch information
lasley committed Jun 30, 2016
1 parent 7c98fb2 commit fa8895c
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 21 deletions.
6 changes: 4 additions & 2 deletions website_seo_redirection/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ want a fixed and beautiful URL for it. That entry is posted in
``https://example.com/blog/our-news-1/post/amazing-post-23``, but you want it
at ``https://example.com/amazing``. You need to:

#. Go to *Settings > Configuration > SEO Redirections > Create*.
#. Enable Developer Mode
#. Go to *Settings > Technical > SEO Redirections > Create*.
#. Set ``/blog/our-news-1/post/amazing-post-23`` as *Original URL*.
#. Set ``/amazing`` as *Redirected URL*.

Expand All @@ -26,7 +27,7 @@ the URL you wanted.

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/186/8.0
:target: https://runbot.odoo-community.org/runbot/186/9.0

Known issues / Roadmap
======================
Expand Down Expand Up @@ -56,6 +57,7 @@ Contributors
------------

* Jairo Llopis <[email protected]>
* Dave Lasley <[email protected]>

Maintainer
----------
Expand Down
4 changes: 2 additions & 2 deletions website_seo_redirection/__openerp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
{
"name": "Website SEO Redirection",
"summary": "Redirect any controller to the URL of your dreams",
"version": "8.0.1.0.0",
"version": "9.0.1.0.0",
"category": "Website",
"website": "https://tecnativa.com/",
"author": "Tecnativa, Odoo Community Association (OCA)",
"author": "Tecnativa, LasLabs, Odoo Community Association (OCA)",
"license": "LGPL-3",
"application": False,
"installable": True,
Expand Down
6 changes: 2 additions & 4 deletions website_seo_redirection/demo/website_seo_redirection_demo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
<!-- © 2016 Jairo Llopis <[email protected]>
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -->

<openerp>
<data>
<odoo>

<template id="sample_page" page="True">
<t t-call="website.layout">
Expand Down Expand Up @@ -48,5 +47,4 @@
<field name="destination">/seo/sample</field>
</record>

</data>
</openerp>
</odoo>
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
* License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). */


"use strict";
(function ($) {
openerp.Tour.register({
odoo.define('website_seo_redirection.tour', function(require) {
'use strict';

var Tour = require('web.Tour');

Tour.register({
id: "website_seo_redirection",
name: "Check SEO redirections functionality",
path: "/",
Expand Down Expand Up @@ -41,4 +44,4 @@
},
],
});
})(jQuery);
});
6 changes: 2 additions & 4 deletions website_seo_redirection/views/assets.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
<!-- © 2016 Jairo Llopis <[email protected]>
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -->

<openerp>
<data>
<odoo>

<template id="assets_editor" inherit_id="website.assets_editor">
<xpath expr=".">
Expand All @@ -12,5 +11,4 @@
</xpath>
</template>

</data>
</openerp>
</odoo>
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
<!-- © 2016 Jairo Llopis <[email protected]>
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -->

<openerp>
<data>
<odoo>

<record id="website_seo_redirection_form_view" model="ir.ui.view">
<field name="name">Website SEO Redirection Form</field>
Expand Down Expand Up @@ -51,7 +50,6 @@
id="website_seo_redirection_menu"
action="website_seo_redirection_action_open"
groups="base.group_website_designer"
parent="base.menu_config"/>
parent="base.menu_custom"/>

</data>
</openerp>
</odoo>

0 comments on commit fa8895c

Please sign in to comment.