Xavier Morel
ce80ad2960
[FIX] don't call render_node on comments (or PIs)
2014-07-02 18:00:03 +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
Fabien Meghazi
54a7e9665a
[IMP] join stdout and stderr in error report when sass returncode>0
2014-07-01 18:38:01 +02:00
Fabien Meghazi
0be5fb7d91
Fix sass attribute recognition
2014-07-01 15:21:36 +02:00
Fabien Meghazi
861e272823
Create and write ir.attachments with superuserid
2014-07-01 14:22:04 +02:00
Fabien Meghazi
79195f1800
Add support for the @media attribut in css bundles
2014-07-01 10:02:55 +02:00
Fabien Meghazi
7990caaf02
Fix another encoding issue
2014-06-30 19:26:14 +02:00
Fabien Meghazi
4f2b5f12fc
Fix typo
2014-06-30 19:17:47 +02:00
Fabien Meghazi
45215a231d
Fix indentation normalization
2014-06-30 18:41:29 +02:00
Fabien Meghazi
74e0b948fa
Better error management, proper feedback on encoding errors
2014-06-30 14:45:41 +02:00
Fabien Meghazi
9fa77980d7
Merge remote-tracking branch 'odoo/master' into master-sass-in-bundles-fme
2014-06-27 19:40:02 +02:00
Fabien Meghazi
d7a7ac404d
Support for Sass in debug mode
2014-06-26 18:51:55 +02:00
Fabien Meghazi
0d1d225249
Remove ir.ui.view last_update collection and use checksum on rendered bundle
2014-06-26 18:18:12 +02:00
Fabien Meghazi
36e5b418d8
Sass: pull up @imports and remove file imports
2014-06-26 17:40:30 +02:00
Fabien Meghazi
653113094f
[ADD] Sass support in bundles
2014-06-26 16:49:51 +02:00
Fabien Meghazi
aa97aaa9d7
[ADD] Assets Bundle versioning and better cache handling
...
An asset bundle is now versionned with the dates of the
ir.ui.views that compose it and also with the dates of
the files and ir.attachments linked inside the bundle.
This new behavior is reflected in the bundle's lru cache
managment.
2014-06-24 18:52:38 +02:00
Fabien Meghazi
146d7b2886
[IMP] refactor assets bundle for future features
2014-06-19 18:09:01 +02:00
Christophe Simonis
5206eb16d5
merge upstream
2014-06-19 13:13:27 +02:00
Christophe Matthieu
a6185caa18
[FIX] website_sale: display in currency of the user
2014-06-19 13:12:06 +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
c949509b5e
Merge pull request #463 from xmo-odoo/qweb-foreach
...
Qweb foreach
2014-06-17 15:56:09 +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
Olivier Dony
f15cbd6520
[MERGE] Forward-port saas-4 bugfixes up to ad4c6ca
2014-06-12 18:54:36 +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
Xavier Morel
0de6710c3c
[IMP] guard for None enum, remove 1 level of indent
2014-06-05 12:05:24 +02:00
Xavier Morel
7f0db3c257
[IMP] use Sized for iterable size and remove support for count
2014-06-05 12:03:16 +02:00
Xavier Morel
03b75477ec
[IMP] use enumerate instead of explicit index thing
2014-06-05 12:01:44 +02:00
Xavier Morel
0b3abaf4ce
[FIX] _even/_odd were reversed, also some reformatting thing
2014-06-05 12:01:04 +02:00
Xavier Morel
34097b4f88
[IMP] mandate a variable name in foreach
2014-06-05 11:46:56 +02:00
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