Commit Graph

120 Commits

Author SHA1 Message Date
Olivier Dony d1b0d2586b [FIX] ir.qweb: rendering non-string attributes could cause unicode errors (Issue #282)
This occurs because werkzeug.utils.escape() auto-casts
non-basestring values to unicode, while we expect to be
working with bytestrings only.
So when evaluating attribute values, make sure we always
return bytestring values, never int, bool or unicode.
2014-06-05 10:11:23 +02:00
kevin wang 9bfa02386c [FIX]t-field wrong outputs when precision is 0 2014-05-26 17:06:49 +08:00
Christophe Simonis a756b82372 [MERGE] forward port of branch saas-4 up to revid bb26dea 2014-05-20 20:19:55 +02:00
Thibault Delavallée f99785e29d [IMP] ir_qweb: contact widget: handle website info in the contact widget. 2014-05-19 18:15:32 +02:00
Richard Mathot (OpenERP) f5368a1bad [FIX] ir_qweb: Duration widget now displays something 2014-05-19 17:37:00 +02:00
Xavier Morel 8a73978063 [FIX] use format_date for date fields 2014-05-19 08:23:15 +02:00
Fabien Meghazi 522dec2fcd [IMP] assets bundle: allow to filter on type of assets
bzr revid: fme@openerp.com-20140508115157-ngtf46vasmygvt7n
2014-05-08 13:51:57 +02:00
Fabien Meghazi 540b753bf8 [ADD] Support for ir.attachments in assets bundles
bzr revid: fme@openerp.com-20140505160953-yk6688ey7eoz5579
2014-05-05 18:09:53 +02:00
Fabien Meghazi 45d64640f8 [REV] defer
bzr revid: fme@openerp.com-20140505131012-owp0qucjbnesp4ee
2014-05-05 15:10:12 +02:00
Fabien Meghazi 33ad1076e9 [TRY] defer
bzr revid: fme@openerp.com-20140505121036-044ecvq8s3d669b2
2014-05-05 14:10:36 +02:00
Antony Lesuisse 6c950dc970 [FIX] ir_qweb revert async script attribute
bzr revid: al@openerp.com-20140501212023-x9r57i05nrr0g29f
2014-05-01 23:20:23 +02:00
Antony Lesuisse e6532d91ba [FIX] ir_qweb set js assets to async
bzr revid: al@openerp.com-20140501205153-ko00g1vyyrmc21k8
2014-05-01 22:51:53 +02:00
Antony Lesuisse 8c6cbebc0e [IMP] ir_qweb improve css minify
bzr revid: al@openerp.com-20140501190544-egvc85ctdxs69cmr
2014-05-01 21:05:44 +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 Meghazi a1b46eb0d2 [FIX] Disable inherit_branding for t-call-assets
bzr revid: fme@openerp.com-20140430081042-f77suergc85qemnn
2014-04-30 10:10:42 +02:00
Fabien Meghazi 677de74fef [REM] @filename from WebAsset constructor
bzr revid: fme@openerp.com-20140430073537-lk4i126urhfkjdtz
2014-04-30 09:35:37 +02:00
Fabien Meghazi 5d13ad7ee8 [REM] query additional params for bundles
`translatable` has been removed from assets templates, no need for this anymore

bzr revid: fme@openerp.com-20140428124431-3b5rvyejjosftpq3
2014-04-28 14:44:31 +02:00
Fabien Meghazi 4b3212c076 [IMP] better exception handling in case of missing asset
bzr revid: fme@openerp.com-20140425132804-e0dbsl5t2sod7kv5
2014-04-25 15:28:04 +02:00
Simon Lejeune cebd89c148 [FIX] QWeb contact widget: fixed double escaping: only the address part needs to be escaped as it is shown in a t-raw (other parts are shown in t-esc).
bzr revid: sle@openerp.com-20140424144329-vj51bt0y269f1pwo
2014-04-24 16:43:29 +02:00
Fabien Meghazi 8370d3f60e [MERGE] upstream
bzr revid: fme@openerp.com-20140423123808-q58dtl8a0bb2ymlf
2014-04-23 14:38:08 +02:00
Fabien Meghazi f4a37244ca [ADD] query to assets bundle html
bzr revid: fme@openerp.com-20140422134613-8652pfbrdso1qoqd
2014-04-22 15:46:13 +02:00
Fabien Meghazi d2f51a75d5 [FIX] asset debug shall bypass cache
bzr revid: fme@openerp.com-20140422112732-1p94f77ymusmsan2
2014-04-22 13:27:32 +02:00
Fabien Meghazi 1cde3cb02b [ADD] debug mode in asset bundle
bzr revid: fme@openerp.com-20140422111548-5htr1gfj7x3ioval
2014-04-22 13:15:48 +02:00
Xavier Morel 4c5b1d9484 [FIX] comment: we've already removed @charset movements entirely
bzr revid: xmo@openerp.com-20140418133017-1cyq5wkxj4opygww
2014-04-18 15:30:17 +02:00
Xavier Morel 59b8b7ede0 [IMP] preclude unbounded growth by using an LRU cache for asset bundle compressed content
bzr revid: xmo@openerp.com-20140418132929-qnyh3zoarjuo9q6a
2014-04-18 15:29:29 +02:00
Xavier Morel 24512edac9 [IMP] don't reimplement lazy_property by hand when we already have one
bzr revid: xmo@openerp.com-20140418130603-ekgsfsi1c07y7wuo
2014-04-18 15:06:03 +02:00
Xavier Morel 424f03c172 [REV] datetime for source-only WebAsset
thinking about it, this is the *inline* data taken directly from the template,
probably makes more sense if it does not change the coalesced asset's
last_modified

bzr revid: xmo@openerp.com-20140417143656-upgj5b0syi10c9ve
2014-04-17 16:36:56 +02:00
Xavier Morel d9f26840af [IMP] don't alter call-assets's template_attributes in-place, create fake one for sub-call
bzr revid: xmo@openerp.com-20140417143525-0qyqddd1niwsg7ad
2014-04-17 16:35:25 +02:00
Xavier Morel 5b081731cc [FIX] remove existing sourcemaps in CSS files
bzr revid: xmo@openerp.com-20140417142012-mhi8saeofkon5pe5
2014-04-17 16:20:12 +02:00
Xavier Morel f8964db435 [IMP] @import regex
bzr revid: xmo@openerp.com-20140417131249-gbvnq2zb09kzdifv
2014-04-17 15:12:49 +02:00
Xavier Morel a2889a1cf8 [FIX] @charset in CSS files
* there should be *at most* one per file, not 12
* use existing @charset to know file encoding when reading files (before
  concatenation)
* remove existing @charset while reading, if any
* werkzeug's default output charset is UTF-8 and CSS algo uses content-type
  encoding or assumes UTF-8, so don't put any @charset back in

bzr revid: xmo@openerp.com-20140417125213-8c9z2d7eu900kkyw
2014-04-17 14:52:13 +02:00
Xavier Morel 23eb006772 [IMP] style, default last_modified
* replaced type is other by isinstance
* used generators instead of list when applicable
* removed unused methods, useless parameters
* not sure why explicit call to dict() instead of literal, fixed it

bzr revid: xmo@openerp.com-20140416153536-84s01gbnjfu6hysl
2014-04-16 17:35:36 +02:00
Kersten Jeremy 73bbf079c7 [MERGE] qweb-m2o-view - Allow to use many2one for qweb template (work also with view_id)
bzr revid: jke@openerp.com-20140416085407-krltmt3jhw802a5c
2014-04-16 10:54:07 +02:00
Fabien Meghazi 93073dff94 [FIX] exclude /web/[css|js] in parsing
bzr revid: fme@openerp.com-20140410174025-74hmzzalkxux3tvb
2014-04-10 19:40:25 +02:00
Fabien Meghazi 4cc3ed6fab [MERGE] trunk
bzr revid: fme@openerp.com-20140410173630-eq1uh58nba7yptf8
2014-04-10 19:36:30 +02:00
Fabien Meghazi cc722b62a2 [ADD] cache
bzr revid: fme@openerp.com-20140410164744-i7fr4bqax88430ao
2014-04-10 18:47:44 +02:00
Fabien Meghazi 71d1a7f6e3 [ADD] checksum
bzr revid: fme@openerp.com-20140410155412-64h843qo6k9vcwbz
2014-04-10 17:54:12 +02:00
Thibault Delavallée 24e5270347 [IMP] ir_qweb: added country flag management in contact widget
bzr revid: tde@openerp.com-20140411091621-q0c2ndzv9xpptzqo
2014-04-11 11:16:21 +02:00
Fabien Meghazi b8e9e0e8f4 [ADD] last modified date
bzr revid: fme@openerp.com-20140410143224-rb8892vn0yqmr56g
2014-04-10 16:32:24 +02:00
Fabien Meghazi 8e878a8e01 [WIP] bundle minify
bzr revid: fme@openerp.com-20140410101847-srs54wvf39rjjf2j
2014-04-10 12:18:47 +02:00
chm@openerp.com 9d187f9915 [IMP] ir_qweb: first tag 't' template of a view is added to qwebcontext.templates with id of ir_ui_view
bzr revid: chm@openerp.com-20140410080058-tx59gwh8nsefria3
2014-04-10 10:00:58 +02:00
Fabien Meghazi c1dc467701 [WIP] AssetsBundle
bzr revid: fme@openerp.com-20140409161758-3hye6u21rjmoiio9
2014-04-09 18:17:58 +02:00
chm@openerp.com 64462173c1 [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-20140409124626-ccxnfef7bb7h1gm6
2014-04-09 14:46:26 +02:00
Fabien Meghazi cbb5488f97 [ADD] t-call-assets
bzr revid: fme@openerp.com-20140408075205-9v8fxg786jj0fj77
2014-04-08 09:52:05 +02:00
Christophe Simonis 0161666e8b [MERGE] forward port of branch saas-3 up to revid 5112 chs@openerp.com-20140407144238-3s38zadkh7yxpdy7
bzr revid: chs@openerp.com-20140407160548-ttuc877kknuycoqw
2014-04-07 18:05:48 +02:00
Simon Lejeune 2599ff5590 [MERGE] trunk
bzr revid: sle@openerp.com-20140407133627-36iijkx89552bwa0
bzr revid: sle@openerp.com-20140407174628-24wysrr3g8x0fijd
bzr revid: sle@openerp.com-20140408135137-0ficpzark3mjys9r
2014-04-08 15:51:37 +02:00
Simon Lejeune 9e1f395c23 [IMP] ir_qweb: added t-esc-options to allow customization of a t-esc; added an ir.qweb.widget model to format the t-esc value depending on the 'widget' key of t-esc-options; added ir.qweb.widget.monetary
bzr revid: sle@openerp.com-20140407131145-a6357u6tdbu6v2ix
2014-04-07 15:11:45 +02:00
Olivier Dony e98131e0cd [FIX] ir.qweb: avoid errors with function fields of type datetime
bzr revid: odo@openerp.com-20140403162005-i6lbbj6uco6dnrkq
2014-04-03 18:20:05 +02:00
Simon Lejeune 43beb0e752 [FIX] ir_qweb groups: in order to compute the groups of a user, we are using cr and uid from request. In case we are rendering the template in a non-request context (for instance, automated tests), we have no cr and uid ; do not compute the user groups in this case.
bzr revid: sle@openerp.com-20140401153114-blxgbyp8zgx120r3
2014-04-01 17:31:14 +02:00
Simon Lejeune 48f785d786 [REF] Moved qweb contact from website to base and removed the from_html method (it never worked)
bzr revid: sle@openerp.com-20140324135723-2f8owtcotk3n9jt8
2014-03-24 14:57:23 +01:00