Martin Trigaux
4a10295823
[FIX] fields: avoid prefetching of one2many fields
...
When reading a one2many field, the inverse mapping of the lines (matching m2o -> lines of corresponding record) was instantiating each line and then triggering the prefect of fields.
To improve the performances, the inverse mapping is done in sql to avoid triggering the prefetching.
2014-09-02 13:34:57 +02:00
Xavier Morel
eab52acccd
[ADD] initial theme guide + scaffolding
...
incomplete, incorrect, committed for testing
2014-09-02 12:43:17 +02:00
xmo-odoo
9c2f093611
Merge pull request #2113 from yvaucher/8.0-fix-ir_model-undefined-xml_id
...
fix typo on undeclared variable xml_id
2014-09-02 07:56:27 +02:00
Yannick Vaucher
bdfa970d3d
fix typo on undeclared variable xml_id
2014-09-01 16:26:55 +02:00
Christophe Simonis
0f122cc50c
[FIX] http.py: session id is `sid` attribute
2014-09-01 15:49:26 +02:00
Xavier Morel
cccd3c888f
[ADD] openerp.http reference doc
...
* fix some docstrings so they can be autodoc'd
* intersphinx mapping (and links to) werkzeug and python
2014-09-01 14:16:14 +02:00
Antony Lesuisse
2d296cb779
[MERGE] ir-ui-view split active and show_customize
...
Split the ternary field application in active and show_customize, all four
possible value are now needed for the customize theme popup.
2014-08-31 16:56:44 +02:00
Christophe Simonis
0c05a376d5
[FIX] base, mail: access to ir.config_parameter is now handled by by
...
record rules.
Partial revert of commit 80017b04c2
.
Conflicts:
addons/web/static/src/js/chrome.js
2014-08-29 12:01:50 +02:00
Christophe Simonis
1d2fe3330c
[MERGE] forward port of branch saas-5 up to 24c25f5
2014-08-29 11:36:35 +02:00
Christophe Simonis
010dd70894
[MERGE] forward port of branch saas-3 up to c914893
2014-08-28 19:25:08 +02:00
Christophe Simonis
6f6197fb7c
[MERGE] forward port of branch 7.0 up to f65c913
2014-08-28 18:15:10 +02:00
Christophe Simonis
f65c913027
[FIX] base: security: employee must have access to res.groups
2014-08-28 18:14:08 +02:00
andreparames
0908376221
[FIX] Load translations for selection fields
...
Selection fields in the new QWeb reports aren't being translated, because the context with the language isn't being passed.
2014-08-28 16:41:45 +01:00
Christophe Simonis
8046b7367d
[MERGE] forward port of branch saas-5 up to 7e117b1
2014-08-28 16:51:11 +02:00
Christophe Simonis
7e117b18a0
[MERGE] forward port of branch saas-3 up to ada9724
2014-08-28 16:21:27 +02:00
Christophe Simonis
ada9724655
[MERGE] forward port of branch 7.0 up to 3509e15
2014-08-28 16:12:55 +02:00
Xavier Morel
e6b56412a0
[ADD] views documentation
2014-08-28 15:02:33 +02:00
Leonardo Donelli
3509e15cc9
[IMP] report_sxw: missing parameter without_company for display_address
...
Fixes #811
2014-08-27 16:55:02 +02:00
Fabien Meghazi
34c5a5cf9c
[IMP] Increase statics cache from 12 hours to 1 week
2014-08-27 16:54:25 +02:00
Denis Ledoux
dd86d41eb4
[FIX] security: disallow read on ir.sequence for externals
2014-08-26 16:17:24 +02:00
Denis Ledoux
53582c2ea6
[FIX] security: res.groups should be readable by admins only
2014-08-26 13:31:41 +02:00
Denis Ledoux
72d3697fbc
[FIX] security: externals should be able to read attachements
...
without having the rights to read ir.config_parameter
2014-08-26 12:55:48 +02:00
Denis Ledoux
80017b04c2
[FIX] security: ir.config_parameter should not be readable by externals
2014-08-26 12:50:04 +02:00
Christophe Simonis
415525cecc
[FIX] allow `--log-db` to connect to another postgresql server than the one setted in config
2014-08-25 18:52:50 +02:00
Samus CTO
c6df857533
[FIX] Missing part of the revision 5f6fc473
2014-08-25 18:01:38 +02:00
Samus CTO
aad19c7360
[FIX] model: prevent exporting column ID of non ordinary tables
...
This makes no sense and can generate errors if you try to purge
ir.model.data of not existing records.
2014-08-25 14:38:20 +02:00
Raphael Collet
2b3b1c3230
[IMP] doc/howtos/backend: use scaffolding and adapt text and code accordingly
2014-08-24 13:06:51 +02:00
Raphael Collet
2ad092b5e5
[ADD] doc: new documentation, with training tutorials, and new scaffolding
2014-08-22 17:51:20 +02:00
Raphael Collet
97256fa1fb
[IMP] models: move prefetching of records back to method _prefetch_field
...
The selection of records in cache for prefetching was moved to method
_read_from_database() by xmo at rev 785018cc
in order to fix an access right
bug. But this introduced an issue: to explicitly avoid prefetching, you should
use read() instead of browsing records. We revert the change by xmo, without
reintroducing the bug (which apparently was fixed by another way).
2014-08-22 14:42:20 +02:00
Raphael Collet
2c6ee89080
[FIX] osv/fields.py: enable argument 'obj' in property fields
...
Fixes #1719
2014-08-22 12:10:46 +02:00
Raphael Collet
20b302cc8c
[FIX] osv/fields.py: fix the fix at rev 43756a24
.
2014-08-22 11:14:08 +02:00
Raphael Collet
43756a24ca
[FIX] osv/fields.py: fix sum in rev 48dfd70
2014-08-22 10:56:07 +02:00
Raphael Collet
775eaae930
[IMP] test_inherit: add test case, redefine Many2one field in inherited model
2014-08-22 10:01:41 +02:00
Raphael Collet
48dfd70b4a
[IMP] osv/fields.py: improve code change of rev eea07e27
2014-08-22 09:23:42 +02:00
Martin Trigaux
80d8532370
Forward port of branch saas-5 up to rev 4895281e
2014-08-22 09:12:14 +02:00
Christophe Simonis
eea07e27c0
[FIX] osv/fields.py: correct reading name_get of m2o property
2014-08-21 21:23:22 +02:00
Martin Trigaux
4895281e58
Forward port of branch saas-4 up to rev 15a3a2a
2014-08-21 18:17:35 +02:00
Martin Trigaux
15a3a2a63a
Forward port of branch saas-3 up to 7bcefaf
2014-08-21 18:14:22 +02:00
Martin Trigaux
7bcefaf232
Forward port of branch 7.0 up to 0ab88f5
2014-08-21 17:57:57 +02:00
Raphael Collet
618e397df1
[FIX] fields: in many2one property fields, name_get() the value as superuser
2014-08-21 17:29:56 +02:00
Martin Trigaux
0ab88f54f9
[FIX] ir_model: invalidate cache when adding new fields
...
When a new ir.model.field is created, add the new field in the fields_by_model (cache of custom fields). This is required as the __init__ method would not retrieve the new field if fields_by_model is already set.
Otherwise, the _columns would not contain the new fields and we could not access it without restarting the server (e.g. the installation of a module adds ir.model.fields and use it in the a view.
2014-08-21 17:24:45 +02:00
Desai Binjal
8fe9f07cac
[FIX] note: small bugs
2014-08-21 15:55:23 +02:00
Martin Trigaux
768b3592c2
[FIX] base: wrong model change check
...
Comparing an id and a browse record will always fail so the exception would have always been raised when changing a model (e.g. updating a module with custom fields).
2014-08-21 14:30:10 +02:00
Raphael Collet
dce5228da7
[FIX] fields: add missing option 'sanitize' on Html fields
2014-08-21 13:27:30 +02:00
Thibault Delavallée
4c6dcd7fcb
[FIX] ir_actions: server action: when creating or writing value on a record
...
through a server action, try to correctly set the value to write on a given
fields according to its type. For example many2one fields should receive an
int, not a unique containing the id of the new value.
2014-08-21 11:03:15 +02:00
Thibault Delavallée
43fe825870
[FIX] ir_actions: server action: check the validity of write_expresison only if defined. Also check for the related model only if set in the onchange.
2014-08-21 11:03:15 +02:00
Christophe Simonis
5dff035878
[MERGE] forward port of branch saas-5 up to 39bee35
2014-08-20 20:33:17 +02:00
Christophe Simonis
39bee35e25
[FIX] base: correct view branding tests after c013210
2014-08-20 18:23:12 +02:00
Christophe Simonis
c3131317d7
[MERGE] forward port of branch saas-4 up to ddef2dd
2014-08-20 17:57:22 +02:00
Christophe Simonis
ddef2dd10a
[MERGE] forward port of branch saas-3 up to 8f13e83
2014-08-20 17:51:20 +02:00