Commit Graph
5 Commits
Author SHA1 Message Date
rde 4ecbacaf59 [ADD] website: add new page management
website.page = old ir.ui.view with page=True
website.redirect is a new mechanism to replace in the futur the ir.attachment
mechanism of redirect.

From now, we don't have a specific /page controller to serve 'page'.

We use a new model website.page which is rendered if none route matches the url
 and that the field 'url' on website.page matches the request.httprequest.path.

The order to serve a path is:
    - Routes defines in controllers (/shop, /blog, ...)
    - ir.attachment with name matching the path
    - website.page with url matching the path
    - website.redirect with url_from matching the path
    - 404

To improve:
    - allow regexp in website.redirect model
    - allow to edit the view_arch from the page.management via redirect backend
      (needed when traceback in the page, or when modifying a js/css/less/...)
2017-09-15 15:29:37 +02:00
xmo-odoo b4429c2a91 [FIX] Various P3-related import changes
* LDAP import: python-ldap is not python3-compatible, pyldap is

  Warning: only supported from debian Stretch (current testing)?
  https://packages.debian.org/search?searchon=names&keywords=pyldap

* implicitly relative imports
* imports of moved or removed stdlib modules

issue #8530
2017-04-28 09:06:53 +02:00
rsi-odoo 437bc69c84 [MIG] website_hr: code migration to new api. 2016-03-23 14:53:25 +01:00
Thibault Delavallée 594a379b41 [MOV] website_hr: new module organization (models / data)
bzr revid: tde@openerp.com-20131014083652-ropy9u51uxtz7s0k
2013-10-14 10:36:52 +02:00
Christophe Matthieu 5950ebdd23 [IMP] website_hr: begin
bzr revid: chm@openerp.com-20130731135434-am7nqltt16riikxa
2013-07-31 15:54:34 +02:00