Xavier Morel
8ab5f3979b
[ADD] deduplication of website images being uploaded
...
There is a deduplication in ir.attachment, but it's only for FS-stored content
*and* it only deduplicates storage not models (as there are access rights
issues involved).
The goal here is to always return the same attachment when a user uploads the
exact same image multiple times (because it's simpler or whatever).
Initially tried to use a binary field & digest(), but search() blows up
because it tries to utf-8 encode raw binary data. So use char & hexdigest
instead.
_compute_checksum returns None if the provided attachment data does not look
like a website image attachment.
Unhandled: multiple existing matches, maybe a UNIQUE constraint on the
checksum field would be a good idea just in case.
cherrypicked from saas-3's xmo@openerp.com-20140303153855-5f2l8v0jq2mgb26f
which had to be backed out (as the patch adds a new stored field)
bzr revid: xmo@openerp.com-20140304133117-r88p9zl2tc9tsh75
2014-03-04 14:31:17 +01:00
Simon Lejeune
ff97011b3a
[MERGE] Trunk
...
bzr revid: sle@openerp.com-20140227164907-pvd92tw2bmg4d0w8
2014-02-27 17:49:07 +01:00
Fabien Meghazi
2868e9a6ac
[MERGE] upstream
...
bzr revid: fme@openerp.com-20140227101725-7egd9xq859jasnhj
2014-02-27 11:17:25 +01:00
Simon Lejeune
c8ebe2dc8a
[MERGE] trunk
...
bzr revid: sle@openerp.com-20140226175612-4xi5b8sa2h2jp37n
2014-02-26 18:56:12 +01:00
Fabien Meghazi
35a7182893
[MERGE] upstream
...
bzr revid: fme@openerp.com-20140225104654-d1ni7z5t8w0qc7mw
2014-02-25 11:46:54 +01:00
Simon Lejeune
531ab41957
[MERGE] trunk
...
bzr revid: sle@openerp.com-20140225091121-3cuuiofh2zt923p0
2014-02-25 10:11:21 +01:00
Fabien Pinckaers
2d0db5a8bf
[IMP] 3 cols to respect icon and make it easier for new users to start with
...
bzr revid: fp@tinyerp.com-20140224110148-12lndtuaztxypgmw
2014-02-24 12:01:48 +01:00
Simon Lejeune
7de120a2ef
[MERGE] trunk
...
bzr revid: sle@openerp.com-20140224103630-xxn8l4i7f16dq75w
2014-02-24 11:36:30 +01:00
Fabien Pinckaers
3e31d2cb03
[IMP] Allow to press select where you want the new line
...
bzr revid: fp@tinyerp.com-20140224095553-qc4lhnpetczl1t7v
2014-02-24 10:55:53 +01:00
Simon Lejeune
65dc368cdd
[MERGE] trunk
...
bzr revid: sle@openerp.com-20140221145952-fh5i7k18egwo3l5t
2014-02-21 15:59:52 +01:00
Christophe Simonis
7e2bf04b4a
[FIX] website: bootstrap is now in web module
...
bzr revid: chs@openerp.com-20140221104725-e1w0t9ety5oqjf0y
2014-02-21 11:47:25 +01:00
Simon Lejeune
35b64811e9
[MERGE] trunk
...
bzr revid: sle@openerp.com-20140221095425-9043pbzjy7rtbxd1
2014-02-21 10:54:25 +01:00
Christophe Simonis
4b72678bc7
[MERGE] forward port of branch saas-2 up to revid 9195 chs@openerp.com-20140220154517-6y531n1mqtnfnsmr
...
bzr revid: chs@openerp.com-20140220163815-69sza1kclnh5mavs
2014-02-20 17:38:15 +01:00
Christophe Simonis
09d7364739
[FIX] website: on DOM elements we must set attribute via setAttribute
...
bzr revid: chs@openerp.com-20140220142110-zwtvvt2bkvbki7oo
2014-02-20 15:21:10 +01:00
Simon Lejeune
1650919181
[MERGE] trunk
...
bzr revid: sle@openerp.com-20140220135606-qks6te5keyca9chx
2014-02-20 14:56:06 +01:00
Christophe Matthieu
a1bfa32389
[IMP] website ace editor: display more informations about errors when the user save views
...
bzr revid: chm@openerp.com-20140220103355-0us8k76yrrodqs0u
2014-02-20 11:33:55 +01:00
Xavier Morel
55a9e5af27
[FIX] re-enable website_sale tests because they pass so whatever
...
bzr revid: xmo@openerp.com-20140219144754-52dz24qmnjq72zor
2014-02-19 15:47:54 +01:00
Xavier Morel
a77097ce60
[REM] broken and PITA test_02_public_login_logout
...
* / fails to load, it turns out Tour is undefined because unlogged home does
not load bootstrap-tour
* after injecting bootstrap-tour, redirects to /login (to log in), tries to
inject tour again except this time ``openerp.website`` is completely empty
(although it is present on the page), no idea why.
removed test because whatever, if enable-test-fix-tour is ever rewritten and
fixed it may reappear.
bzr revid: xmo@openerp.com-20140219142115-5kpu5uvzpkwnt1ef
2014-02-19 15:21:15 +01:00
Xavier Morel
86a537e6a7
[FIX] typo method name
...
bzr revid: xmo@openerp.com-20140219140241-5p6u4t818mkuo74w
2014-02-19 15:02:41 +01:00
Christophe Matthieu
a09b0db51d
[FIX] website: Select some text > Click on the link button > Select Page textfield and start typing (e.g. comm) > There is a lot of noise here; Dsiplaying create page for existing page
...
bzr revid: odo@openerp.com-20140219105502-jg8f2i1gpz5vdarf
2014-02-19 11:55:02 +01:00
Fabien Meghazi
6f670c58ce
[REM] Removed lazy response usage
...
bzr revid: fme@openerp.com-20140219103032-5pc50taemkc6x0qo
2014-02-19 11:30:32 +01:00
Christophe Matthieu
42634d2a0d
[FIX] website rte: Select some text > Click on the link button > Start typing > The focus is still on your text, you loose what you selected
...
bzr revid: odo@openerp.com-20140219092402-bf8vkin5q07rv9bf
2014-02-19 10:24:02 +01:00
Christophe Matthieu
517ace3e41
[FIX] website: snippet: click on bullet don't change the slide of carousel. Fix unique id for each carousel.
...
bzr revid: odo@openerp.com-20140219090731-c77q63xc77osyw6w
2014-02-19 10:07:31 +01:00
Christophe Matthieu
3226a16b99
[FIX] website: snippet: the slide move he is typing (quote slider)
...
bzr revid: chm@openerp.com-20140218163759-ojyto7j8r34nh2we
2014-02-18 17:37:59 +01:00
Christophe Matthieu
16953b43bb
[FIX] website: snippet editor can be loaded before snippet animation
...
bzr revid: chm@openerp.com-20140218162452-cf3jqkbstlyw7l5x
2014-02-18 17:24:52 +01:00
Xavier Morel
61c82f28a4
[FIX] imports, use @expectedFailure, simplify some inject specs
...
bzr revid: xmo@openerp.com-20140218160339-2r34z4ks2o4lriu5
2014-02-18 17:03:39 +01:00
Christophe Matthieu
1c4f859f1f
[FIX] website: jQuery (sizcache) trigger a change id in the page, the observer set as dirty all template. All template are saved when the user click on save button.
...
bzr revid: chm@openerp.com-20140218160144-5drlsnz4plyb9tqx
2014-02-18 17:01:44 +01:00
Christophe Matthieu
09397684b3
[FIX] website: change odrer of script tag because jquery-ui-1.9.1.custom overwrite jQuery and cancel some bootstrap method in edit mode
...
bzr revid: chm@openerp.com-20140218153451-uxd87o5b7zy3asvv
2014-02-18 16:34:51 +01:00
Christophe Matthieu
c930e2489f
[FIX] website_blog: At one step, it says 'delete the title', but it deletes the whole block
...
bzr revid: chm@openerp.com-20140218151127-a6471u9l0jpot6gq
2014-02-18 16:11:27 +01:00
Christophe Matthieu
00c810ab14
[FIX] website: Don't allow to edit the menu inline. Users try to change the link, but it does not work. We can put a tooltip explaning they should use the content top menu to edit the menu; bootstrap tooltip don't available in edit mode.
...
bzr revid: chm@openerp.com-20140218145619-fboofhu111s3g45p
2014-02-18 15:56:19 +01:00
Christophe Matthieu
e473e795f6
[FIX] website: Page is added to menu even if the checkbox is unchecked at adding time
...
bzr revid: chm@openerp.com-20140218144215-vmlah8giy28oq3cd
2014-02-18 15:42:15 +01:00
Xavier Morel
c42f9553ec
[IMP] remove pointless semicolons, use @expectedFailure instead of commenting broken test
...
bzr revid: xmo@openerp.com-20140218140610-t4amo9b2jjkk2r0h
2014-02-18 15:06:10 +01:00
Simon Lejeune
47d1019ed0
[MERGE] trunk
...
bzr revid: sle@openerp.com-20140218140417-lrzzswy31wsjr2py
2014-02-18 15:04:17 +01:00
Christophe Matthieu
28958a4088
[FIX] website tour: At the end of the "Insert a banner" tour the help is "Close Mobile Preview" Change into "Check Mobile Preview" -> i would close with a "Continue" bouton to keep running the help on content -> really needed. With the tour they stay in editable mode and search for adding a new menu
...
bzr revid: chm@openerp.com-20140218111008-rp1kg7r8pv53wfoh
2014-02-18 12:10:08 +01:00
Christophe Matthieu
8830cb581c
[FIX] website: In the footer, users record their phone number inbetween the fa-phone and the t-field. As a result, they change the footer template, not the phone number of the company. This zone should be t-ignore to avoid this mistake.
...
bzr revid: chm@openerp.com-20140218110250-lvvem8ibkg3g8e8d
2014-02-18 12:02:50 +01:00
Christophe Matthieu
934f57c0c7
[FIX]website snippet: banner content editable
...
bzr revid: chm@openerp.com-20140218101737-o19ht6n6f2o26pfe
2014-02-18 11:17:37 +01:00
Christophe Matthieu
c11e6f6249
[FIX] website: snippet resizing: display top and bottom arrow in function of margin size
...
bzr revid: chm@openerp.com-20140218101017-f827kued494rfu9g
2014-02-18 11:10:17 +01:00
Richard Mathot (OpenERP)
0e3c241e66
[IMP] Add url widget in server actions form view
...
bzr revid: rim@openerp.com-20140218084315-gtutjttm6sx627k1
2014-02-18 09:43:15 +01:00
Xavier Morel
aa0eac1257
[FIX] re-enable crawler tests
...
Move URLCase back out of the test module, otherwise loadTestFromModule
attempts to load it in the usual manner (~URLCase('runTest')). Which does not
work at all, because that's not what URLCase is for.
URLCase extends TestCase to benefit from the TestCase.run infrastructure
(running tests, filling result object, etc...)
bzr revid: xmo@openerp.com-20140217151535-alq7pq6qapski73x
2014-02-17 16:15:35 +01:00
openerp-sle
e060bc056b
[MERGE] trunk
...
bzr revid: openerp-sle@openerp-sle.home-20140217142030-619etd09tv45gq3q
2014-02-17 15:20:30 +01:00
Fabien Meghazi
375941932c
[FIX] website's slug() should check if slugified string is empty
...
lp bug: https://launchpad.net/bugs/1271143 fixed
bzr revid: fme@openerp.com-20140217130755-ip1hccv9cxiscqf8
2014-02-17 14:07:55 +01:00
Christophe Matthieu
7d6dd7070d
[FIX] website: snippet resizing; Users don't understand when they can drag arrows to resize col-md-XX. They try, it does not work, so they think the feature does not work. So, horizontal arrow on col-md-XX snippets should use an icon according to what you can do
...
bzr revid: chm@openerp.com-20140217100418-iwdrv36a4u2inasn
2014-02-17 11:04:18 +01:00
openerp-sle
6334792778
[MERGE] trunk
...
bzr revid: openerp-sle@openerp-sle.home-20140217095017-st100iyy9vkuzyhc
2014-02-17 10:50:17 +01:00
Olivier Dony
632182589c
[IMP] website: extra safe check for qcontext's flag
...
bzr revid: odo@openerp.com-20140217093311-wmv6sxtv9aizusvr
2014-02-17 10:33:11 +01:00
Antony Lesuisse
2112eb6448
[FIX] website_sale enable some tests
...
bzr revid: al@openerp.com-20140217012827-3rb4mrkgx3ubp0dx
2014-02-17 02:28:27 +01:00
Antony Lesuisse
e54758988a
[FIX] website tests
...
bzr revid: al@openerp.com-20140217001148-2ub37hxyz8tbxrwe
2014-02-17 01:11:48 +01:00
openerp-sle
2445e9f0bc
[MERGE] trunk
...
bzr revid: openerp-sle@openerp-sle.home-20140216103609-ihf3bz4nf4rds5ue
2014-02-16 11:36:09 +01:00
Christophe Matthieu
5ec3d91cf7
[MERGE] from trunk
...
bzr revid: chm@openerp.com-20140214133607-0pdcfyxvuqwsway6
2014-02-14 14:36:07 +01:00
Christophe Matthieu
329d2b7b1a
[Fix] The new page is confusing: one user created a new page and then she don't figure out how to find it.
...
[IMP] website: add a checkbox on new page dialog to add page in menu.
[IMP] website: add page: change default sequence and layout
bzr revid: chm@openerp.com-20140214132602-ts8wcgdkospofg5f
2014-02-14 14:26:02 +01:00
Christophe Matthieu
386b2fe70f
[IMP] website: add page: change default sequence and layout
...
bzr revid: chm@openerp.com-20140214103744-dptrytkfbcwti6t8
2014-02-14 11:37:44 +01:00