Commit Graph

190 Commits

Author SHA1 Message Date
Christophe Simonis 30490699bd [FIX] ir.ui.view: correct `model_data_id` function field to return a value for every id passed as argument. Also correct recomputation triggers
bzr revid: chs@openerp.com-20140319144138-vmihcs029g21nf7t
2014-03-19 15:41:38 +01:00
Xavier Morel a67cd4c049 [FIX] t-ignore should remove injected sub-view branding below the ignore flag
bzr revid: xmo@openerp.com-20140225114706-j8q44cubs59tuwby
2014-02-25 12:47:06 +01:00
Xavier Morel 1b2be9be76 [IMP] unbrand t-raw and t-esc as keeping them branded makes very little sense
they can't be edited in any situation

bzr revid: xmo@openerp.com-20140225110046-90rdevm13pp4m51s
2014-02-25 12:00:46 +01:00
Xavier Morel 198640434f [FIX] injected views need branding distribution too
forgot to set it up after installed injected view skipping during distribution of injectee

bzr revid: xmo@openerp.com-20140224170301-b4ta04zqsd5d2956
2014-02-24 18:03:01 +01:00
Fabien Meghazi d1bbeb21a1 [FIX] website's translation problems on multiple view inheritance
bzr revid: fme@openerp.com-20140224104301-n8dqg0lx4oijf66b
2014-02-24 11:43:01 +01:00
Xavier Morel 325ad57a00 [FIX] branding distribution to generate correct xpath even after injection of inherited view contents
bzr revid: xmo@openerp.com-20140213164546-xor2k3tat8d216wq
2014-02-13 17:45:46 +01:00
Raphael Collet 9f7c687dec [FIX] ir_ui_view: in context dict, put model name instead of model itself
bzr revid: rco@openerp.com-20140211162736-hgkwjk336ldkjej6
2014-02-11 17:27:36 +01:00
Fabien Meghazi 297781df08 [IMP] Move some qweb rendering context vars from website#ir.qweb to server#ir.ui.view
bzr revid: fme@openerp.com-20140206161204-vp6kydvdxhg5qykx
2014-02-06 17:12:04 +01:00
Christophe Simonis 73d675a73d [FIX] ir.ui.view: avoid infinite loop when applying multiple inheritance inside a single view (use of <data> tag)
bzr revid: chs@openerp.com-20140206130349-19v4ah0lwy87t50o
2014-02-06 14:03:49 +01:00
Fabien Meghazi 4b70011c12 [FIX] ir_ui_view#read_template() bring back old behavious, raises ValueError if xmlid not found
bzr revid: fme@openerp.com-20140130210154-llo2tjl323k0yxyr
2014-01-30 22:01:54 +01:00
Olivier Dony 5908a45e47 [FIX] ir.ui.view: better error message upon missing model for non-qweb views, misc cleanup
bzr revid: odo@openerp.com-20140130154349-rnwjz0bgxp6vdxwu
2014-01-30 16:43:49 +01:00
Olivier Dony 5bb31b70d8 [FIX] ir.ui.view: one2many to ir.model.data needs domain otherwise it matches entries from other models
bzr revid: odo@openerp.com-20140130120109-0z6kpzv5t155haog
2014-01-30 13:01:09 +01:00
Olivier Dony c231d9760a [FIX] ir.ui.view: restore extended validation of view arch, let exceptions bubble up to constraint checker, cleanup+translate error messages
Raising an exception in a _constraint will now be
properly considered as a failed constraint, and the
user will see a warning popup with the exception
message. Therefore it makes sense to translate the
error as well, at least the not-too-technical part

bzr revid: odo@openerp.com-20140130100716-qcbwy7ecnxj17718
2014-01-30 11:07:16 +01:00
Antony Lesuisse 8bed2fb861 [FIX] ir_ui_view noupdate only if arch change, otherwise it flags them when you check them in customize
bzr revid: al@openerp.com-20140129051009-iuqpdz8a6qta6dx5
2014-01-29 06:10:09 +01:00
Antony Lesuisse 7eebddd09a [IMP] ir_ui_view try to add search on xml_id, doesnt seem to work
bzr revid: al@openerp.com-20140129050341-bbu8csko2rcofv13
2014-01-29 06:03:41 +01:00
Fabien Meghazi 5b0ff455c5 [IMP] allow ir.ui.view.render() to be called from a browse record instance
bzr revid: fme@openerp.com-20140123101939-2pbjfps4lfc56mc1
2014-01-23 11:19:39 +01:00
Fabien Meghazi 8d28d74dc9 [FIX] stupid fme
bzr revid: fme@openerp.com-20140122153022-y7pe379qjxqy67vs
2014-01-22 16:30:22 +01:00
Fabien Meghazi 9cd7e946b2 [FIX] clear ir.ui.view cache on write()
bzr revid: fme@openerp.com-20140122150230-bfb02rtxm3ojpvye
2014-01-22 16:02:30 +01:00
Antony Lesuisse 658ed76a84 [REM] preprocess of widget selection on m2o
As they are now directly supported by the webclient since commit
web 3863 nicolas.vanhoren@openerp.com-20131022131525-d0i61sbm0w6katfs

bzr revid: al@openerp.com-20140121112759-zavwqdyv8kdq4oys
2014-01-21 12:27:59 +01:00
Jojo le bricolo 6a4ea0f9a4 QWeb cleanups
bzr revid: jojo_le_bricolo-20140119174437-kjrr9p1smpdxhd3u
2014-01-19 18:44:37 +01:00
Christophe Matthieu bd444b8a5e [FIX] ir_ui_view: add method clear_cache called when user change user groups
bzr revid: chm@openerp.com-20140117143853-sy5ehfk9n2wrzq41
2014-01-17 15:38:53 +01:00
Christophe Matthieu 2f974012db [FIX] ir_ui_view: write noupdate on ir_model_data with SUPERUSER when the user write
bzr revid: chm@openerp.com-20140117134916-w59ive0yiqchp57m
2014-01-17 14:49:16 +01:00
Thibault Delavallée c76a3aba8f [CLEAN] ir_qweb: simplified and cleaned QWebcontext implementation
- now using openerp.tools.safe_eval, instead of a custom eval with custom builtins
- removed undefined_handler, hardcoded to a lambda function that returns None for
a missing attribute

tools.safe_eval: added a parameter locals_builtins. This allows to copy the builtins
in the locals. This hack is due to the fact that the locals always returns None, allowing
to simplify templates. Otherwise we would have to test the existence of each variable
before actually using it.
However as the locals always return None for every key, the globals are never checked.
Copying the builtins inside the local allows to have a complete locals, but sligtly
break the globals/locals separation.

To be reviewed and approved.

bzr revid: tde@openerp.com-20140116182750-1rnw8iljt5a9gb4u
2014-01-16 19:27:50 +01:00
Thibault Delavallée ab5c23079a [MERGE] Sync with trunk, solved conflicts.
bzr revid: tde@openerp.com-20140116091716-zk1n5ots94i65io5
2014-01-16 10:17:16 +01:00
Xavier Morel b741852c3d [IMP] correctly handle writing to a view without a model_data (e.g. test views)
bzr revid: xmo@openerp.com-20131218134932-382cvndk8asr82ip
2013-12-18 14:49:32 +01:00
Thibault Delavallée 56f18f56c5 [FIX] ir_ui_view: still usign context without being sure it exists
bzr revid: tde@openerp.com-20131218105511-fuf8ca99nimzbcpc
2013-12-18 11:55:11 +01:00
Fabien Meghazi f229af7b57 [IMP] Set ir.model.data noupdate flag to touched views
bzr revid: fme@openerp.com-20131217131439-b0rv83oeqat5rue8
2013-12-17 14:14:39 +01:00
Xavier Morel 0546993327 [FIX] merge from trunk and fix handling of view inheritance
main problem, view inheritance model field would use model from the
root view (after following inherit_id links) rather than the base view
(the requested one) -> with divergent models, it was possible for the
requested view itself to never be returned.

bzr revid: xmo@openerp.com-20131212134422-uxg6h21w1jhth9ow
2013-12-12 14:44:22 +01:00
Christophe Matthieu 1bf1f0de8f [FIX] forgotten fix for fields_view_get in orm.py (moved to ir_ui_view.py): [MERGE] forward port of branch saas-2 up to revid 4987 chs@openerp.com-20131127105828-ng8z4by1tszmj9d2
bzr revid: chm@openerp.com-20131202191411-edf01rvvpngyezok
2013-12-02 20:14:11 +01:00
Fabien Pinckaers e477c1f617 [FIX] temporary fix, should be cleaned by removing editable context
bzr revid: fp@tinyerp.com-20131201115142-mok8vlkua5f4tb5l
2013-12-01 12:51:42 +01:00
Fabien Pinckaers 4a3529afdf [IMP] Performance improvement: improved cache with context, better get_object
bzr revid: fp@tinyerp.com-20131130154723-05r90b2yhwwovpx4
2013-11-30 16:47:23 +01:00
Fabien Meghazi 071ef9702b [REV] Previous commit loses the inherit_branding context's key
bzr revid: fme@openerp.com-20131128094809-l77nyyqglzha3tuh
2013-11-28 10:48:09 +01:00
Fabien Pinckaers 2fef12e984 [IMP] cache on read_template, divide by 2 number of SQL queries on page loading
bzr revid: fp@tinyerp.com-20131127230024-cqhvjy9yg57cxunv
2013-11-28 00:00:24 +01:00
Fabien Pinckaers 0dbc41aca0 [IMP] access right when accessing object, not second checks in view rendering
bzr revid: fp@tinyerp.com-20131127223831-7r06xxuimrx21fzw
2013-11-27 23:38:31 +01:00
Fabien Meghazi 54b15928cf [FIX] ahem, fix previous commit
bzr revid: fme@openerp.com-20131121205959-jvlmcofp5yq5s7ht
2013-11-21 21:59:59 +01:00
Fabien Meghazi 9f43e80662 [IMP] rendering context not mandatory for ir.ui.view#render()
bzr revid: fme@openerp.com-20131121203230-uo485jls4uk15n7x
2013-11-21 21:32:30 +01:00
Xavier Morel 3389198f81 [IMP] remove unnecessary keys() calls
bzr revid: xmo@openerp.com-20131104125735-wtnngolx07755o1u
2013-11-04 13:57:35 +01: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 8d6302f260 [IMP] use existing tools for the job
bzr revid: xmo@openerp.com-20131018141510-1x1w5ba5fqfzebfk
2013-10-18 16:15:10 +02:00
Xavier Morel 64ea89e3be [MERGE] from parent
bzr revid: xmo@openerp.com-20131014085215-qoqytud1mkpdqbz0
2013-10-14 10:52:15 +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 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 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 31a8dc36e5 [REM] shortcuts, deprecated by bookmarks
bzr revid: al@openerp.com-20131006132424-bpd8w0zzuf42s55l
2013-10-06 15:24:24 +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 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