Commit Graph

1114 Commits

Author SHA1 Message Date
Xavier Morel b9dfef2fab [ADD] formatting of date and datetime t-field
bzr revid: xmo@openerp.com-20131021152639-2o2j2knhuppdlbzm
2013-10-21 17:26:39 +02:00
Xavier Morel 61b306edc0 [ADD] format floating-point values (including monetary values) according to user lang
bzr revid: xmo@openerp.com-20131021125723-66rc4w5ist6rx22o
2013-10-21 14:57:23 +02:00
Xavier Morel 3eae335a9b [ADD] comment to ir.qweb.field.monetary to explain its workings/purpose
bzr revid: xmo@openerp.com-20131021100543-wlsc93puu23qnv8c
2013-10-21 12:05:43 +02:00
Xavier Morel a348a5e92f [ADD] hook in qweb.field.float for overriding precision
bzr revid: xmo@openerp.com-20131021091607-mirzojqhsbskx57g
2013-10-21 11:16:07 +02:00
Xavier Morel b50e90607f [ADD] context all the things!
bzr revid: xmo@openerp.com-20131021083120-6v6xy0bm4w686d2m
2013-10-21 10:31:20 +02:00
Xavier Morel 5a257c5318 [FIX] recursive qweb render calls to pass (void) cr and uid
both are already in the qwebcontext passed as last argument

bzr revid: xmo@openerp.com-20131018144838-xvtg0f7uoxf360zr
2013-10-18 16:48:38 +02:00
Xavier Morel 55c38976c0 [ADD] cr, uid, context to qweb.render & qweb rendering context
bzr revid: xmo@openerp.com-20131018144546-p693x1iur5gm98ez
2013-10-18 16:45:46 +02:00
Xavier Morel b6c7adced6 [FIX] import/reference warning
bzr revid: xmo@openerp.com-20131018143659-e9tapiu7c5tf5t2i
2013-10-18 16:36:59 +02:00
Xavier Morel 8d6302f260 [IMP] use existing tools for the job
bzr revid: xmo@openerp.com-20131018141510-1x1w5ba5fqfzebfk
2013-10-18 16:15:10 +02:00
Christophe Matthieu aeb0125c84 [IMP] ir_qweb: better exception with message, node, template
bzr revid: chm@openerp.com-20131018113927-vnsk2mj1g8gsl5hs
2013-10-18 13:39:27 +02:00
Christophe Matthieu 4c1076420c [IMP] ir_qweb: add a class QWebException and raise a better exception message
bzr revid: chm@openerp.com-20131018095913-7ut45k9r9c1qp2wf
2013-10-18 11:59:13 +02:00
Xavier Morel 0ed91c4b29 [FIX] move loaded templates storage to context
Didn't think of the _t attribute storing loaded templates when qweb
was moved from a Python object instantiated every rendering to an
openerp never reinstantiated. This unexpectedly moved _t from the
status of a per-render cache (to avoid reloading sub-templates or
recursive templates a billion times) into a permanent cache with no
invalidation.

Move _t to QWebContext.templates, which should be per-render, for now.

bzr revid: xmo@openerp.com-20131015152858-u89wx46e0ngh58of
2013-10-15 17:28:58 +02:00
Fabien Meghazi 392776523b [ADD] QWeb: t-keep-query
bzr revid: fme@openerp.com-20131014150442-7gn82i8bb8p6tfi7
2013-10-14 17:04:42 +02:00
Xavier Morel 625f4e253f [IMP] correctly handle empty m2o field serialization
bzr revid: xmo@openerp.com-20131014105621-mwiucen7glajccea
2013-10-14 12:56:21 +02:00
Fabien Meghazi 9cf7418b18 [FIX] Temporary fix for xmlid
bzr revid: fme@openerp.com-20131014100753-3pk226p4gsa6zrec
2013-10-14 12:07:53 +02:00
Xavier Morel a720eec77c [FIX] monetary field rounding, QWebContext in tests
bzr revid: xmo@openerp.com-20131014093657-wl00zhbgk5b1zs0o
2013-10-14 11:36:57 +02:00
Xavier Morel 64ea89e3be [MERGE] from parent
bzr revid: xmo@openerp.com-20131014085215-qoqytud1mkpdqbz0
2013-10-14 10:52:15 +02:00
Xavier Morel 29d10fd8ea [REM] conversion in monetary widget, turns out to be a misunderstood need
bzr revid: xmo@openerp.com-20131011142512-3j5vuik1o4k6q6jj
2013-10-11 16:25:12 +02:00
Xavier Morel 20f89a8d85 [IMP] change monetary t-field options, make them more sensible and flexible
bzr revid: xmo@openerp.com-20131011111620-sitjaxoykgjp2175
2013-10-11 13:16:20 +02:00
Xavier Morel 7537157519 [REV] broken commit
bzr revid: xmo@openerp.com-20131010070857-svf0oh7qk9xw0goi
2013-10-10 09:08:57 +02:00
Christophe Matthieu 1f5f1006fd [IMP] ir.rule: add the http secure session in the eval context.
bzr revid: chm@openerp.com-20131008151937-ox3ktq8uq9mxnpvp
2013-10-08 17:19:37 +02:00
Xavier Morel ef848653af [FIX] rename currency widget to monetary to match views
bzr revid: xmo@openerp.com-20131008122006-k7xjv2lkd0t7lza7
2013-10-08 14:20:06 +02:00
Christophe Matthieu 1a0b74d033 [IMP] ir_ui_view: improve security dev. Log a warning message if the browse record used in the views have a SUPERUSER access.
bzr revid: chm@openerp.com-20131008095805-8ek62kl4k0spw9b8
2013-10-08 11:58:05 +02:00
Xavier Morel 273f62bc78 [IMP] move translate flag out of base qweb rendering
bzr revid: xmo@openerp.com-20131008092207-m27ox8pebl36a45p
2013-10-08 11:22:07 +02:00
Xavier Morel d414f8c7cf [IMP] make view rendering engine kinda sorta pluggable
bzr revid: xmo@openerp.com-20131008082555-l8b2mu8ny8ouf5n5
2013-10-08 10:25:55 +02:00
Xavier Morel 5e1c17a3a7 [ADD] docstring about qweb usage
bzr revid: xmo@openerp.com-20131008070742-4k1egtvmdvz3pv6e
2013-10-08 09:07:42 +02:00
Xavier Morel 47fc0a1093 [ADD] apply currency's rounding to currency widget values
bzr revid: xmo@openerp.com-20131008064226-ry22z6w23d88szr8
2013-10-08 08:42:26 +02:00
Xavier Morel a6e4951886 [ADD] currency prefix symbol
bzr revid: xmo@openerp.com-20131007150330-sys0320gaui2crtt
2013-10-07 17:03:30 +02:00
Xavier Morel 727b0e27c5 [ADD] currency qweb field widget, postfix currency
bzr revid: xmo@openerp.com-20131007145346-a3hlb6xjdwroyvzb
2013-10-07 16:53:46 +02:00
Xavier Morel a30a4640c2 [IMP] add some docstrings, split out fetching the converter model in ir.qweb in its own method
This way, it's possible to inherit from ir.qweb and override converter discovery

bzr revid: xmo@openerp.com-20131007125155-5j0xeov213sz4ccq
2013-10-07 14:51:55 +02:00
Xavier Morel 7a8ea1eb75 [IMP] move image serialization to image widget, not all binary fields
bzr revid: xmo@openerp.com-20131007113133-y0xcj0tgp8ionrzo
2013-10-07 13:31:33 +02:00
Xavier Morel 0bce14ccd7 [MERGE] from trunk for tests fixes
bzr revid: xmo@openerp.com-20131007093527-gkem29e7agcmt0rd
2013-10-07 11:35:27 +02:00
Xavier Morel cd31b4af4d [IMP] move field conversion around
ir.fields architecture turns out not to be a very good or simple fit,
especially as different widgets/fields need different granularity of
customizations. Having objects dedicated to each field type/widget
makes things simpler as it allows a conversion pipeline which can be
plugged into at any point.

bzr revid: xmo@openerp.com-20131007091556-03azc2mdhcb7kmwo
2013-10-07 11:15:56 +02:00
Thibault Delavallée b94389dfca [FIX] ir_ui_view: MOVABLE_BRANDING back, was deleted by error when merging trunk
bzr revid: tde@openerp.com-20131007090206-f0y2vtv84113tbcd
2013-10-07 11:02:06 +02:00
Xavier Morel 856e3d0b91 [MERGE] from trunk
bzr revid: xmo@openerp.com-20131007085815-sfzb0lrhysxsdxzg
2013-10-07 10:58:15 +02:00
Thibault Delavallée b74c255168 [MERGE] Sync with trunk until revision 4967 (including al cleaning)
bzr revid: tde@openerp.com-20131007081039-adyay7oy1tpx4g2k
2013-10-07 10:10:39 +02:00
Antony Lesuisse df230e07e4 move workflow
bzr revid: al@openerp.com-20131006151827-oevn6uuv005qbsu8
2013-10-06 17:18:27 +02:00
Antony Lesuisse 8e688b8ac6 missing import
bzr revid: al@openerp.com-20131006150425-m7xjwji6xncxdum3
2013-10-06 17:04:25 +02:00
Antony Lesuisse 6e2e77beec fix res_group rename, move files to clean up res
bzr revid: al@openerp.com-20131006150309-fg8vuvaq9hmvi9oh
2013-10-06 17:03:09 +02:00
Antony Lesuisse 31a8dc36e5 [REM] shortcuts, deprecated by bookmarks
bzr revid: al@openerp.com-20131006132424-bpd8w0zzuf42s55l
2013-10-06 15:24:24 +02:00
Antony Lesuisse 881a76dbcf [IMP] Technical menu reorg, remove depreacted requests.
Moved low levels object to database structure.
Removed res.request models bu keep res.request.link, res.request.link is used
to flag models worth to be linked by references fields.
Moved currency and state to the approriate directory.

bzr revid: al@openerp.com-20131006112608-3qucrevmkf43kq20
2013-10-06 13:26:08 +02:00
Antony Lesuisse a32bf724f2 [IMP] ir_actions cleanups.
Remove deprecated old style wizards.
Remove unsed get_model() function.
Move crons into Actions menuitem.
Move todos into Actions menuitem.

bzr revid: al@openerp.com-20131006102404-s46md70ahydihiih
2013-10-06 12:24:04 +02:00
Xavier Morel 40ab4f6e83 [MERGE] from trunk
bzr revid: xmo@openerp.com-20131004144724-pj6kd1ftw0sy0lbd
2013-10-04 16:47:24 +02:00
Xavier Morel ee16a16254 [FIX] let's not reimplement re.sub by hand, shall we?
bzr revid: xmo@openerp.com-20131004125204-qgpi7346p1u9amcu
2013-10-04 14:52:04 +02:00
Xavier Morel 81a82ca37f [IMP] make qweb into an openerp object
also attempt to improve/simplify a few implementation details

bzr revid: xmo@openerp.com-20131004114155-j2639jx6dwvkz3hh
2013-10-04 13:41:55 +02:00
Xavier Morel 6507bdd82c [IMP] turns out PIL includes MIME mapping
bzr revid: xmo@openerp.com-20131004095023-dudohbovvinqz8om
2013-10-04 11:50:23 +02:00
Thibault Delavallée 54933118a4 [MERGE] Sync with trunk until revision 4957.
bzr revid: tde@openerp.com-20131002133820-8xomdumexexqp3pk
2013-10-02 15:38:20 +02:00
Fabien Pinckaers 1db512092f [IMP] events
bzr revid: fp@openerp.com-20130928164336-6exrohfc2ek4d2y5
2013-09-28 18:43:36 +02:00
Xavier Morel 3295203a66 [IMP] have ir_fields_converter.to_field accept either a type or a string-representing-a-type as input
bzr revid: xmo@openerp.com-20130927142856-lnrboxzgpd3wzqem
2013-09-27 16:28:56 +02:00
Xavier Morel e1f3f0566e [ADD] float field digits handling
bzr revid: xmo@openerp.com-20130927113424-lt23wpzs7px7k6mc
2013-09-27 13:34:24 +02:00