Christophe Simonis
a756b82372
[MERGE] forward port of branch saas-4 up to revid bb26dea
2014-05-20 20:19:55 +02:00
Christophe Simonis
bb26dea60b
[MERGE] forward port of branch saas-3 up to revid 38abc8a
2014-05-20 19:00:50 +02:00
Xavier Morel
9cefa76988
[ADD] hasclass() xpath function
...
Server-side, view extension is done via xpath. This includes "template" views
full of HTML.
HTML elements often have a bunch of classes, sometimes even semantic
(!). XPath is generally great, but specifically lousy at dealing with
space-separated values: in standard XPath 1.0 to know if an element has a
class 'foo' the predicate is:
contains(concat(' ', normalize-space(@class), ' '), ' foo ')
and this has to be fully duplicated if there's a second class involved.
Things are slightly better with EXSLT/XPath 2.0 and tokenize, but still not
great:
tokenize(@class, '\s+') = 'foo'
and the equality check is very weird when unaware of XPath's evaluation rules.
``hasclass`` makes this much simpler to deal with: to get any ``foo`` node
with the class ``bar`` is as simple as:
//foo[hasclass('bar')
and it can take multiple class, as with e.g. jquery it will return elements
with all specified classes.
Beware though, the predicate function will be called once for each element to
check, since it's implemented in pure python and not profiled elements should
be filtered as much as possible before this point.
2014-05-19 08:32:23 +02:00
Xavier Morel
66d8934802
[FIX] correctly handle get_inheriting_views_arch when uid=None
2014-05-19 08:32:10 +02:00
Martin Trigaux
fc7a31f842
[FIX] ir_ui_view: remove undetermist order on search for views as the _order on the model is more specific (opw 607262)
...
This was problematic on some views where two views with the same priority could be chosen depending on the server, postgresql version and the age of the captain
2014-05-12 14:56:30 +02:00
Martin Trigaux
4f5cc00420
Forward-port of latest saas-4, up to revision 5211 (revid fme@openerp.com-20140509164408-rtml4brrhpiv4zz9)
2014-05-12 10:05:23 +02:00
Fabien Pinckaers
bcbd263214
[IMP] Adding fields
...
bzr revid: fp@tinyerp.com-20140511074755-5b3iy2b1xk7cjxmf
2014-05-11 09:47:55 +02:00
Fabien Meghazi
f506fc45a3
[MOV] ir.ui.view#write() forced noupdate moved in `website` (RTE only)
...
bzr revid: fme@openerp.com-20140509141106-vbokuh0prptxavvg
2014-05-09 16:11:06 +02:00
Jitendra Prajapati
9b15769a71
[MERGE] [IMP] Misc view improvements using better name_get / name_search.
...
bzr revid: tde@openerp.com-20140509094920-94z2i7hfao3xxu4n
2014-05-09 11:49:20 +02:00
Jitendra Prajapati (OpenERP)
49a7338b00
[IMP]improve code: call super method instead of manual search
...
bzr revid: jpr@tinyerp.com-20140508052730-5oztw3um6h42osvd
2014-05-08 10:57:30 +05:30
Fabien Meghazi
cea5591742
[FIX] runbot color
...
bzr revid: fme@openerp.com-20140507074310-bt0r1vt6rsgy9wqe
2014-05-07 09:43:10 +02:00
Fabien Meghazi
15380fd5d2
[ADD] modules global rendering variable
...
This is temporary
bzr revid: fme@openerp.com-20140506163204-u63n3wv1yv6yohd3
2014-05-06 18:32:04 +02:00
Jitendra Prajapati (OpenERP)
e418d2b2f6
[IMP]override name_search method
...
bzr revid: jpr@tinyerp.com-20140506102333-c8nrun01dxgjel22
2014-05-06 15:53:33 +05:30
Jitendra Prajapati (OpenERP)
d5e9847b0d
[IMP]remove unnecessary check on ids
...
bzr revid: jpr@tinyerp.com-20140506083630-i1o5flr7p8apgrym
2014-05-06 14:06:30 +05:30
Jitendra Prajapati (OpenERP)
1bb22f2ddd
[MERGE]with main branch
...
bzr revid: jpr@tinyerp.com-20140505095333-v514kj2dz0advdf8
2014-05-05 15:23:33 +05:30
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
Christophe Simonis
c16780df83
[MERGE] forward port of branch saas-3 up to revid 5120 chs@openerp.com-20140424125338-26k5atvtqwmmfv4e
...
bzr revid: chs@openerp.com-20140424131405-4oannh1102x42m8b
2014-04-24 15:14:05 +02:00
Stephane Wirtel
2ce61258ad
[FIX] Importing dateutil.relativedelta.relativedelta
...
bzr revid: stw@openerp.com-20140424092828-j8l6j1re9sa94m85
2014-04-24 11:28:28 +02:00
Jitendra Prajapati (OpenERP)
39312207d7
[MERGE]with main branch
...
bzr revid: jpr@tinyerp.com-20140415053250-r784vpfu9x8gnfll
bzr revid: jpr@tinyerp.com-20140424045737-h6pshjslqw8xqyvm
2014-04-24 10:27:37 +05:30
Antony Lesuisse
56d2df71d3
[FIX] ir.ui.view missing time libraries in qweb rendering context
...
bzr revid: al@openerp.com-20140423162827-zw1fjysgkshgamwa
2014-04-23 18:28:27 +02:00
Christophe Simonis
981f683f0f
[FIX] ir.ui.view: when post-validating views of a module, only validate updated views (left out old views that will be deleted at the end of the update)
...
bzr revid: chs@openerp.com-20140423145639-whfipjobbxgfzqvx
2014-04-23 16:56:39 +02:00
Fabien Meghazi
8370d3f60e
[MERGE] upstream
...
bzr revid: fme@openerp.com-20140423123808-q58dtl8a0bb2ymlf
2014-04-23 14:38:08 +02:00
Christophe Simonis
618fbde36f
[MERGE] forward port of branch saas-4 up to revid 9365 chs@openerp.com-20140422143249-3cfh18tenn3a5ry1
...
bzr revid: chs@openerp.com-20140422144651-840zze7p5549k88s
bzr revid: chs@openerp.com-20140422144933-0su8g7pgrcloijco
2014-04-22 16:49:33 +02:00
Christophe Simonis
c3cf8000e6
[FIX] module loading: mark module as initialized *after* the data files have been loaded
...
When the registry is updating, the view verification only validates the views
from initialized modules. Not taking the current module allow update of views
that have also an inherited view in the same module. The verification of the base view
must not try to apply the old inherited view against it as it may not be applicable
anymore.
After module update, we re-validate all the views of this module. This is needed because
a module can declare two (or more) inherited views that are correct when applyed alone,
but not when combined with others.
bzr revid: chs@openerp.com-20140418141550-7b57b1xl4fx0rgqq
2014-04-18 16:15:50 +02:00
Darshan Kalola
7cd07d0c1f
[MERGE] [IMP] ir_ui_view: kanban view: also add action_enabled information
...
about the columns in kanban view. This allows to display the 'create a new column', as well as 'edit' or 'delete'
options on column in kanban view, based on the users' access rights.
bzr revid: tde@openerp.com-20140417114033-39rez93cmcwask69
2014-04-17 13:40:33 +02:00
Darshan Kalola (OpenERP)
2f9c0ad1af
[MERGE]sync with trunk.
...
bzr revid: dka@tinyerp.com-20140415091644-v0kfy7qiybm2uccl
2014-04-15 14:46:44 +05:30
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
Jitendra Prajapati (OpenERP)
911552c2e7
[IMP]optimized code for name_get method
...
bzr revid: jpr@tinyerp.com-20140403111445-lej57pocr2d0qokm
2014-04-03 16:44:45 +05:30
Darshan Kalola (OpenERP)
f1eb31b758
[MERGE]sync with trunk.
...
bzr revid: dka@tinyerp.com-20140331092919-1o6xipu5ld4g5n2k
2014-03-31 14:59:19 +05:30
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
Darshan Kalola (OpenERP)
16f358d9e2
[IMP]]hide the link add a new column,edit and delete in kanban if the user has not the right to do it.
...
bzr revid: dka@tinyerp.com-20140304122148-732fgfqmbpi8cpol
2014-03-04 17:51:48 +05:30
Fabien Meghazi
6df317c546
[FIX] website's translation problems on multiple inheritance
...
bzr revid: fme@openerp.com-20140224103235-2s9de5k71xfa2qko
2014-02-24 11:32:35 +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
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 Meghazi
9051c44d68
[ADD] oe-source-id in inherit branding
...
bzr revid: fme@openerp.com-20130925154155-v23u1l1go1spedzz
2013-09-25 17:41:55 +02:00
Fabien Meghazi
e01f97e8f7
[MERGE] upstream
...
bzr revid: fme@openerp.com-20130925085305-wbmdcm75i6o1qm30
2013-09-25 10:53:05 +02:00
Thibault Delavallée
2939c58e72
[CLEAN] ir_ui_view: removed print statement
...
bzr revid: tde@openerp.com-20130923144830-i5iqzfc1pydm9pge
2013-09-23 16:48:30 +02:00
Thibault Delavallée
e07531f451
[FIX] don't try to set attributes on comments, it makes no sense
...
bzr revid: tde@openerp.com-20130923143349-y922fxtbkotsjzpf
2013-09-23 16:33:49 +02:00
Fabien Meghazi
1fbe796ec3
[WIP] Temporary qweb translation
...
TODO: refactor of ir.ui.view in order to abstract translations
bzr revid: fme@openerp.com-20130923114649-0ykl77hclzmjmkq3
2013-09-23 13:46:49 +02:00
Xavier Morel
724bbffc88
[FIX] Partially revert xmo@openerp.com-20130812074509-yopeb4pxtsads4d9
...
Change attempted to simplify branding distribution, but based node
branding on final view. To be able to rewrite, node branding must be
based on source views positions before applying inheritance.
Reintroduce manual generation of xpath in distribute_branding as
ElementTree.getpath() can't handle it.
Note: why isn't branding distribution performed during initial views
reading (e.g. inherit_branding)? Surely that would obviate the need
for special casing and manually creating paths no?
bzr revid: xmo@openerp.com-20130919130847-3t8zfpv9m9pcibg0
2013-09-19 15:08:47 +02:00
Christophe Simonis
ffdcf33673
[IMP] ir.ui.view: log traceback when validation of view arch fail
...
bzr revid: chs@openerp.com-20130919114508-72pv3u1stxw4l3ry
2013-09-19 13:45:08 +02:00
Christophe Simonis
fd9a9577df
[MERGE] forward port of branch saas-1 up to revid 4908 dle@openerp.com-20130918160049-fo88fl7uyhfoofkv
...
bzr revid: chs@openerp.com-20130918171816-cxxt3c9ktcq4a8oz
2013-09-18 19:18:16 +02:00
Xavier Morel
4b89b246a8
[FIX] distribute branding on t-if, t-for and t-att
...
bzr revid: xmo@openerp.com-20130917163708-u61ol5yqr3nrd9mu
2013-09-17 18:37:08 +02:00
Xavier Morel
47fac4836b
[IMP] avoid using Element.attrib when unnecessary
...
bzr revid: xmo@openerp.com-20130917154505-4kf77rqjrg1bncvk
2013-09-17 17:45:05 +02:00
Xavier Morel
8159503eb1
[FIX] ensure we distribute branding only over actual element, not over e.g. comments
...
bzr revid: xmo@openerp.com-20130917154414-zdbv7861e9p6mdgi
2013-09-17 17:44:14 +02:00
Christophe Simonis
7081038378
[IMP] validate custom views at the end of update of database
...
bzr revid: chs@openerp.com-20130912182926-3lectt8mvd9smwfb
2013-09-12 20:29:26 +02:00
Christophe Simonis
e13ffe7e11
[MERGE] forward port of branch 7.0 up to revid 5075 chs@openerp.com-20130912141018-qmcyase8zqov9d01
...
bzr revid: chs@openerp.com-20130906165207-1oklc8cqs0rex3kg
bzr revid: dle@openerp.com-20130909170248-a4t5y6qd5ikkhhac
bzr revid: dle@openerp.com-20130911083736-6jfkb140jxbbx7j6
bzr revid: chs@openerp.com-20130912150616-v0c383trj7gaa7eu
2013-09-12 17:06:16 +02:00
Xavier Morel
cbb5bf3c56
[MERGE] from parent
...
bzr revid: xmo@openerp.com-20130912141037-xqu3qpcyjph4xltu
2013-09-12 16:10:37 +02:00
Christophe Simonis
1d91378ce2
[FIX] ir.ui.view: properly validate newly created inheriting views
...
When a new inheriting view is imported during a module
installation, it is validated thanks to the _constraints
on the ir.ui.view model. However the validation uses
a rather convoluted system for validating the whole
view tree at once (root view + all inherited changes)
while only taking into account the views that belong
to modules that are currently loaded.
This complicated system is necessary to be able to
operate on-the-fly at any point during the registry
loading/initialization.
Now because _constraints are checked during create()
this particular validation happens *before* the
external ID (ir.model.data entry) of that new view
can be created (it obviously needs to wait until
the view record is inserted). As a consequence the
view validation cannot determine the module to
which that new view belongs, and was erroneously
ignoring it.
Changing the view filtering to also include views
that have triggered this check.
Manually created views are not check during registry
update.
bzr revid: chs@openerp.com-20130912141018-qmcyase8zqov9d01
2013-09-12 16:10:18 +02:00
Xavier Morel
cc187b884b
[IMP] re-enable XML check on view arch
...
bzr revid: xmo@openerp.com-20130912124334-skafqdt0hxna7frx
2013-09-12 14:43:34 +02:00
Xavier Morel
bb14116785
[MERGE] from trunk
...
bzr revid: xmo@openerp.com-20130909095042-zf9p1qybf4f2b7gu
2013-09-09 11:50:42 +02:00