Commit Graph

2560 Commits

Author SHA1 Message Date
Fabien Meghazi 060fa29883 [FIX] request.website browse record bad context 2014-09-16 14:16:43 +02:00
Christophe Simonis a10cd334d0 [IMP] mail,website: improve update_notification 2014-09-15 18:53:22 +02:00
Denis Ledoux 87d458f0d7 [FIX] website: customize menu, only a with data-view-id should actually call do_customize 2014-09-11 15:48:37 +02:00
Denis Ledoux a259370fed [FIX] website: do not bind do_customize to menu without data-action 2014-09-11 13:57:58 +02:00
Christophe Matthieu 068e69c2ed [FIX] website.editor: need to set the range on start because the browser can be lost the caret and can't insert the media in the page. 2014-09-10 10:09:34 +02:00
Olivier Dony fac96241df [I18N] Update 8.0 translations with latest changes from Launchpad 2014-09-08 19:04:25 +02:00
Olivier Dony d32d120a0a [MERGE] Forward-port of saas-5 up to 9ce08b7 2014-09-08 16:54:10 +02:00
Xavier Morel 7558e2e786 [IMP] distribute branding on @groups instead of disabling edition
Avoids 2 rendering passes, and allows editing e.g. events detail page, which
couldn't be done (due to groups=public in a mail component)

fixes #1994
2014-09-08 11:16:06 +02:00
Fabien Meghazi c981d068ab [FIX] Restore /login redirection on SessionExpired
The feature was broken due to an incompatibility
when forward porting 624f256 and a78e27f
2014-09-05 16:24:59 +02:00
Jeremy Kersten 0888a92075 [IMP] website: google analytic - use Automatic Cookie Domain Configuration.
Automatic Cookie Domain Configuration simplifies cross domain tracking implementations by automatically writing cookies to the highest level domain possible when the auto parameter is used. When used on the domain www.example.co.uk, it will try to write cookies in the following order:

co.uk
example.co.uk
www.example.co.uk
Analytics.js will fail to write a cookie on co.uk but will succeed on example.co.uk. Since a cookie was succesfully written on a higher level domain, www.example.co.uk will be skipped.
2014-09-05 14:51:08 +02:00
Fabien Meghazi 40d4b6b49f [FIX] Website translation pairing bug
I think we could get rid of the .trim() calls (for performance sake)
but I don't want to break anything so I'll leave them.
2014-09-03 12:09:31 +02:00
Antony Lesuisse 4c61ce6060 [FIX] website info view remove optional tag 2014-08-31 19:22:52 +02:00
Antony Lesuisse 2d296cb779 [MERGE] ir-ui-view split active and show_customize
Split the ternary field application in active and show_customize, all four
possible value are now needed for the customize theme popup.
2014-08-31 16:56:44 +02:00
Fabien Meghazi 5e6e1303e3 [IMP] pretty urls for /website/image 2014-08-28 16:37:38 +02:00
Fabien Meghazi f2583323a9 [FIX] language and model converter redirections should use code=301 2014-08-27 14:05:09 +02:00
Fabien Pinckaers 856daf8df9 [IMP] expl p 2014-08-26 21:45:52 +02:00
Fabien Pinckaers 8aca457e34 [IMP] Updated website urls on modules and info page 2014-08-26 21:40:18 +02:00
Jeremy Kersten 20d366595c [IMP] website: Redirect user in the language of the browser 2014-08-26 11:54:07 +02:00
Fabien Meghazi 709dc659b2 [IMP] Allow to specify http code for request.redirect() 2014-08-26 11:50:13 +02:00
Fabien Pinckaers b0d99b0ff0 [FIX] redirect /page/website.xyz --> /page/xyz. Currently 302 but fme will convert to 301 2014-08-26 10:29:18 +02:00
Fabien Meghazi 18068a5e79 [FIX] website.layout hreflangs
- First line is not correct due to url_for() refactoring's leftover
- href's should be full urls with domain name
- Use short language for hreflang if possible
2014-08-25 17:43:39 +02:00
Christophe Matthieu c3d2540477 [FIX] website.editor: must display link information in linkdialox box. Remove /page/ and /page/website. from the needle to search page and apply real url as filter after the search 2014-08-20 17:54:10 +02:00
Christophe Matthieu 37c4bd96c1 [FIX] website.snippet: before the save of the view clean_for_save is called. The option marginAndResize (called by twitter) try to bind events on the overlay but the builder don't load the overlay (for time perf). The fix set a default jquery empty div to avoid the error. 2014-08-20 17:54:10 +02:00
Christophe Matthieu d12974eee3 [FIX] website.snippet: can't edit website with firefox; remove firefox attr for media video is edit mode 2014-08-20 17:54:10 +02:00
Christophe Simonis b3ddbee543 [FIX] website: correct unslugify of routes 2014-08-19 16:43:23 +02:00
Olivier Dony 50ef63881a [I18N] Update 8.0 translation with latest source code 2014-08-14 17:01:54 +02:00
Olivier Dony 4114c761dd [IMP] website: do not translate sitemap URL 2014-08-13 10:51:39 +02:00
Fabien Pinckaers f43e349d85 [IMP] Footer message according to installed apps 2014-08-12 13:06:08 +02:00
Fabien Pinckaers ef944dcd55 [IMP] Maifest for Github README.md on main apps 2014-08-12 11:33:15 +02:00
Denis Ledoux ae65be2b2a [MERGE] forward port of branch saas-5 up to 0739bc4 2014-08-11 15:58:02 +02:00
Denis Ledoux 0739bc4eda [MERGE] forward port of branch saas-4 up to 7ecaab9 2014-08-11 15:31:04 +02:00
Denis Ledoux 7ecaab9fe2 [MERGE] forward port of branch saas-3 up to 2f4be42 2014-08-11 15:30:37 +02:00
Denis Ledoux c7fb787c70 [FIX] website: seo, url encode params, + handle connection breaks 2014-08-11 10:32:08 +02:00
Jeremy Kersten e4c2da59f8 [FIX] website: use internal route for SEO suggest keyword, old server is down 2014-08-11 10:19:22 +02:00
Denis Ledoux 7c647ec876 [MERGE] forward port of branch saas-4 up to 0a1e4a0 2014-08-08 17:27:29 +02:00
Jeremy Kersten 8286d4306a [FIX] wesbite: update google analytics snippet according to google recommandation 2014-08-08 15:51:35 +02:00
Thibault Delavallée ac212e2758 [FIX] ir_actions in website: allow to compute website_path even when creating a new server action (avoid crash then) 2014-08-08 11:43:28 +02:00
Christophe Simonis f2cb8702b2 [FIX] website: correct image resizing 2014-08-06 16:20:22 +02:00
Jeremy Kersten 05f9b45ef1 [FIX] slug: fallback to positive ID when slug appears to contain a missing negative ID
Cherry-pick from dcac4cc0df
2014-08-05 10:26:03 +02:00
Denis Ledoux 52eadd5199 [FIX] website: use SUPERUSER_ID to browse company for res_company
In a multi-company environment,
if the user signed in was not working in the company displayed by the website,
he couldn't browse the website
2014-08-04 21:08:18 +02:00
Denis Ledoux 1bb219907f [MERGE] forward port of branch saas-5 up to 655a5b9 2014-08-04 16:56:10 +02:00
Denis Ledoux 655a5b948d [MERGE] forward port of branch saas-4 up to 8c0c743 2014-08-04 16:14:31 +02:00
Christophe Matthieu 8d53c357ba Merge pull request #1428 from odoo-dev/sass-5-fixes-chm
[FIX] website_sale and point_of_sale fixes
2014-08-04 14:43:54 +02:00
Jeremy Kersten 19a6e879f0 [FIX] website: encode param for seo search, else multi words will not work. 2014-08-04 14:41:55 +02:00
Jeremy Kersten 28e62e46b5 [FIX] website: use internal route for SEO suggest keyword, old server is down 2014-08-04 12:25:59 +02:00
Olivier Dony d706adba11 [MERGE] Forward-port saas-5 up to 37ba23d 2014-08-04 01:44:30 +02:00
Olivier Dony b7814943c3 [MERGE] Forward-port saas-3 up to 7273474 2014-08-01 23:14:59 +02:00
Olivier Dony 7273474d65 [MERGE] Forward-port saas-3 up to fc92027 2014-08-01 23:10:29 +02:00
Olivier Dony fc92027979 [FIX] website: OpenERP->Odoo in website footer 2014-08-01 23:04:42 +02:00
Julien Legros b20636e0b2 [FIX] website: update url in the footer 2014-08-01 15:33:58 +02:00
Olivier Dony dcac4cc0df [FIX] website: slug: fallback to positive ID when slug appears to contain a missing negative ID
In some rare cases database records have negative IDs,
so the slug URL could look like /foo--20. This could
be mistaken for a slug ending with a `-` and a positive ID.
The latter is not supposed to happned as final hyphens
are stripped by slugify, but has been used in the past
and may be used in old links.
2014-08-01 15:08:33 +02:00
Christophe Matthieu 9bf1203c33 [FIX] website: the media video create by the media editor is not display in firefox. change the css to display the video and add z-index to the div for edit mode 2014-08-01 11:54:39 +02:00
Christophe Simonis fd4fd35e32 [MERGE] forward port of branch saas-5 up to e4cb520 2014-07-30 20:52:14 +02:00
Christophe Simonis e4cb5202a0 [MERGE] forward port of branch saas-4 up to fa07bc8 2014-07-30 20:30:14 +02:00
Christophe Simonis fa07bc8532 [MERGE] forward port of branch saas-3 up to 310d3fe 2014-07-30 19:09:33 +02:00
Christophe Simonis c6f91facbb [FIX] website: do not restore page views 2014-07-30 15:10:22 +02:00
Olivier Dony 57352367dc [IMP] website: disable translations for example URLs 2014-07-30 13:24:39 +02:00
Olivier Dony 5d72326fac [IMP] website: unused imports 2014-07-30 13:24:39 +02:00
Olivier Dony 999876f8bc [IMP] website: update sample social media accounts 2014-07-30 13:24:39 +02:00
Olivier Dony a1f307b489 [FIX] snippets: avoid orphan full stop (.) 2014-07-30 13:24:39 +02:00
Olivier Dony 7739d9ed84 [FIX] website.menu: url field should not be translated
Pages are made translatable using a dedicated mechanism,
and there is no UI to translate menu URLs anyway.
2014-07-30 13:24:39 +02:00
Olivier Dony d041bd97d6 [IMP] website: disable translation exports for test models
Avoids noise in POT files
2014-07-30 13:24:39 +02:00
Denis Ledoux 88c022dfc8 [MERGE] forward port of branch 7.0 up to bbb8d8f25a 2014-07-29 11:42:10 +02:00
Olivier Dony 13fb4f2e62 [FIX] website: more robust inherit between footer_custom and footer_default 2014-07-25 10:59:49 +02:00
Jeremy Kersten 89e8626ab0 [FIX] website: catch exception on destroy of ckeditor to allow the modifications to be saved anyway 2014-07-24 18:12:32 +02:00
Christophe Matthieu 330808b2cf [FIX] website.snippet: display snippet editor button inline insead of 2 lines for the small boxes 2014-07-23 16:38:09 +02:00
Christophe Matthieu 0a13d8f1db [FIX] website.snippet: display snippet editor button inline insead of 2 lines for the small boxes 2014-07-23 16:21:53 +02:00
rlu-odoo 8b67a7202d [REF] OpenERP --> Odoo in various UI texts
Rebranding has been done in:
- data/demo files
- html templates
- help notices
- comments
- logger messages
- and other various messages

(Commit taken from odoo-dev:8.0-improve-openerp-odoo-rlu at rev 7deaa08)

Closes #1260
2014-07-18 13:45:41 +02:00
Xavier Morel 3f8fd0dad6 [IMP] website_hr_recruitment: new API 2014-07-15 13:56:19 +02:00
Xavier Morel 7c540bc4ee [FIX] exception rendering with pretty printed XML
had not been migrated to lxml
2014-07-14 13:44:37 +02:00
Christophe Matthieu 9b8e307eb1 Merge pull request #1143 from odoo-dev/8.0-fix-website_sale-chm
[FIX] website_sale: fiscal_position is undefined; website: add user into the tour logs
2014-07-14 12:10:03 +02:00
Christophe Matthieu bd11d32694 [FIX] website: banner is broken if more than one on a banner page 2014-07-11 14:06:33 +02:00
Christophe Matthieu cab80a0252 Merge pull request #1074 from odoo-dev/8.0-website-link-chm
[FIX] web: update bootstrap to version 3.2.0.
[FIX] website.seo can't edit title and description; website.editor change link for internal page
[IMP] website editor: remove button style from cke and insert into the link dialog box.
2014-07-11 13:41:21 +02:00
Christophe Matthieu a72bdcca90 [FIX] website: add forgotten button type (btn-success) for link editor 2014-07-11 13:38:57 +02:00
Christophe Matthieu aca1865654 [FIX] website.seo: regexp doesn't match the object and object id 2014-07-11 11:33:18 +02:00
Christophe Matthieu 1eee1d2c51 [IMP] website: replace the select box into dropdown for link editor to have a preview 2014-07-11 11:09:24 +02:00
Christophe Simonis f654a7719b [MERGE] forward port of branch saas-5 up to 73d39a0 2014-07-10 22:49:53 +02:00
Christophe Matthieu 67e15d8d86 [FIX] web: update bootstrap to version 3.2.0; add bootstrap less files 2014-07-10 16:59:31 +02:00
Christophe Matthieu 886d6101ac [IMP] website editor: change link editor modal layout 2014-07-10 15:25:44 +02:00
Christophe Matthieu 0effbe3ca6 [FIX] website: enumarate page raise an exception if query_string is not null; Can't create a page with the modal link editor 2014-07-10 14:30:15 +02:00
Christophe Matthieu c2c0fdc916 [IMP] website editor: remove button style from cke and insert into the link dialog box. Fix the dialog box label value when the user create a link. 2014-07-10 13:34:02 +02:00
Jeremy Kersten 8eb97cc082 [IMP] website_sale: Add google analytics on checkout process 2014-07-09 17:45:40 +02:00
Christophe Matthieu e851c36a0f [FIX] website: error for rendering of the sitemap template. qweb can't render the xmlns attribute. 2014-07-09 16:03:54 +02:00
Christophe Matthieu e0ed658044 [FIX] website: if the first menu refered to a website page and the route for this path is overwrited, the route is not used, the template has not the values of the route. (e.g. contact-us menu in first position if website_crm is installed) 2014-07-09 10:39:00 +02:00
Jeremy Kersten faba7cd5aa [IMP] Crm: Add tracking mixin to manage utm campaign and add this mixin to mass_mailing, crm_lead and sale_order 2014-07-08 17:33:00 +02:00
Raphael Collet cbe2dbb672 [MERGE] new v8 api by rco
A squashed merge is required as the conversion of the apiculture branch from
bzr to git was not correctly done. The git history contains irrelevant blobs
and commits. This branch brings a lot of changes and fixes, too many to list
exhaustively.

- New orm api, objects are now used instead of ids
- Environements to encapsulates cr uid context while maintaining backward compatibility
- Field compute attribute is a new object oriented way to define function fields
- Shared browse record cache
- New onchange protocol
- Optional copy flag on fields
- Documentation update
- Dead code cleanup
- Lots of fixes
2014-07-06 17:05:41 +02:00
Olivier Dony 34bfa1b44f [MERGE] Forward-port saas-5 up to d9cda97 2014-07-05 01:45:45 +02:00
Olivier Dony d9cda97cf4 [MERGE] Forward-port saas-4 up to 5ceded9 2014-07-05 01:28:19 +02:00
Olivier Dony 5ceded9d69 [MERGE] Forward-port saas-3 up to 4fa30f5 2014-07-05 01:04:19 +02:00
Fabien Pinckaers 0c702bdfa7 Merge pull request #885 from odoo-dev/master-shop-fp
Fixes for perf issues /shop + cleaning pricelists & currencies
2014-07-02 20:34:21 +02:00
xmo-odoo 2c23b0020b Merge pull request #881 from xmo-odoo/master-qweb-lxml-xmo
Convert qweb (Python) to use lxml
2014-07-02 19:28:24 +02:00
Fabien Pinckaers 1ce0b70a02 Speed Improvements 2014-07-02 19:03:10 +02:00
Fabien Pinckaers 470503dc8b Speed Improvement: caching security 2014-07-02 18:35:09 +02:00
Martin Trigaux a6bf8cd07b [FIX] website: avoid divisions by zero when no record to display 2014-07-02 16:25:24 +02:00
Xavier Morel b18d83c0e0 [IMP] convert qweb to use lxml instead of minidom
should be >20x faster at parsing document strings and gain close to 40s on crawling
2014-07-02 16:01:36 +02:00
Christophe Matthieu ca02d8820a [FIX] website: customize menu stay empty if it's open to quick. Don't throw an exception when the tour have an error: log error and close tour. 2014-07-02 13:54:57 +02:00
Antony Lesuisse 58481cee00 website crawl test report number of sql queries 2014-07-01 22:45:20 +02:00
Simon Lejeune 186b56519d Merge remote-tracking branch 'odoo/master' into master-allow-translate-on-noedit-sle 2014-07-01 17:17:40 +02:00
Simon Lejeune 95446047ee [IMP] website translator: allow to translate a page even when you can't edit it 2014-07-01 17:02:04 +02:00
Christophe Matthieu 6a2f3e2c2a [IMP] tour.js: raise an error when phantomjs run a tour and an other running tour has been detected. 2014-07-01 13:37:41 +02:00
Simon Lejeune 2870af3b49 [FIX] navbar cache: do not use ormcache as it does not handle kwargs. instead, only get the root menu_ids in rendering context 2014-06-30 19:45:12 +02:00
Jeremy Kersten e77594c3c3 [IMP] website: backport 5112421a (unslug)
Update the regexp to be not case sensitive
2014-06-30 18:29:20 +02:00
Simon Lejeune af4cd36c83 [MERGE] upstream 2014-06-30 17:48:08 +02:00
Jeremy Kersten f4733aa895 [FIX] website - force to test isdigit on a string else a tb "'int' object has no attribute 'isdigit'" can exist if the page var was right and so already and int 2014-06-30 12:27:49 +02:00
Jeremy Kersten 7ba41e75e2 [FIX] Website pager - Be sure that page in get param is a digit else use page 1.
Need to find which controller add ?page= instead of &page= because google find some url with '?page=1?page=2' --> page = '1?page=2'. According to google, the referrer is the old website.
2014-06-30 12:10:49 +02:00
Antony Lesuisse e634ec806f [IMP] website crawler log show query/s 2014-06-29 21:39:30 +02:00
Antony Lesuisse 78e044b5c7 [IMP] test impprove HTTPCase opener
Simplify website crawler using the generic HTTPCase opener
2014-06-29 20:04:30 +02:00
Simon Lejeune 864962a000 [FIX] only render the navbar when everytging is in rendering context 2014-06-29 15:44:56 +02:00
Simon Lejeune eff2c4fd91 [MERGE] upstream 2014-06-29 13:57:58 +02:00
Antony Lesuisse 4bc43e6ac2 [FIX] website snippet editor initialisation 2014-06-29 04:01:24 +02:00
Simon Lejeune 76039b2a37 [FIX] only render the navbar when website is set (ie not during tests of the reports) 2014-06-27 18:28:34 +02:00
Simon Lejeune 20f4da67b3 Merge remote-tracking branch 'odoo/master' into master-report-translation-fix-sle 2014-06-27 18:17:15 +02:00
Christophe Simonis 1f57528bc6 [MERGE] forward port of branch saas-5 up to 8dfd5ea 2014-06-27 16:14:40 +02:00
Christophe Simonis 8dfd5eab01 [MERGE] forward port of branch saas-4 up to a4bc65c 2014-06-27 16:08:09 +02:00
Christophe Simonis a4bc65cdba [MERGE] forward port of branch saas-3 up to bdc4dd4 2014-06-27 16:06:37 +02:00
Simon Lejeune 95c1769d55 [FIX] typo 2014-06-27 13:46:46 +02:00
Olivier Dony 9c5ecd3bc4 [FIX] website: avoid hiding the signin info for users who are not employees nor portal users
This happens when you do a plain signup, you
end up as neither an employee nor a portal user,
but should still now when you are logged in.
2014-06-27 13:04:42 +02:00
Olivier Dony a7aa853737 [FIX] website: exception handling: let redirects pass untouched
The website module normally tries to render user-friendly
error pages for any error occurring during the processing
of a website-enabled request.
This happens even for werkzeug's HTTPExceptions that have
their own response, because we want the website layout to
be applied on top of the error page.

One special sort of HTTPException should be preserved
without rewriting: the manually-crafted ones generated
with abort(), and usually wrapping a redirect response,
which bears no alteration.
2014-06-27 13:04:31 +02:00
Christophe Simonis 3db44722d4 [FIX] website: correct geoip resolver
- "`record_by_addr()` method require the city database.
- The loaded geoip database can be specified via config file
2014-06-27 12:46:56 +02:00
Simon Lejeune fc8592adf2 [FIX] Report: translation fixed, use of 'primary clone' of web.layout and website.layout, minimal template is now a QWeb template 2014-06-27 12:00:49 +02:00
Simon Lejeune 195fa93168 [MERGE] backend front end integration
Render the top-menu (backend menu or frontend editbar) server-side.
Use Fontawesome icons (mail, timezone, chat).
Refactor website widgets, split Website.editorBarin editorbar, ace, editorbar- content, editorbarCustomize.
2014-06-27 11:03:34 +02:00
Christophe Simonis 8cbaf52fd3 Revert "Saas 5 report translation fix sle" 2014-06-26 18:14:44 +02:00
Simon Lejeune 42263b814e Merge remote-tracking branch 'odoo/saas-5' into saas-5-report-translation-fix-sle 2014-06-26 17:05:24 +02:00
Simon Lejeune b8cea9e60f [REV] revert unneeded changes in website layout 2014-06-26 17:04:16 +02:00
Antony Lesuisse 893aace122 [MERGE] website_sale optional-products 2014-06-26 12:31:15 +02:00
Olivier Dony 668b8c2b2d [FIX] Forward-port of saas-5 up to 0d330ca 2014-06-25 18:58:19 +02:00
Olivier Dony 0d330ca25c [MERGE] Forward-port of saas-4 up to fa739ac 2014-06-25 18:44:51 +02:00
Olivier Dony fa739ac8de [FIX] website: default mimetype for web-published attachments, avoids crash 2014-06-25 18:37:03 +02:00
Olivier Dony 4d488408b2 [MERGE] Forward-port of saas-3 up to 141e1b2 2014-06-25 18:34:03 +02:00
Jaydeep Barot 026e38b48f [REM] Unnecessary `size` parameters on char fields 2014-06-25 17:13:43 +02:00
Christophe Matthieu 77a07670cf [IMP] website: move custom scripts in the assets; fix website_sale_option to display modal in grid view 2014-06-25 14:03:23 +02:00
Jeremy Kersten 1a4bfa28c4 [FIX] Sitemap - Back forward from saas-5 5cc1317a5f to have the url_root in sitemap 2014-06-25 13:38:56 +02:00
Christophe Simonis 1eaa69d342 [MERGE] forward port of branch saas-5 up to 9e8e365 2014-06-25 12:44:13 +02:00
Christophe Simonis 9e8e3653f2 [MERGE] forward port of branch saas-4 up to f68c835 2014-06-25 12:43:41 +02:00
Fabien Meghazi f988d75035 [FIX] check after openerp's AccessErrors in website's _handle_exception 2014-06-25 12:20:40 +02:00
Christophe Matthieu f0ca6fbf75 merge upstream 2014-06-25 12:02:10 +02:00
Fabien Meghazi 4e0799e163 [FIX] _handle_exception() logic amongst requests and ir_http objects
Changes in website's ir_http#_handle_exception():

- exception is mandatory, can't be None anymore
- we don't touch non website_enabled requests
- we don't touch explicits plain responses from parent
- logic flow is now easier to read (I hope so)

Change in website's ir_http#_dispatch():

- In case of real 404, instead of returning self._handle_exception(),
  just let parent do the job (so we call super())
2014-06-25 11:47:44 +02:00
Christophe Simonis 5112421a93 [FIX] website: correct slug parsing 2014-06-25 11:08:51 +02:00
Christophe Matthieu 204a62499a [IMP] website_sale_options 2014-06-24 15:11:53 +02:00
Simon Lejeune 478a763cac [MERGE] manual merge of latest bootswatch minified stylesheets 2014-06-24 11:48:49 +02:00
Martin Trigaux caea4a9aec Merge pull request #621 from odoo-dev/saas-4-fix_actions_server_controller_return-vta
[FIX] website: controller for server actions should accept basic werkzeug requests (e.g. redirections)
2014-06-23 16:05:04 +02:00
Jeremy Kersten 2b44ac2cd6 [MERGE] Gengo - Merge saas-4-gengo-jke - Fix gengo to make it working 2014-06-23 12:22:25 +02:00
Christophe Matthieu bad13f0234 merge upstream 2014-06-23 10:07:56 +02:00
Jeremy Kersten 18bb52ee88 [FIX] Gengo - Update modoel ir_translation for gengo and make it working. Works with order and not job, because when you send a batch to translate, you don't know all the job but only the order. 2014-06-20 17:33:09 +02:00
Franck Bret b4afff3618 Unify website slugify method behavior with or without python-slugify, and add some unit tests 2014-06-20 11:25:44 +02:00
Christophe Matthieu 5165b52b43 merge upstream 2014-06-19 18:46:49 +02:00
Christophe Matthieu 2d686988a4 [FIX] tour.js: forgotten backdrop and orphan css 2014-06-19 17:52:32 +02:00
Christophe Simonis eef6330c55 [MERGE] forward port of branch saas-5 up to adf07a9 2014-06-19 16:23:32 +02:00
Christophe Simonis adf07a9490 [MERGE] forward port of branch saas-4 up to 5087612 2014-06-19 16:13:35 +02:00
Christophe Simonis 5087612d1d [MERGE] forward port of branch saas-3 up to bf53aed 2014-06-19 15:44:07 +02:00
Paramjit Singh Sahota 5023816c55 [FIX] website: correct selector
The selector to toggle the theme was triggered too often (on almost each button) but had no effect because no view-id was present.
Patch fix #627
2014-06-19 14:45:56 +02:00
Xavier Morel ab1406cd7c [FIX] website: ignore SVG elements when looking for edition events in RTE 2014-06-19 11:39:14 +02:00
Xavier Morel 56009e8804 [FIX] website: missing timezone conversion back to UTC
In t-field, datetime fields (formatted and not formatted versions) are
converted to the context/user's timezone (through
fields.datetime.context_timestamp) when displayed, but were saved without
converting back so the next display would go forward (or back) of the user's
tzoffset.

Fix that by applying context_timestamp's conversion backwards, from the
context/user's timezone back to UTC, before saving the field's value.
2014-06-18 16:09:02 +02:00
Christophe Matthieu 6ba14b38cb [FIX] website: geoip can't be none 2014-06-18 15:43:28 +02:00
Christophe Matthieu 890a9ac652 [IMP] website: set geoip in user session 2014-06-18 14:50:24 +02:00
FalcoBolger 97174a2a9d [FIX] Accept http responses as server action response 2014-06-18 13:39:30 +02:00
Christophe Matthieu bc3fc54fac [IMP] Tour: add tour in web module; tour became available in backend. 2014-06-18 12:25:13 +02:00
Thibault Delavallée 916a79184b Merge pull request #610 from odoo-dev/saas-5-mass-mailing-fixes-tde
[FIX] mass_mailing, website: fixed unsubscription link, fixed mobile preview of email designer crashing because of the redirection not taking search parameters
2014-06-18 11:52:04 +02:00
Thibault Delavallée 1de1b3c272 [FIX] website: mobile preview should keep the current search; some pages depends strongly of the url parameters, notably the email designer page. 2014-06-18 11:26:55 +02:00
xmo-odoo 3160eb74c4 Merge pull request #584 from xmo-odoo/master-qweb-groups-xmo
`@groups` attribute in qweb views
2014-06-18 09:37:02 +02:00
xmo-odoo 8482632c9b Merge pull request #354 from xmo-odoo/editor-xmlid
[IMP] add XID to view name in Ace editor dropdown
2014-06-17 16:24:04 +02:00
Xavier Morel 00c2644783 [IMP] display view's XID *below* the selection
* Looks better
* Allows for a label
* Allows for longer template names and ids without cutting off
* Room to grow more info bits
2014-06-17 16:22:28 +02:00
xmo-odoo c949509b5e Merge pull request #463 from xmo-odoo/qweb-foreach
Qweb foreach
2014-06-17 15:56:09 +02:00
xmo-odoo 0f72f6517d Merge pull request #525 from xmo-odoo/master-fix-website-postprocess-xmo
Fix postprocessing of request arguments in website
2014-06-17 15:55:55 +02:00
Denis Ledoux 3742b1ab3f [FIX] website: jquery attrbutes assignation is not supported by Firefox
Happens when trying to change an image in a a banner block
2014-06-17 15:43:56 +02:00
Richard Mathot cb3d38fa5c Merge pull request #561 from odoo-dev/master-branding-ref-rim
[REF] website: change URL to new Odoo website
2014-06-17 14:31:52 +02:00
Fabien Meghazi c4b1b58ffa [FIX] sitemap does not show pages
the /page/ controller was not using the ``page`` converter
2014-06-17 13:43:57 +02:00
Xavier Morel dda18249c0 [FIX] @groups attribute should not disappear when editing
The @groups attribute in qweb views was not rendered (even when matched by the
user), so editing a template with an @groups would either remove the whole
section (if the user didn't have the groups, fixed in previous commit) or only
removed the attribute itself making it visible to everybody (which ought be
fixed-ish by this commit).
2014-06-17 12:22:15 +02:00
Xavier Morel 79e10200d5 [IMP] prevent edition of page if groups which current user doesn't have
If the current view uses @groups attributes (possibly in called templates),
the corresponding elements are rendered to a void (empty string in qweb). If
said user can edit the page, does so and saves a view section in which there's
a @groups to which he has no access, the element[@groups] is completely
removed from the template once saved, losing it.

If QWeb encounters an @groups to which the current user has no right during
rendering, have it request a no-RTE page, so the user can not RTE-edit the
page (or drop snippets in it).
2014-06-17 12:01:52 +02:00
Richard Mathot ab3231d6c9 [REF] website: change URL to new Odoo website 2014-06-16 13:49:39 +02:00
Christophe Matthieu 3d66fff4d4 [FIX] website: clean for save of snippet editor don't remove conteneteditable attributes 2014-06-16 11:47:28 +02:00
Xavier Morel 1587663fd2 [FIX] postprocessing of request arguments in website
If website is installed but not used/enabled for the current controller,
overridden methods like _get_converters will *still run* for the controller's
dispatch.

This means a ModelConverter used in a controller with website installed but
not enabled will use website.models.ir_http.ModelConverter, not
base.ir.ir_http.ModelConverter, and base's args postprocessing will *not* be
able to convert the placeholder object to a real UID, only website's
postprocessing can do so.

And as far as I can see there's no reason to skip the URL building validation
either, only the multilang stuff relies on and requires that the controller be
website enabled (and in fact that it be multilang enabled), so only *that*
should be gated behind a flag.

Also always call super(), there's no reason not to and others might add args
to postprocess on base rather than website, ending up after website in the
MRO.
2014-06-13 16:11:56 +02:00
Olivier Dony 0f01df42ea [MERGE] Forward-port saas-5 up to f15cbd6 2014-06-12 18:59:15 +02:00
Olivier Dony f15cbd6520 [MERGE] Forward-port saas-4 bugfixes up to ad4c6ca 2014-06-12 18:54:36 +02:00
Fabien Meghazi faa09da325 Removed version="7.0" from form views 2014-06-12 09:09:59 +02:00
Simon Lejeune 10a0edce11 [FIX] request unbound during test execution, add condition in website.layout and livechat 2014-06-11 22:56:55 +02:00
Simon Lejeune 9482bc8f19 [FIX] attempt to render website.layout during test execution 2014-06-11 19:17:56 +02:00
Franck Bret e932ecb9df Use encodeURIComponent in place of encodeURI for website new page title, in order to escape special chars like question mark 2014-06-11 10:40:31 +02:00
Olivier Dony 6b85d80f23 [FIX] Wrap werkzeug.utils.escape() to accomodate signature change in 0.9
We always want to escape quotes (") as part of the process of
generating HTML output. This option (quote=True) turned into
an implicit flag with a DeprecationWarning in werkzeug 0.9.0
It is likely to disappear in a future release of werkzeug too.
A wrapper avoids this warning without loss of compatibility
2014-06-10 18:46:40 +02:00
Christophe Simonis ccdae747a0 [MERGE] forward port of branch saas-5 up to a7c2125 2014-06-10 13:19:55 +02:00
Christophe Simonis a7c2125735 [MERGE] forward port of branch saas-4 up to 6b8e972 2014-06-10 13:15:46 +02:00
Christophe Simonis 6b8e9727e5 [MERGE] forward port of branch saas-3 up to 4601d85 2014-06-10 12:29:47 +02:00
Denis Ledoux 4b884ed100 [FIX] website: on adding a slide to slider, new slide is last on save
Before, the new slide was set as first slide
Moreover, the indicators were not correct neither
2014-06-05 18:58:01 +02:00
Xavier Morel a9a83d00c9 [REM] python-qweb support for as-less foreach 2014-06-05 17:49:08 +02:00
Xavier Morel fcb82dc5f1 [IMP] add XID to view name in Ace editor dropdown
When looking for template bit to override or alter (in-core) through the Ace
editor, displaying only the name is a pain:

- the name generally sucks diseased donkey balls
- having to go through the code to find out what the template's XID is is a
  waste of time
2014-06-05 13:10:48 +02:00
Denis Ledoux 9bcda15b97 [FIX] website: prevent to split google analytics script 2014-06-04 16:15:16 +02:00
Richard Mathot 8dc0503aa5 [FIX] website*: make custom footer independant of main layout 2014-06-02 16:56:36 +02:00
Richard Mathot fe3775b96f [FIX] website: remove standard footer from the DOM instead of hiding it 2014-06-02 12:10:56 +02:00
Christophe Simonis c19bb8ce48 [FIX] website: correct "/" redirect to first menu 2014-06-01 14:30:15 +02:00
Xavier Morel 46712acaec [FIX] bunch of changes lost in incorrect merge f4d78ae738 2014-05-30 17:00:52 +02:00
Xavier Morel d325c0caef [REV] attempt to revert incorrect removals in f4d78ae738 2014-05-30 16:00:28 +02:00
Richard Mathot 8d822419e7 [FIX] website: fix incomplete refactoring 2014-05-30 15:35:59 +02:00
Olivier Dony 04211015fc [MERGE] Forward-port of latest saas-4 fixes, up to 0452851 2014-05-27 20:49:49 +02:00
Christophe Simonis 045285123f [FIX] website: correct bad code indentation introduced during previous commit 2014-05-27 18:46:18 +02:00
Olivier Dony fd21abd847 [MERGE] Forward-port latest saas-3 bugfixes, up to 30f43da 2014-05-27 17:18:43 +02:00
Xavier Morel e06f5b414b [IMP] inherit_option_id -> application 2014-05-27 12:13:51 +02:00
Xavier Morel d67161b649 [IMP] renamed some stuff for clarity 2014-05-27 11:57:06 +02:00
Xavier Morel 80c7b6defc [IMP] dict(int: True) -> set(int) 2014-05-27 11:57:06 +02:00
Xavier Morel da4441246e [IMP] use set to collect inherit_id and inherit_option_id
Also add a few comments to note understanding of code
2014-05-27 11:57:05 +02:00
Xavier Morel b5cce44dd2 [IMP] use sets to check for groups/ACL
rco notes that group tests are generally intersections, if the user has *any*
group set on the object he can see/use it. This change is a literal
translation of the original semantics, which may be wrong.
2014-05-27 11:57:05 +02:00