Antony Lesuisse
56eeefdfda
[MERGE] trunk-websit-al-refactor by chm
...
- allow fiscal position change on sale orders
- public user on website
- simplify website_sale sale.order and shopping cart code
- remove preprocess_request
bzr revid: al@openerp.com-20140507153223-q73u5lhyrfw98o3a
2014-05-07 17:32:23 +02:00
Fabien Meghazi
cf8cf4f255
[REM] preprocess_request from website
...
The method is still there with only a pass statement
Will completetly remove once chm merges his branch
bzr revid: fme@openerp.com-20140505163841-lstk3r37sf23ngrg
2014-05-05 18:38:41 +02:00
chm@openerp.com
ee16b014b1
[MERGE] from trunk
...
bzr revid: chm@openerp.com-20140502095132-kfx40xou73mukr2y
2014-05-02 11:51:32 +02:00
Antony Lesuisse
7e25b9ae55
[MERGE] saas-4 report_webkit missing dependency on report
...
bzr revid: al@openerp.com-20140501152604-4cobh5ui47dt4pem
bzr revid: al@openerp.com-20140501155633-gefnc3zqcsr2rhaz
bzr revid: al@openerp.com-20140501161156-4wbsvhh8gz4r22h3
2014-05-01 18:11:56 +02:00
Fabien Pinckaers
1dd63bce78
[IMP] website images: allow no max_width (default), faster loading if no resize
...
bzr revid: fp@tinyerp.com-20140501114003-5xs31o0lzpp8ru2s
2014-05-01 13:40:03 +02:00
Fabien Meghazi
048c4c284b
[FIX] Url mismatch redirection should only be done for GET and HEAD http verbs
...
bzr revid: fme@openerp.com-20140429095643-hmq1t45tgv3opyh8
2014-04-29 11:56:43 +02:00
Fabien Meghazi
fdaa70f319
[REM] language passed as query param for bundles controllers
...
'translatable' has been removed from assets templates, no need for this anymore
bzr revid: fme@openerp.com-20140428124513-vlbm1hjsv9989den
2014-04-28 14:45:13 +02:00
chm@openerp.com
13469c23d8
[MERGE] from trunk
...
bzr revid: chm@openerp.com-20140424135841-akc01inl26fcirwy
2014-04-24 15:58:41 +02:00
Olivier Dony
3ad6d69b21
[FIX] website: avoid using werkzeug API only present in 0.9+
...
bzr revid: odo@openerp.com-20140424131415-ot0r5062wndvuicr
2014-04-24 15:14:15 +02:00
Fabien Meghazi
1d8400418e
[MERGE] upstream
...
bzr revid: fme@openerp.com-20140423123744-zfz7k8drn2t624zu
2014-04-23 14:37:44 +02:00
Fabien Meghazi
7f29d7e371
[FIX] website: pass `lang` to js and css bundle controllers
...
bzr revid: fme@openerp.com-20140422135022-u9p7zofv5sbeqo30
2014-04-22 15:50:22 +02:00
Fabien Meghazi
c117c3e10f
[MOV] website: translatable context var from website#preprocess_request to ir.ui.view#render
...
bzr revid: fme@openerp.com-20140422134748-9niep8iyzx9ldq1l
2014-04-22 15:47:48 +02:00
chm@openerp.com
aaa3265f47
[MERGE] from trunk
...
bzr revid: chm@openerp.com-20140411081401-0ybuuboo6f3b58kv
2014-04-11 10:14:01 +02:00
chm@openerp.com
7298130f31
[MERGE] from trunk
...
bzr revid: chm@openerp.com-20140410152925-ndajhnyh4rt8pkgu
2014-04-10 17:29:25 +02:00
chm@openerp.com
4dc3b139f3
[IMP] ir_qweb, ir_ui_view: can use id insead of xml_id; can render ir.ui.view many2one with widget='qweb' in template
...
bzr revid: chm@openerp.com-20140409104427-ut3r5acavyjsp6bj
2014-04-09 12:44:27 +02:00
chm@openerp.com
d2407ec8c4
[MERGE] from trunk
...
bzr revid: chm@openerp.com-20140408154556-e4ud0kzyfcm13iui
2014-04-08 17:45:56 +02:00
chm@openerp.com
673dc5b1d7
[MERGE] from trunk
...
bzr revid: chm@openerp.com-20140408132412-7ofhd87laj3uoazj
2014-04-08 15:24:12 +02:00
Simon Lejeune
4983f86d81
[MERGE] trunk
...
bzr revid: sle@openerp.com-20140407174534-pk6b5lozvik78fom
2014-04-07 19:45:34 +02:00
Christophe Simonis
0fad8159f3
[MERGE] forward port of branch saas-3 up to revid 9380 chs@openerp.com-20140407144439-10n8fs6zovodwwtx
...
bzr revid: chs@openerp.com-20140407163318-hh3jwfkj3o2c83lk
2014-04-07 18:33:18 +02:00
chm@openerp.com
ee4b879536
[IMP] website: media editor: insert add button for image loader and fix try_remove don't remove image
...
bzr revid: chm@openerp.com-20140407074922-zri6j4u9sw52nkkw
2014-04-07 09:49:22 +02:00
Simon Lejeune
8bf8e8a01c
[FIX] website ir_qweb: do not crash if request is not bound when rendering a template
...
bzr revid: sle@openerp.com-20140402161349-ecm6pit20j44taf1
2014-04-02 18:13:49 +02:00
Olivier Dony
f120d6ffb7
[FIX] ir.qweb: avoid errors with function fields of type datetime
...
bzr revid: odo@openerp.com-20140401160623-loj5nsph7tfnn1us
2014-04-01 18:06:23 +02:00
Fabien Meghazi
b7fbef1241
[FIX] Serve ir.attachment with SUPERUSER_ID
...
We are not supposed to have a user id here
bzr revid: fme@openerp.com-20140326184022-1hulv7t5y6vuvr9y
2014-03-26 19:40:22 +01:00
Fabien Meghazi
eb5cbea318
[MERGE] upstream
...
bzr revid: fme@openerp.com-20140326152433-vegu5tuvr8vc1s8v
2014-03-26 16:24:33 +01:00
Fabien Meghazi
0fe55dddc1
[IMP] Added a mimetype field in ir.attachment
...
bzr revid: fme@openerp.com-20140325160413-jvxjii6rbqcrjxor
2014-03-25 17:04:13 +01:00
chm@openerp.com
0d4d9af5f4
[FIX] website: fix and activate frontend test
...
bzr revid: chm@openerp.com-20140325140328-3f5is66d0petqrl6
2014-03-25 15:03:28 +01:00
Fabien Meghazi
329c19f94e
[FIX] Fix url slug check bug in multilang=True
...
bzr revid: fme@openerp.com-20140325140026-0qdx9zl21za8gto9
2014-03-25 15:00:26 +01:00
Fabien Meghazi
8435da41bc
[MERGE] upstream
...
bzr revid: fme@openerp.com-20140325103928-ja3bqy6xmyp91gva
2014-03-25 11:39:28 +01:00
Fabien Meghazi
27f38edb25
[FIX] dirty saas-3 fix for url lang switching with model converters
...
bzr revid: fme@openerp.com-20140325100722-temaci88fowcr2m5
2014-03-25 11:07:22 +01:00
chm@openerp.com
13d7cfe86c
[MERGE] from trunk
...
bzr revid: chm@openerp.com-20140324082341-d6gqyloc7822aen2
bzr revid: chm@openerp.com-20140325084852-i1yomuyhyen4ss95
2014-03-25 09:48:52 +01:00
Simon Lejeune
9556cadbff
[MERGE] trunk
...
bzr revid: sle@openerp.com-20140324162043-dzdwcxdt32sfjy57
2014-03-24 17:20:43 +01:00
Fabien Meghazi
bb8b7ea2d9
[ADD] website ir_http: serve binary ir.attchments with urls
...
bzr revid: fme@openerp.com-20140324151728-hpegewvf3b38ndyi
2014-03-24 16:17:28 +01:00
Fabien Meghazi
9285813da9
[IMP] website images: only checksum ir.attachment for empty urls
...
bzr revid: fme@openerp.com-20140324151447-a3mkncjh0b7k16hg
2014-03-24 16:14:47 +01:00
Simon Lejeune
50fda546e2
[REF] Moved qweb contact from website to base and removed the from_html method (it never worked)
...
bzr revid: sle@openerp.com-20140324135933-f21heo0sz0tzjbv3
2014-03-24 14:59:33 +01:00
Christophe Simonis
d93b79e6f4
[MERGE] forward port of branch saas-3 up to revid 9345 dle@openerp.com-20140324110349-e82t1bmmtjqbl85k
...
bzr revid: chs@openerp.com-20140324133811-4az1kvbznd26seow
2014-03-24 14:38:11 +01:00
Simon Lejeune
6b5986e34d
[FIX] ir_http website postprocess args: do not redirect if the only difference between the url and the post-processed url is the url-enconding of some characters
...
bzr revid: sle@openerp.com-20140321120133-0k1zjsrtgwrw6oon
2014-03-21 13:01:33 +01:00
Xavier Morel
a56dc53bea
[REM] 4-spaces indent for web view pretty-print-before-save routine
...
Didn't quite work right: on the layout, it would exponentially increase
leading spaces in text nodes. Combined with a bug injecting snippets marks in
the footer (and thus invalidating and re-saving the layout at each snippet
addition) this could blow up the layout template and rendered page to >20MB.
Just keep lxml's standard 2-spaces indent.
LXML is unable to pretty print the layout anyway.
bzr revid: xmo@openerp.com-20140321075419-9w88h232r928xv5f
2014-03-21 08:54:19 +01:00
chm@openerp.com
abe8e7208e
[MERGE] from trunk
...
bzr revid: chm@openerp.com-20140318102102-ug0ny6q360i4o1e6
2014-03-18 11:21:02 +01:00
Xavier Morel
8ffc4d0a5a
[ADD] support for presized fields in website/image
...
also add presized field to attachments (automatically computed from datas)
bzr revid: xmo@openerp.com-20140317104251-ddsa9cfpq1vkk2k1
2014-03-17 11:42:51 +01:00
Fabien Pinckaers
d5c63e3205
[MERGE] trunk
...
bzr revid: fp@tinyerp.com-20140316122101-angijeo5fmr5j8v7
2014-03-16 13:21:01 +01:00
Fabien Pinckaers
675a71b2b8
[IMP] attachments on messages
...
bzr revid: fp@tinyerp.com-20140316113742-odae0ph3a1qrqn12
2014-03-16 12:37:42 +01:00
chm@openerp.com
353bbdc2c3
[FIX] website: route and redirect: remove all backslash from url
...
bzr revid: chm@openerp.com-20140314162346-25vohj6ayp65tgiy
2014-03-14 17:23:46 +01:00
chm@openerp.com
0bae967baa
[MERGE] from trunk
...
bzr revid: chm@openerp.com-20140312154854-gtq7v1dxfnunkcz6
2014-03-12 16:48:54 +01:00
Fabien Meghazi
b4ffbb4b35
[FIX] website#ir.http: do not postprocess arguments on non `website_enabled` endpoints
...
bzr revid: fme@openerp.com-20140312143539-bzf54zlzeawqkfuo
2014-03-12 15:35:39 +01:00
Christophe Simonis
d504764eff
[MERGE] forward port of branch saas-3 up to revid 9298 chm@openerp.com-20140311130852-3ft0v1mc9ht1any6
...
bzr revid: chs@openerp.com-20140311145205-s56fj113fsrnisc3
2014-03-11 15:52:05 +01:00
Fabien Meghazi
5e036bbf7c
[FIX] Properly redirect in case of invalid url slugs
...
Use werkzeug's api instead of doing hackish url replacement
bzr revid: fme@openerp.com-20140310130530-e86cdwhdca9cs9g3
2014-03-10 14:05:30 +01:00
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
Xavier Morel
a0feb7c3c9
[REV] backout xmo@openerp.com-20140303153855-5f2l8v0jq2mgb26f, schemas should not be altered in saas-3
...
bzr revid: xmo@openerp.com-20140304132101-qysq310wp1oo859n
2014-03-04 14:21:01 +01:00
Xavier Morel
e78a3b18cc
[ADD] tentative removal of attachments
...
Attachments ought be removed only if they are not used in an existing page/web
view.
Theoretically this could be set directly in unlink(), but:
* that would make a nice error message significantly harder
* the expenses of performing a text search in all view archs would be a bit expensive
Notes:
* the views set could be reduced to only "web" views
* the search is likely sensible to false negatives e.g. different order of
query parameters. It *will* remove images still being used.
bzr revid: xmo@openerp.com-20140304110716-u14w6uo8fbkfa42i
2014-03-04 12:07:16 +01:00
Xavier Morel
a99a15c960
[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.
bzr revid: xmo@openerp.com-20140303153855-5f2l8v0jq2mgb26f
2014-03-03 16:38:55 +01:00
Denis Ledoux
70d3570846
[FIX]website: do not send False value to google map api to retrieve the image. Otherwise, you are in the middle of the ocean.
...
bzr revid: dle@openerp.com-20140228170900-lagmopkmkb58exqr
2014-02-28 18:09:00 +01:00
Xavier Morel
6b857b6eeb
[FIX] whitespace/indent lost by RTE
...
Didn't manage to find RTE settings to avoid losing leading whitespace of
lines, so reindeint arch after doing all integration, right before saving back
to view's field.
* html.fromstring(parser=HTMLParser(remove_blank_text=True) does not seem to
work, so serialize to XML, and parse back with
remove_blank_text. remove_blank_text necessary for lxml's pretty_print to
work correctly.
* pretty_print only & always uses 2 spaces/indent level. Our files (and the
HTML editor's Format button) uses 4 spaces -> need a second pass to double
indents.
bzr revid: xmo@openerp.com-20140227125934-q8j3z440px2ic6kx
2014-02-27 13:59:34 +01:00
Denis Ledoux
50ecb598e7
[FIX] website: website settings should inherit of res.config.settings and not base.config.settings, as it create a new page settings, instead of extending one
...
bzr revid: dle@openerp.com-20140226171114-jwthykyud66l7o6x
2014-02-26 18:11:14 +01:00
Fabien Meghazi
35a7182893
[MERGE] upstream
...
bzr revid: fme@openerp.com-20140225104654-d1ni7z5t8w0qc7mw
2014-02-25 11:46:54 +01:00
Christophe Matthieu
1d4f8783b5
[IMP] website_sale: some fix and imp
...
bzr revid: chm@openerp.com-20140221172816-5bb5l9z2xsvswz8u
2014-02-21 18:28:16 +01:00
Christophe Matthieu
758aa20c75
[MERGE] from trunk
...
bzr revid: chm@openerp.com-20140221112742-nq2g1l3emoa2q9cz
2014-02-21 12:27:42 +01:00
Christophe Matthieu
bfeb2b9631
[MERGE] from trunk
...
bzr revid: chm@openerp.com-20140221094343-s1oh3iq07zi2jo0x
2014-02-21 10:43:43 +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 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
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
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
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
Christophe Matthieu
ed785f0783
[FIX] website_sale: pager and breadcrum keep search and filter. Filter keep search and category. Links for category
...
bzr revid: chm@openerp.com-20140212115516-3izdv7cszgh2n3l4
2014-02-12 12:55:16 +01:00
Thibault Delavallée
19d9b7309d
[CLEAN] website: ir_actions: removed commented line + small reordering of columns definition + fixed an help string
...
bzr revid: tde@openerp.com-20140212104227-bd2rsrewqizmxtf3
2014-02-12 11:42:27 +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
Frédéric van der Essen
04a6074b1a
[MERGE] forward porting fixes from saas-3
...
bzr revid: fva@openerp.com-20140210155628-75mgw7qcq9k5ncem
2014-02-10 16:56:28 +01:00
Fabien Meghazi
0da8cdda90
[FIX] Set default 'editable' key in website's rendering context
...
bzr revid: fme@openerp.com-20140210143546-1t82gog330n5x89t
2014-02-10 15:35:46 +01:00
Antony Lesuisse
87172d90d2
[MERGE] saas-3
...
bzr revid: al@openerp.com-20140209140315-ukqlf90ngy6ycu2k
2014-02-09 15:03:15 +01:00
Denis Ledoux
38b7c38e32
[FIX] website: config settings does write the values on the website model
...
This config contains only related fields of the website_id many2one.
The problem is that applying the change CREATE a res config settings
And the create orm method does not forward and write the values on the related fields.
Write does.
The best fix should be to change all these related fields to char fields,
and to create the set_ method who will acutally set the value to the website_id.
But, unfortunately, this is a stable branch
And we cannot alter the database structure in stable branches.
bzr revid: dle@openerp.com-20140207172157-6upyhuin93qlkrfa
2014-02-07 18:21:57 +01:00
Xavier Morel
7ac7b2599e
[IMP] make page lookup case-insensitive during completion
...
bzr revid: xmo@openerp.com-20140207150623-vevnuswi9gx0bqeb
2014-02-07 16:06:23 +01:00
Antony Lesuisse
cd2bddad46
[FIX] website ir.ui.view render
...
bzr revid: al@openerp.com-20140207140503-doolcovzuce4m6i4
2014-02-07 15:05:03 +01:00
Thibault Delavallée
21602f92a1
[FIX] website: server action: compute website_url only for published code actions
...
bzr revid: tde@openerp.com-20140207123249-yfql78xurblyamze
2014-02-07 13:32:49 +01:00
Christophe Simonis
1b0ce7052e
[FIX] website: do not force uneditable templates
...
bzr revid: chs@openerp.com-20140207122837-ysfss4khpt2hsau1
2014-02-07 13:28:37 +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 Simonis
daace48560
[MERGE] fix template rendering
...
bzr revid: chs@openerp.com-20140206163811-i43srg7hd4yqzzo3
2014-02-06 17:38:11 +01:00
Fabien Meghazi
2d4fb97696
[IMP] Move some qweb rendering context vars from website#ir.qweb to server#ir.ui.view
...
bzr revid: fme@openerp.com-20140206161316-jw7luqon476widcm
2014-02-06 17:13:16 +01:00
Thibault Delavallée
2f682975bc
[FIX] website: fixed call to slugify
...
- python-slugify: max_length is an optional keyword
- slugify library also exists and does not accepts max_length -> if this very simple library is used, fall
back on our own implementation
bzr revid: tde@openerp.com-20140206145638-entdcqsawrqf1nnq
2014-02-06 15:56:38 +01:00
Fabien Meghazi
b112d5d2f1
[FIX] ir ui view should have rendering context on request.website_enabled
...
bzr revid: fme@openerp.com-20140206143919-f6vz8rpx9mb4798g
2014-02-06 15:39:19 +01:00
Denis Ledoux
f487fbb298
[FIX] website: urljoin from urlparse cannot handle unicode. Therefore, We decode before passing the arg to urljoin then we (re-)encode the result
...
bzr revid: dle@openerp.com-20140206103929-oe289oilz08n1msk
2014-02-06 11:39:29 +01:00
Thibault Delavallée
91abbeda24
[DOC] website: ir_actions: added some comments
...
bzr revid: tde@openerp.com-20140206081921-vp22x256vkk3ea1o
2014-02-06 09:19:21 +01:00
Thibault Delavallée
89d053111f
[IMP] website: server action: response is a better keyworkd than template
...
bzr revid: tde@openerp.com-20140205140238-liili9v4l0a074zj
2014-02-05 15:02:38 +01:00
Thibault Delavallée
47309f045b
[MERGE] Sync with trunk
...
bzr revid: tde@openerp.com-20140205115653-7ktnizsmvppv90wk
2014-02-05 12:56:53 +01:00
Fabien Meghazi
766f7d4808
[FIX] website.menu#url shall not be required=True
...
A parent node's url is not clickable in the website front-end
bzr revid: fme@openerp.com-20140205101500-ghmkfkpvkojv81kf
2014-02-05 11:15:00 +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
Fabien Meghazi
5451f5587d
[REV] Bring back QWebExceptions
...
bzr revid: fme@openerp.com-20140131113611-wee3xvnvzw9smq2r
2014-01-31 12:36:11 +01:00
Antony Lesuisse
974c666bcd
[REV] website qweb dont change exception types
...
bzr revid: al@openerp.com-20140131011427-3bome249kut8fs3t
2014-01-31 02:14:27 +01:00
Antony Lesuisse
ff37d0ebca
website sale refactor
...
bzr revid: al@openerp.com-20140130233951-55ttup4ohmp4i0nf
2014-01-31 00:39:51 +01:00
Antony Lesuisse
3124343f04
[IMP] product style model renames, add user_id on website to be used in multiwebsite
...
bzr revid: al@openerp.com-20140130225853-6fgpmtaa8v1vr25x
2014-01-30 23:58:53 +01:00
Fabien Meghazi
1931c307a2
[IMP] Improved qweb exeptions handling
...
bzr revid: fme@openerp.com-20140130212053-fkb9ug49qun54ehi
2014-01-30 22:20:53 +01:00
Fabien Meghazi
fc979b9a7a
[FIX] url_for()
...
bzr revid: fme@openerp.com-20140130195043-pkfkmqg80c2yk5p5
2014-01-30 20:50:43 +01:00
Fabien Pinckaers
a1b95f6823
[FIX] Customize menu
...
bzr revid: fp@tinyerp.com-20140130194227-b5brj96f8tgc88hf
2014-01-30 20:42:27 +01:00
Olivier Dony
78fefd54f0
[IMP] website tests: unicode test attributes to avoid warnings in auto_init when comparing attr values
...
bzr revid: odo@openerp.com-20140130162615-nx7f3nhifwqo357u
2014-01-30 17:26:15 +01:00
jke-openerp
1176ef49c1
[FIX] Fix according ODO review : widget image, googlemap, social escape, ...
...
bzr revid: jke@openerp.com-20140130121244-tv840uvtorg0y3s1
2014-01-30 13:12:44 +01:00
Denis Ledoux
18532330d4
[FIX] *: replace urllib calls by werkzeug calls, as werkzeug handles utf-8 encoding while urllib doesnt
...
bzr revid: dle@openerp.com-20140130112408-8pdju26jnkyxvlw2
2014-01-30 12:24:08 +01:00
jke-openerp
516a85cecc
[Fix] Use maps.google.com and not .be (as for thumbail who use the api .com).
...
[IMP] Add zoom 10 by default
[FIX] Escape False in address for google search
bzr revid: jke@openerp.com-20140130111349-l90w9larrntv83hh
2014-01-30 12:13:49 +01:00
Christophe Simonis
3d80e31012
[FIX] website: url_for() does not mess up anchor links
...
bzr revid: chs@openerp.com-20140129195025-i2ey682o6marp8k1
2014-01-29 20:50:25 +01:00
Fabien Meghazi
eff61fde93
[FIX] Support for older werkzeug versions
...
bzr revid: fme@openerp.com-20140129135208-liewqaib50lwbbjy
2014-01-29 14:52:08 +01:00
Denis Ledoux
0306adbfe3
[FIX] *: using werkzeug.url_encode instead of urllib.urlencode because urliblib.encode does not accept unicode
...
bzr revid: dle@openerp.com-20140129121316-b5f5e4r6fz9l80kq
2014-01-29 13:13:16 +01:00
Antony Lesuisse
6f8d8434dc
[FIX] website_hr_recruitment full cleanups
...
- keep url namespace under /jobs
- public mode fixes
- moved jobs_ids field in hr_recruitment
- simplify code, remove dead code and data
bzr revid: al@openerp.com-20140129051403-cipao0bllxa85gsg
2014-01-29 06:14:03 +01:00
Fabien Meghazi
326c35aecd
[IMP] Merge bananas and cumcumbers in order to prepare the t-href|t-action removal
...
bzr revid: fme@openerp.com-20140128201417-1elmttz8qen9q3ws
2014-01-28 21:14:17 +01:00
Christophe Matthieu
316745250b
[FIX] website: public user; website_sale
...
bzr revid: chm@openerp.com-20140128152136-pqh7oqj4drpjk09z
2014-01-28 16:21:36 +01:00
jke-openerp
20a5ab8ea4
[MERGE] moved public user to base, livechat fix
...
bzr revid: jke@openerp.com-20140128145023-hthi8f75gq8jo11u
2014-01-28 15:50:23 +01:00
jke-openerp
2c255db1d0
[REF] Move public_user from website_data to module server/addons/base
...
[REF] Remove _auth_method_public from website/ir_http to become a native auth_method in server/addons/base/ir/ir_http
bzr revid: jke@openerp.com-20140128142824-62ejlnnud4a4m694
2014-01-28 15:28:24 +01:00
Antony Lesuisse
7c90d3afa5
[FIX] website page creation
...
bzr revid: al@openerp.com-20140128140017-r8yy8tzsvo4y0e92
2014-01-28 15:00:17 +01:00
Christophe Matthieu
d588e44d34
[IMP] event,event_sale: refactoring; remove crappy 9999 hardcoded values; remove visibility; add constraints
...
[FIX] remove module_portal_anonymous ref
[IMP] website: res_config with wizard
[IMP] event: remove related field to res.partner
[FIX] website_sale: change crappy _get_pricelist method (who return a browse record to a function field type many2one)
bzr revid: chm@openerp.com-20140128092037-zrrbz1hrmgat88o4
2014-01-28 10:20:37 +01:00
Antony Lesuisse
87a1b0a459
[FIX] customize menu
...
- regression introducted by elif
- hide non relevant option
- deterministic order of items
bzr revid: al@openerp.com-20140127205326-0o1vgbf45mvxllgv
2014-01-27 21:53:26 +01:00
Christophe Matthieu
b598d52020
[IMP] website: res_config
...
bzr revid: chm@openerp.com-20140127180059-sfwyqf57eixr8dxq
2014-01-27 19:00:59 +01:00
Christophe Matthieu
b1462a9d30
[IMP] website: res_config with wizard
...
bzr revid: chm@openerp.com-20140127173816-uldoee71h7ntpyhl
2014-01-27 18:38:16 +01:00
Raphael Collet
d9943ea49b
[IMP] website: make code more robust
...
bzr revid: rco@openerp.com-20140127145848-ib7jlhb1c6aw3w2d
2014-01-27 15:58:48 +01:00
Christophe Matthieu
43044d8ee7
[IMP] event,event_sale: refactoring; remove crappy 9999 hardcoded values; remove visibility; add constraints
...
bzr revid: chm@openerp.com-20140127135828-z848mvpis5d9xyh8
2014-01-27 14:58:28 +01:00
Fabien Meghazi
a2fb618354
[FIX] do not crash when trying to rescue a wrong t-call in template
...
Need trunk-website-al server's Rev#5173
bzr revid: fme@openerp.com-20140127114034-luhekopukpbmntqt
2014-01-27 12:40:34 +01:00
Fabien Meghazi
f0606d3cc0
[FIX] Contact field encoding issue
...
bzr revid: fme@openerp.com-20140124132304-4kmjd9k4k2xgjecv
2014-01-24 14:23:04 +01:00
Fabien Meghazi
15c1d052e3
[IMP] Ensure slug validity otherwise redirect
...
bzr revid: fme@openerp.com-20140124104610-lzsomdyl10ens0av
2014-01-24 11:46:10 +01:00
Fabien Meghazi
d6690455e9
[REM] Removed preload_records
...
This feature will be stripped down and moved to server's ir.http#_dispatch()
bzr revid: fme@openerp.com-20140123150448-3hhlj4vytr82k88n
2014-01-23 16:04:48 +01:00
ddm@openerp.com
8ee6f53005
[IMP] Move website settings to 'Configration' wizard
...
bzr revid: ddm@openerp.com-20140123150317-9vxccax7vn2xls9x
2014-01-23 16:03:17 +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
Fabien Meghazi
ef18e601dd
[FIX] Reflect endpoints changes introduced in server's Revision: 5153 revid:fme@openerp.com-20140121195348-mcdreqjo3kod0p7i
...
bzr revid: fme@openerp.com-20140121195441-ijt2yjv32v8b39kq
2014-01-21 20:54:41 +01:00
ddm@openerp.com
1c3a7a8fd3
[IMP] Add support for Google Analytics
...
bzr revid: ddm@openerp.com-20140121163456-i3v3a7oh8qejc9oo
2014-01-21 17:34:56 +01:00
Christophe Matthieu
4ff1af4d01
[FIX] website: display or not editor edit button; website_sale: test tour; website: contact qweb widget
...
bzr revid: chm@openerp.com-20140121123912-0ya4ziusj09efti3
2014-01-21 13:39:12 +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
Christophe Matthieu
449a37dc0d
[FIX] website: base_language_install is an osv.osv_memory insead of osv.osv
...
bzr revid: chm@openerp.com-20140114093603-toryzflx3b0yzdyr
2014-01-14 10:36:03 +01:00
Xavier Morel
3f8c2d0bad
[FIX] conversion from html to values for text field
...
see html_to_text comment
bzr revid: xmo@openerp.com-20140110152024-yp2out0jg1gx1uhs
2014-01-10 16:20:24 +01:00
Christophe Matthieu
9fd7db5150
[WIP] website/ir_rule: remove session from access right evaluation, allow to read pricelist to evrybody and use superuser for saleorder in website_sale
...
bzr revid: chm@openerp.com-20140107085728-77mxlims6fa0li76
2014-01-07 09:57:28 +01:00
Fabien Pinckaers
ba2689e70c
[FIX] don't crash on empty dates [IMP] default dates on demo tracks
...
bzr revid: fp@tinyerp.com-20131222230021-9a03x3eiwi4e780x
2013-12-23 00:00:21 +01:00
Xavier Morel
e04983ae69
[IMP] conversion back from m2o t-field to openerp value
...
Instead of doing a name_get on the edited value and trying to find out
an m2o to assign back (which there's pretty much no chance of given
there's no autocompletion or anything), alter the m2o record in-place
by setting the provided edited value to its _rec_name.
Ideally, both features could be supported via more advanced m2o
edition widgets which would allow selecting an existing m2o, creating
a new m2o record from scratch or (maybe) editing the existing m2o's
display_name if possible, somewhat similar to what the form view
provides.
Without these though, the only action which makes any sense is to edit
the user-visible "value" where it is found, as with more normal
fields.
bzr revid: xmo@openerp.com-20131218140917-4eo2o55yfcumzhov
2013-12-18 15:09:17 +01:00
Xavier Morel
90a9e522f3
[ADD] placeholder support on t-field
...
A placeholder is looked up:
1. in the field's options ("placeholder")
2. on the t-field node itself (@placeholder)
3. on the field's column (.placeholder)
The first one found is used as the @placeholder of the resulting node
(in-HTML), and displayed when the field is empty and unfocused.
If no placeholder is found, an empty field just gets a small padding
in order to be easier to see & focus.
bzr revid: xmo@openerp.com-20131218114901-xi3ye11x5pysq2a2
2013-12-18 12:49:01 +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
Xavier Morel
4469b36f77
[FIX] change view section saving: only save view section *content*
...
Before, would save view section itself (including root element). But
branding distribution (and thus editability) are set on the last
programmatic root, thus the root element may well be generated
e.g. <span t-att-foo> will define the span itself as editable.
Saving this would remove the programmatic content on the node, and
thus break the view section altogether.
Fix the issue by only saving the root's content in the previous root.
bzr revid: xmo@openerp.com-20131217112034-nbxbg919cffv4w51
2013-12-17 12:20:34 +01:00
Xavier Morel
87c3b6ac72
[FIX] disabling of field escaping
...
bzr revid: xmo@openerp.com-20131216092343-0e6t7nvse3r0p2zs
2013-12-16 10:23:43 +01:00
Christophe Matthieu
1acf6d904f
[FIX] website: editable in context
...
bzr revid: chm@openerp.com-20131211152511-5bw86drta0374x6y
2013-12-11 16:25:11 +01:00
Christophe Matthieu
2257e8d431
[IMP] website: change editable and use groups
...
bzr revid: chm@openerp.com-20131211145930-r0izxh9t0efjwhxh
2013-12-11 15:59:30 +01:00
Fabien Pinckaers
59906a3af8
[IMP] allow users to change product price from CMS[FIX] small bug in reordering of PTT
...
bzr revid: fp@tinyerp.com-20131209210511-5w03vf2wt0pmgdew
2013-12-09 22:05:11 +01:00
Christophe Matthieu
d0b813a016
[IMP] fix website_hr_recruitment, website_event, and create contact qweb widget
...
bzr revid: chm@openerp.com-20131206133003-to4lbgoynvviifq5
2013-12-06 14:30:03 +01:00
Fabien Meghazi
7a3b490f46
[IMP] preload records and throw 404 if not exists for blog, event, product
...
bzr revid: fme@openerp.com-20131205155450-y6joi29l2cn9amkn
2013-12-05 16:54:50 +01:00
Fabien Meghazi
2a2f50e08f
[IMP] Better exception handling
...
bzr revid: fme@openerp.com-20131205150633-lnfvhjq42n0r26tv
2013-12-05 16:06:33 +01:00
Xavier Morel
1049e1c859
[ADD] saving and edition of oddly formatted fields in RTE
...
bzr revid: xmo@openerp.com-20131205114245-2p57t0z182r8oeyv
2013-12-05 12:42:45 +01:00
Xavier Morel
a1ecb6923b
[ADD] saving of oddly localized/formatted stuff
...
bzr revid: xmo@openerp.com-20131205113908-9tr575ejn7hanhi7
2013-12-05 12:39:08 +01:00
Fabien Meghazi
ea037cc7d5
[ADD] status_code to website#render()
...
bzr revid: fme@openerp.com-20131204145728-ztv6ur760b3nru58
2013-12-04 15:57:28 +01:00
Christophe Matthieu
704607db5a
[FIX] website: signin and logout redirect url
...
bzr revid: chm@openerp.com-20131203173146-7om0xl9b7ubb5cqc
2013-12-03 18:31:46 +01:00
Christophe Matthieu
63a9616138
[FIX] website_hr_recruitment, website_blog
...
bzr revid: chm@openerp.com-20131203171714-fym4y602l7gfylfw
2013-12-03 18:17:14 +01:00
Fabien Pinckaers
642fce4a5b
[IMP] speed improvement + small bug
...
bzr revid: fp@tinyerp.com-20131203171033-oe6pkzb9jal3ril8
2013-12-03 18:10:33 +01:00
Fabien Meghazi
c71cfef3d3
[FIX] ir.http log exceptions
...
bzr revid: fme@openerp.com-20131203114657-jnnki78qr28u9xq4
2013-12-03 12:46:57 +01:00
Xavier Morel
87b5c7990a
[FIX] unused check_groups call, preprocess_request style
...
bzr revid: xmo@openerp.com-20131203080055-wgja1zraygglo767
2013-12-03 09:00:55 +01:00
Xavier Morel
278316ef9f
[FIX] broken call to (ir.model.access).check
...
bzr revid: xmo@openerp.com-20131203075715-xsmueut0n3g9ggd6
2013-12-03 08:57:15 +01:00
Xavier Morel
0271062a80
[FIX] clear cache on method with a cache
...
bzr revid: xmo@openerp.com-20131203073429-g8vqg1dqltgtc4r6
2013-12-03 08:34:29 +01:00
Fabien Meghazi
b78f196362
[IMP] cached website's default_lang and language_ids
...
bzr revid: fme@openerp.com-20131202172110-h7s023xv4ohq31tw
2013-12-02 18:21:10 +01:00
Fabien Meghazi
a5ed3f8b42
[ADD] slug() helper to rendering context
...
bzr revid: fme@openerp.com-20131202125652-5e30xd3ym6nww44o
2013-12-02 13:56:52 +01:00