Commit Graph

146 Commits

Author SHA1 Message Date
Antony Lesuisse 2112eb6448 [FIX] website_sale enable some tests
bzr revid: al@openerp.com-20140217012827-3rb4mrkgx3ubp0dx
2014-02-17 02:28:27 +01:00
Thibault Delavallée 4c11416db6 [FIX] website: server action controllers: fixed typo in a domain
bzr revid: tde@openerp.com-20140212103912-1rhyl3wxa2a084ls
2014-02-12 11:39:12 +01:00
Thibault Delavallée e1e528e19c [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20140212103823-aifj3y0dwir0cbyv
2014-02-12 11:38:23 +01:00
Thibault Delavallée 3c3bff14c0 [CLEAN] website: server action controllers: removed unnecessary variable
bzr revid: tde@openerp.com-20140212103753-8fheizloj3minlt6
2014-02-12 11:37:53 +01:00
Antony Lesuisse 87172d90d2 [MERGE] saas-3
bzr revid: al@openerp.com-20140209140315-ukqlf90ngy6ycu2k
2014-02-09 15:03:15 +01:00
Thibault Delavallée 7d696bc620 [IMP] website: server actions: usability improvements
- added website_path, the end of the path to access the server action, allowing more custom
and short URLs, like website/action/partners instead of website/action/website.action_partners;
- added website_url, computed file with the full address of the server action that is displayed
on the form view, to ease usability
- updated server action contorller: now takes xml_id, id, or website_path

bzr revid: tde@openerp.com-20140207121921-7kdpxrf30zlte47l
2014-02-07 13:19:21 +01:00
Christophe Matthieu d819d494f1 [IMP] website: add debugger template used to create nex tours/tests (display in customize menu in debug mode)
bzr revid: chm@openerp.com-20140206135036-geq8fubtz39pxp20
2014-02-06 14:50:36 +01:00
Thibault Delavallée 79d6a1a39a [IMP] website: server action controller: no need to add post, everything is on request
bzr revid: tde@openerp.com-20140205140216-r6oxlbbmypd3u5vf
2014-02-05 15:02:16 +01:00
Thibault Delavallée 1c608569ca [IMP] website: server action in front-end: updated demo data
to show something vaguely complex that 'everyone' can do using 2 server actions
and 2 templates: a basic partner directory.

bzr revid: tde@openerp.com-20140205105555-hzpwwqgefdiy12jg
2014-02-05 11:55:55 +01:00
Thibault Delavallée 1e6f81abc2 [IMP] website: ir_actions_server: only published server action can be invoked from the front-end
bzr revid: tde@openerp.com-20140205094530-k058ealuxq9hbrdw
2014-02-05 10:45:30 +01:00
Thibault Delavallée 8df6b16784 [ADD] website: added support for invoking a server action through controller
website: added website/action/<id_or_xml_id> route, that runs the server action designed
by its id or xml_id. Only code server action returning a template give a result. The
template is displayed. Other or not existing server actions redirect to the homepage.

website: added an override of ir_actions_server: evaluation context gets request for
evaluation, to enable request.render(template_name); also returns template the same
way action is returned for code server action;

bzr revid: tde@openerp.com-20140205090447-2hppg7818nx1wfzh
2014-02-05 10:04:47 +01:00
Xavier Morel 7d1f7ee10a [IMP] handling of overly large images in website image upload
bzr revid: xmo@openerp.com-20140204165823-q05aoq83q28b2hhg
2014-02-04 17:58:23 +01:00
Fabien Pinckaers a1b95f6823 [FIX] Customize menu
bzr revid: fp@tinyerp.com-20140130194227-b5brj96f8tgc88hf
2014-01-30 20:42:27 +01:00
Antony Lesuisse 632c014b76 [FIX] fix werkzeug dependency on debian, misc changes
- add an more friendly syntax for images /website/image/<model>/<id>/<field>
- reorder methods based on their use case
- move new page to /website namespace

bzr revid: al@openerp.com-20140129163809-d4z4f8t3h11n5ozv
2014-01-29 17:38:09 +01:00
Christophe Matthieu 876b61f42c [FIX] website: test tour and website_sale tour. Add ajax trigger to display popover when the ajax is complete and hmlt is loaded
bzr revid: chm@openerp.com-20140129160839-ijdcnuiny6ys8z6p
2014-01-29 17:08:39 +01:00
Christophe Matthieu 2b3ad30f8a [FIX] website: change auth=admin into auth=public. Fix website_project link
bzr revid: chm@openerp.com-20140129091050-w2d7dbigflwod1uj
2014-01-29 10:10:50 +01:00
Antony Lesuisse 7c90d3afa5 [FIX] website page creation
bzr revid: al@openerp.com-20140128140017-r8yy8tzsvo4y0e92
2014-01-28 15:00:17 +01:00
Fabien Pinckaers cbfd9a5540 [FIX] redirect loop on /#ljlj
bzr revid: fp@tinyerp.com-20140125150028-hqr4me1v02nkactk
2014-01-25 16:00:28 +01:00
Fabien Meghazi af3428a86f [REV] Revert some stuff in order to bring back main_object on all rendered views
bzr revid: fme@openerp.com-20140123135408-qp4z7ry4a2vej2jy
2014-01-23 14:54:08 +01:00
Xavier Morel 7f4fc27fc0 [FIX] missing website=True after conversion website.route -> http.route
bzr revid: xmo@openerp.com-20140123111346-7sunt839fh3f1ww5
2014-01-23 12:13:46 +01:00
Fabien Meghazi c1f0fb5ed1 [MERGE] upstream
bzr revid: fme@openerp.com-20140120161145-ntxx6y01vekk3tg2
2014-01-20 17:11:45 +01:00
Fabien Meghazi 14bb6060d7 [REM] Removed @website.route() decorator
Need trunk-website-al Rev#5151

bzr revid: fme@openerp.com-20140120153733-ve3dn2kwvha7n3yl
2014-01-20 16:37:33 +01:00
Jojo le bricolo 03606aa347 QWeb cleanups 1 sql query less per page
bzr revid: jojo_le_bricolo-20140119174642-q2ix8p27ospjkuf4
2014-01-19 18:46:42 +01:00
Fabien Meghazi f41243acd3 [FIX] Login link from website
bzr revid: fme@openerp.com-20140116182759-sq1aohhrufu1zh6f
2014-01-16 19:27:59 +01:00
Fabien Meghazi 735c2b501b [IMP] integrate login into the website.layout
bzr revid: fme@openerp.com-20140116181746-e2z9m4gym5kcdgmr
2014-01-16 19:17:46 +01:00
Christophe Matthieu 320a0bc28c [IMP] website/website_sale: Use group to display shipping address in frontend like the backend. Use group for product facet caracteristique (backend/frontend). Customize templates is displayed function of groups of ir.ui.view templates.
bzr revid: chm@openerp.com-20140115110547-v0nllq0f800tlhpg
2014-01-15 12:05:47 +01:00
Fabien Meghazi 1434a5aae9 [IMP] allow to reset broken views in the 500 error page
bzr revid: fme@openerp.com-20131217134600-v0i170n9gw7752vj
2013-12-17 14:46:00 +01:00
Christophe Matthieu 5217c8ebe8 [IMP] website: remove secure_layout. Inherit with groups for js editor
bzr revid: chm@openerp.com-20131211144402-lpanprv3u362qvd7
2013-12-11 15:44:02 +01:00
Fabien Meghazi 2a2f50e08f [IMP] Better exception handling
bzr revid: fme@openerp.com-20131205150633-lnfvhjq42n0r26tv
2013-12-05 16:06:33 +01:00
Christophe Matthieu 94f9d0d1e6 [IMP] website: editor remove secure_layout (filter in controler)
bzr revid: chm@openerp.com-20131204171534-17ermab23ndoklu3
2013-12-04 18:15:34 +01:00
Fabien Pinckaers 114cf31244 [IMP] removed test code
bzr revid: fp@tinyerp.com-20131201173346-qodzx06i1wq7ec5i
2013-12-01 18:33:46 +01:00
Fabien Pinckaers d6f77f5853 [IMP] Speed improvements
bzr revid: fp@tinyerp.com-20131201172541-p8403347rv08uurh
2013-12-01 18:25:41 +01:00
ddm 96fabb61b2 [IMP] Indent HTML editor template names
bzr revid: ddm@openerp.com-20131129172749-0z6l9k9phieiw32b
2013-11-29 18:27:49 +01:00
Fabien Meghazi f6e15b4e4d [FIX] root menu first item triggered on / route
bzr revid: fme@openerp.com-20131127104307-ju8aqu7uuyrfsnpm
2013-11-27 11:43:07 +01:00
Xavier Morel 44af6d1e09 [IMP] significantly improve handling of trying to create a new page which already exists
# Through the menu

Rather than output a generic error (500 due to an IntegrityError),
return a templated 409 letting the user either visit the
page-which-already-exists-with-the-name-he'd-picked or open the page
creation dialog again for a second round.

An alternative would be to promote the website.prompt use to
full-blown dialog as a result of selecting "New Page" and handle the
"page already exists" case without even closing the dialog.

# Through the link dialog

Added an RPC call to check if a page already exists (essentially a
cheaper version of opening /page/whatever and checking whether it's a
200 over JSON-RPC), if the page matching the completion term already
exists, do *not* add the choice of creating the page, only provide
completions from existing pages.

bzr revid: xmo@openerp.com-20131126160148-wrk4zvz9istscwa0
2013-11-26 17:01:48 +01:00
Xavier Morel 6fc69e33d4 [FIX] correctly rollback savepoint in new_page
bzr revid: xmo@openerp.com-20131126102321-35wmxcncl3pp4mhw
2013-11-26 11:23:21 +01:00
Xavier Morel 5f99c7b7d1 [FIX] broken call from Website.pagenew to website.new_page
bzr revid: xmo@openerp.com-20131126092138-a7xkm92d51d4rg3y
2013-11-26 10:21:38 +01:00
Fabien Meghazi cc424c1a55 [IMP] http errors refactoring
bzr revid: fme@openerp.com-20131125165958-0k84rp9rbsxvav77
2013-11-25 17:59:58 +01:00
Xavier Morel 514210dfcc [FIX] lock kanban behind POST
bzr revid: xmo@openerp.com-20131125153220-on935gvemgkvipd6
2013-11-25 16:32:20 +01:00
Xavier Morel a67b3adf80 [IMP] remove footer link to sitemap, add direct sitemap link in test suite
the html sitemap is used as a proxy for testing the XML one.

bzr revid: xmo@openerp.com-20131125120916-d5w5xos2c7aimf31
2013-11-25 13:09:16 +01:00
Fabien Pinckaers 5ee03592cf [FIX] misc fixes in new event devs
bzr revid: fp@tinyerp.com-20131124214257-pg9bsbzzydoz6z1a
2013-11-24 22:42:57 +01:00
Fabien Pinckaers 105fc16c11 [IMP] events improvements
bzr revid: fp@tinyerp.com-20131124210221-hwalp7983olmrhew
2013-11-24 22:02:21 +01:00
Xavier Morel 2985681366 [FIX] fixup snippets json controller for lazyresponse changes
bzr revid: xmo@openerp.com-20131121095959-lwi6mnge684pxi1q
2013-11-21 10:59:59 +01:00
Fabien Meghazi 7d43b226ab [IMP] Use LazyResponse for website.render()
bzr revid: fme@openerp.com-20131120202842-zethge8jykzlzjjy
2013-11-20 21:28:42 +01:00
ddm 47295c4e0e [FIX] Fixes to shop tour
bzr revid: ddm@openerp.com-20131119151059-8xl169vodupwy8xw
2013-11-19 16:10:59 +01:00
Xavier Morel 5723b1588e [MERGE] from trunk
bzr revid: xmo@openerp.com-20131119102552-f8d03meddylwseyr
2013-11-19 11:25:52 +01:00
Fabien Pinckaers ceb04895d3 [IMP] Cleaning code of followers and website_published, 200 lines removed
[IMP] CSS and design of options and follow, avoid custom CSS

bzr revid: fp@openerp.com-20131116150927-4mjk1zdcgfzt4e95
2013-11-16 16:09:27 +01:00
Xavier Morel 5bab419967 [IMP] add page converter to get pages listing out of enumeration/search itself, restrict to single converter
bzr revid: xmo@openerp.com-20131115154840-psfns4datw5l1lr4
2013-11-15 16:48:40 +01:00
Xavier Morel 780c35598d [MERGE] from trunk
bzr revid: xmo@openerp.com-20131115132903-epi3321e4uxjqtn2
2013-11-15 14:29:03 +01:00
Xavier Morel e7117a5799 [FIX] altered trunk routing stuff, bring website converters back in website
bzr revid: xmo@openerp.com-20131115132626-60p0yk3jv1pk6mhb
2013-11-15 14:26:26 +01:00