Olivier Dony
f15cbd6520
[MERGE] Forward-port saas-4 bugfixes up to ad4c6ca
2014-06-12 18:54:36 +02:00
Christophe Simonis
7bee9447c4
[MERGE] forward port of branch saas-3 up to 3c7a54a
2014-06-11 11:06:04 +02:00
Christophe Simonis
3c7a54a76c
[MERGE] forward port of branch 7.0 up to 100eba8
2014-06-11 10:58:43 +02:00
Jeremy Kersten
100eba8eaf
[FIX] fields.py - avoid dict comprehension inside a dict comprehension
2014-06-11 10:30:00 +02:00
Christophe Simonis
a7c2125735
[MERGE] forward port of branch saas-4 up to 6b8e972
2014-06-10 13:15:46 +02:00
Christophe Simonis
6b8e9727e5
[MERGE] forward port of branch saas-3 up to 4601d85
2014-06-10 12:29:47 +02:00
Christophe Simonis
4601d85944
[MERGE] forward port of branch 7.0 up to 6fdb783
2014-06-10 11:49:14 +02:00
Christophe Simonis
517162ce14
[FIX] orm: do not recompute m2o stored function field at read.
...
The get() method of m2o function fields is used for 2 different things:
- call the function defining the m2o
- get the name_get representation of the value
Until this pathc, only the first case was handled, resulting to a useless
recomputation of the field when reading it.
2014-06-06 10:53:42 +02:00
Oliver Laurent
306d5c89a0
[FIX] orm: do not resize unlimited char fields
2014-06-05 19:05:36 +02:00
Christophe Simonis
b1c0bc0b46
[MERGE] forward port of branch saas-4 up to 65f68c1
2014-06-03 19:45:19 +02:00
Martin Trigaux
3cb551bf50
[FIX] read_group: do not change the return format of the read group in case of no groupby_fields and keep the same return format as with groupby fields (a list of dict)
2014-06-03 10:20:55 +02:00
Xavier Morel
d9ce012d29
[IMP] simplify handling of callable _constraint message
2014-05-27 11:57:00 +02:00
Xavier Morel
d8377a931e
[REM] idiotic _invalids attribute, as well as get_invalid_fields
2014-05-27 11:56:59 +02:00
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
Christophe Simonis
38abc8a006
[MERGE] forward port of branch 7.0 up to revid b09b6a0
2014-05-20 18:57:04 +02:00
Thibault Delavallée
066fb14326
[FIX] orm: unlink: when unlinking a record, trigger the computing of
...
function fields for other records in the same model. Previously all function fields in the
current model were not computed for some reason not provided by the history.
We therefore compute effective store_ids on which the various trigerred
function fields will be computed again. Those ids are the ids given
in the store_get storage variable minus the deleted ones.
2014-05-19 18:12:41 +02:00
xmo-odoo
072485799c
Merge pull request #27 from lyinfo/master-ck-match
...
Dereferencing of nones could lose error messages during import
2014-05-19 10:18:27 +02:00
Xavier Morel
cf833a2f53
[FIX] don't blockquote a list of stuff for no reason
2014-05-19 08:32:14 +02:00
kevin wang
b1dfb8e193
check no match result in convert_pgerror_* functions
2014-05-17 23:14:53 +08:00
Olivier Dony
7e66bd9d55
[FIX] orm.search_read: drop active_test context flag during the read() step
...
The active_test flag is meant for search(),
but when passed to search_read() it was also
propagated to the read() call.
This has little consequence normally because
read() ignores this flag, but it can have
side-effects when reading x2m fields or
function fields. They are likely to call
search() somewhere downstream, still with
the propagated active_test flag, while
it should not be applied anymore.
Ultimately dropping this flag could be
done by read() in all cases, but changing
search_read() is less likely to block
exotic cases where the flag was passed
on purpose. Moving it to read() could
be done as a later step.
2014-05-13 17:29:35 +02:00
Quentin (OpenERP)
104451bd56
[FIX] fields.date's date_to_datime function fixed
...
bzr revid: qdp-launchpad@openerp.com-20140416154450-ws9w6wzf9s5kmjjj
2014-04-16 17:44:50 +02:00
Denis Ledoux
42025a6af5
[ADD] osv: add get_formview_action and get_formview_id methods
...
return an action to open the document. This method is meant to be
overridden in addons that want to give specific view ids for example
bzr revid: dle@openerp.com-20140416143431-syqu1ko74xt04oo5
2014-04-16 16:34:31 +02:00
Christophe Simonis
15e151dca7
[IMP] orm: postprocess function field values in batch
...
bzr revid: chs@openerp.com-20140415162321-l8hgeh6s48252zhl
2014-04-15 18:23:21 +02:00
Christophe Simonis
3d2e9b4d2b
[MERGE] forward port of branch 7.0 up to revid 5281 launchpad_translations_on_behalf_of_openerp-20140412094159-mhy3v2prb3ctx32k
...
bzr revid: jke@openerp.com-20140409153527-mic1a8afcvdhsd27
bzr revid: chs@openerp.com-20140410102422-fcwxhjk40z0oy8x5
bzr revid: chs@openerp.com-20140415133650-y46i0o3qkb2atbvi
2014-04-15 15:36:50 +02:00
Quentin (OpenERP)
43b8d2aec1
[IMP] fields.date: added date_to_datetime function
...
bzr revid: qdp-launchpad@openerp.com-20140414153613-geu20zacxnf0swol
2014-04-14 17:36:13 +02:00
Martin Trigaux
478cbd7c70
[FIX] read_group: avoid shared context and initialise if none
...
bzr revid: mat@openerp.com-20140411075556-kdxn1lsth45twgmj
2014-04-11 09:55:56 +02:00
Gery Debongnie
c6f41caf99
[MERGE] merge from trunk
...
bzr revid: ged@openerp.com-20140409120604-tgc4o9zkkr69sf4q
bzr revid: ged@openerp.com-20140409150557-1wsyuvpw1ly75fhn
bzr revid: ged@openerp.com-20140410133251-k200ui19hjs6jnur
2014-04-10 15:32:51 +02:00
Christophe Simonis
15680c94e1
[MERGE] forward port of branch saas-3 up to revid 5115 chs@openerp.com-20140410102422-fcwxhjk40z0oy8x5
...
bzr revid: chs@openerp.com-20140410105454-6utwgruj80h8wdss
2014-04-10 12:54:54 +02:00
jba
1578776814
[FIX] expression: when evaluatoing *like operator, add cast to text to column in case of different type
...
bzr revid: mat@openerp.com-20140409144346-nbn0dno3bs6ozwk5
2014-04-09 16:43:46 +02:00
Gery Debongnie
2df67ad6c9
[FIX] make sure the read_group method use the correct time interval when grouping with an interval of days (stupid typo) (orm.py)
...
bzr revid: ged@openerp.com-20140409092759-91ruq32vkxh698kh
2014-04-09 11:27:59 +02:00
Gery Debongnie
e143250b7a
[IMP] simplifies the readgroup code to select order by (orm.py)
...
bzr revid: ged@openerp.com-20140408122417-y75wp0plyloiamuy
2014-04-08 14:24:17 +02:00
Gery Debongnie
5d31c979a1
[MERGE] merge from trunk
...
bzr revid: ged@openerp.com-20140408090618-vs4e9c9ckhat9aem
2014-04-08 11:06:18 +02:00
Gery Debongnie
6d234c01bd
[IMP] change the regex matching orders in orm.py to accept field:interval. This simplifies the code in _check_qorder (no need to compute the raw field name)
...
bzr revid: ged@openerp.com-20140408090418-5yjnfp6axumytmrq
2014-04-08 11:04:18 +02:00
Gery Debongnie
568b8c7632
[IMP] add and fix the documentation on some helper methods in read_group. (orm.py)
...
bzr revid: ged@openerp.com-20140408082029-pmdzkbak0zjvs8jw
2014-04-08 10:20:29 +02:00
Gery Debongnie
6aa003f1ad
[IMP] improves the helper function _read_group_format_result so that it is slightly faster (orm.py)
...
bzr revid: ged@openerp.com-20140408073813-8z23fun5274fvqaa
2014-04-08 09:38:13 +02:00
Christophe Simonis
0161666e8b
[MERGE] forward port of branch saas-3 up to revid 5112 chs@openerp.com-20140407144238-3s38zadkh7yxpdy7
...
bzr revid: chs@openerp.com-20140407160548-ttuc877kknuycoqw
2014-04-07 18:05:48 +02:00
Christophe Simonis
1e9ed7baf6
[MERGE] forward port of branch 7.0 up to revid 5275 odo@openerp.com-20140407105740-elbz311w5u9e8eos
...
bzr revid: chs@openerp.com-20140407144238-3s38zadkh7yxpdy7
2014-04-07 16:42:38 +02:00
Gery Debongnie
b683b9c614
[IMP] removes useless calls to field_get and replace them by self._all_columns in read_group method (orm.py).
...
bzr revid: ged@openerp.com-20140407133931-hrf9dmdj2fx050ww
2014-04-07 15:39:31 +02:00
Gery Debongnie
82825c4acd
[FIX] add context parameter to various helper methods to avoid stupid crash in read_group (orm.py)
...
bzr revid: ged@openerp.com-20140407130223-pdzge17omntpbh23
2014-04-07 15:02:23 +02:00
Olivier Dony
5be9e5612f
[FIX] browse()/browse_record: use iterables instead of forcing lists when constructing browse_lists
...
This allows iterable list_class implementations
bzr revid: odo@openerp.com-20140407105740-elbz311w5u9e8eos
2014-04-07 12:57:40 +02:00
Christophe Simonis
120342d537
[MERGE] forward port of branch 7.0 up to revid 5274 chs@openerp.com-20140404141611-qi1yagltvkd9q8ji
...
bzr revid: chs@openerp.com-20140404155858-mvupqmuvi8ime2tl
2014-04-04 17:58:58 +02:00
Christophe Simonis
bcf36e6deb
[IMP] expression: new helper for generating unaccent aware sql queries. Adapt _auto_join tests to use it.
...
bzr revid: chs@openerp.com-20140404141559-d2sn68lruik9hz81
2014-04-04 16:15:59 +02:00
Olivier Dony
63b8fe0d33
[FIX] domain parsing: better heuristic when a domain uses a date value for a datetime field
...
This comparison is flawed by nature but can be a useful
shortcut sometimes. It was using wrong boundaries and
would also loop for operators not explicitly handled
by the code (there was no `else` block). It is still
not possible to handle time zone conversions properly,
so this is only an experimental feature.
bzr revid: odo@openerp.com-20140404133827-5owdendpsr083a17
2014-04-04 15:38:27 +02:00
Gery Debongnie
39e69876c6
[IMP] moves some internal function in read_group to become class methods and slightly reorganize them (orm.py)
...
bzr revid: ged@openerp.com-20140404124232-dmyxuv1qf5kperet
2014-04-04 14:42:32 +02:00
Gery Debongnie
870fed2bb9
[IMP] puts the closure 'process_groupby' in read_group in a separate method. (orm.py)
...
bzr revid: ged@openerp.com-20140404114543-nw7yx87h1dbkbhtf
2014-04-04 13:45:43 +02:00
Gery Debongnie
f48ab8373b
[FIX] fixes a read_group test to use the correct field:interval key when grouping with an interval, and makes sure the sql request properly quote the order statement (without quoting DESC or ASC) (orm.py)
...
bzr revid: ged@openerp.com-20140404091947-z87yg2bc7htovj4q
2014-04-04 11:19:47 +02:00
Gery Debongnie
7dd2e6789d
[FIX] when using readgroup in eager mode, there is a possible name collision when grouping on several fields with different intervals, for ex, date_deadline:month, date_deadline:week. This commit resolves the issue by changing the keys 'field' into 'field:interval' (for ex, date_deadline:month) in the results (orm.py)
...
bzr revid: ged@openerp.com-20140403142923-puiruf29tbi1pjj9
2014-04-03 16:29:23 +02:00
Gery Debongnie
1aba5f08cf
[FIX] fixes read_group so that it uses the correct _count attribute in the result dictionary (orm.py)
...
bzr revid: ged@openerp.com-20140403115605-tuboy66r9ews2u0e
2014-04-03 13:56:05 +02:00
Gery Debongnie
75b66ed77c
[FIX] work around a read bug: false data are fetched when the same field is present multiple times as a field parameter. The solution is to make sure the list many2onefields does not contain duplicate fields (orm.py)
...
bzr revid: ged@openerp.com-20140403094316-kmlliqbwd14ey68p
2014-04-03 11:43:16 +02:00