Cédric Krier
d86b984753
Fix domain concatenation between list and tuple
2013-06-01 00:17:33 +02:00
Cédric Krier
5243a43d73
Fix validation of domain for One2One fields
...
issue3206
review852003
2013-05-18 19:13:12 +02:00
Cédric Krier
3492e90308
Use None instead of False in ModelStorage.copy
2013-04-14 23:17:07 +02:00
Ralf Peschke
9c6ff8c0e0
Use value instead of record instance on import_data
...
Importing records with m2o- and m2m-relations import_data gives record instances
to the create-method of the object instead of record-id's. Creating the same
object using the GUI the client gives record-id's.
On error the record-instances can't be serialized by JSON and the common error
"500 internal server error" will be reported to the client
issue3124
review767002
2013-04-13 11:07:33 +02:00
Ralf Peschke
2956c8c068
Fix: on import_data zero values shouldn't be converted to None
...
import_data method converts zero values to None. As a consequence such records
don't pass the required constraint for such fields
issue3136
review779002
2013-04-13 10:28:07 +02:00
Cédric Krier
a95ae0dad9
Remove _inherits
...
review670002
2013-03-20 22:49:16 +01:00
Cédric Krier
a8755c51ea
Fix uninitialized new_records in ModelStorage.copy
2013-03-17 00:17:19 +01:00
Cédric Krier
18e7ff87c3
clear _values before save values
...
This is to allow to use the instance passed to write and then having the real
stored values.
review707002
2013-03-12 10:34:14 +01:00
Albert Cervera i Areny
25463800c9
Replace _constraints with validate in ModelStorage and improve user messages.
...
issue2616
review371002
2013-03-07 16:53:19 +01:00
Cédric Krier
5e01f5c068
Fix flake8
2013-02-27 22:50:31 +01:00
Cédric Krier
2af1936eb1
Ensure the existing record are always set on xxx2many
...
review662005
2013-02-23 18:29:14 +01:00
Cédric Krier
d49fb4318d
Add selection_change_with on Selection and Reference fields
...
review587002
2013-02-05 19:06:16 +01:00
Cédric Krier
b2d11b6df5
local_cache and model2ids must depend on datetime
...
review650002
2013-02-04 20:08:10 +01:00
Cédric Krier
60d4e28911
Fix copy when relation field is a Reference
...
review654003
2013-02-04 20:02:37 +01:00
Cédric Krier
fd01a724f8
Add Dict fields
...
review501007
2013-01-26 15:18:41 +01:00
Cédric Krier
d5ba4e67c0
Call only once _save_values in ModelStorage.save
2013-01-20 14:16:32 +01:00
Albert Cervera i Areny
30b1403cdc
Use a list of dictionaries in create().
...
issue2358
review266002
2013-01-06 22:18:13 +01:00
Cédric Krier
5fc611575c
Factorize selection validation
...
review603002
2012-12-13 19:18:37 +01:00
Cédric Krier
eb820df535
Use globale cache also for Many2One and Reference fields
...
review590007
2012-12-10 16:15:24 +01:00
Cédric Krier
c1fd506f77
Add global search
...
review582002
2012-12-05 13:25:18 +01:00
Cédric Krier
489e297cf2
Store transaction counter on local cache
...
As the cache is shared with many instances, the counter must also be shared.
review599004
2012-11-28 22:37:57 +01:00
Cédric Krier
1cdf1ffaef
Ensure records are readable also for constraints
...
review595004
2012-11-28 22:34:10 +01:00
Cédric Krier
936dcca53a
Store default language in database
...
review592004
2012-11-23 17:59:04 +01:00
Cédric Krier
26a3127b8f
Don't alter context with empty _datetime
...
Avoiding useless context change make the global cache more efficient.
2012-11-22 22:54:07 +01:00
Cédric Krier
c3c344c658
Prevent fuzzing translations when copying
...
review590005
2012-11-22 22:42:45 +01:00
Cédric Krier
80f00f7ec0
Prevent double browse as search returns instance
2012-11-01 22:40:07 +01:00
Cédric Krier
d5f3fbd2aa
Don't read Function fields when copying records
2012-10-19 23:01:11 +02:00
Nicolas Évrard
34fd945a68
Add comment about previous change
2012-10-17 15:51:05 +02:00
Nicolas Évrard
47aada8c03
Ensure that records are readable when validating them
2012-10-17 15:38:58 +02:00
Cédric Krier
362275ed67
Remove old test in read for ids instance of int, long
2012-10-15 16:52:21 +02:00
Cédric Krier
d6e2c4b33b
Don't skip Property fields in copy
2012-10-10 20:04:08 +02:00
Nicolas Évrard
52a4ee8e56
Fix import_data for reference fields
2012-10-09 17:42:02 +02:00
Cédric Krier
3c827d8647
Fix test to skip Function fields in copy
...
review545004
2012-10-09 17:21:25 +02:00
Cédric Krier
cf1b168f66
Test also for tuple in EvalEnvironment
...
issue2816
review554002
2012-10-09 17:19:36 +02:00
Cédric Krier
aff4921b7e
Restore ModelStorage._ids if exception occures in create
...
issue2801
review546002
2012-10-05 18:26:12 +02:00
Cédric Krier
4337ce2776
Add pre-validation
...
review536002
2012-09-29 14:39:59 +02:00
Cédric Krier
9e74e00cfd
Backed out changeset ad579d35b513
2012-09-27 11:33:34 +02:00
Cédric Krier
0fe1b93864
Active Record
2012-09-24 22:16:53 +02:00
Cédric Krier
2188fc3c6c
An empty string is not a valid required value
...
review411001
2012-06-28 15:19:21 +02:00
Cédric Krier
6858187fc8
Add dynamic size limit on the One2Many, Many2Many and Char
...
review396001
2012-06-20 18:12:40 +02:00
Cédric Krier
97fc27a825
Factorize the required test
...
issue2587
review370001
2012-06-13 23:24:47 +02:00
Cédric Krier
3ebda5c8ee
Add time format validation
...
review342002
2012-05-16 13:04:36 +02:00
Cédric Krier
ee3be37a36
Fix pep8 and pyflakes
2012-04-01 23:08:15 +02:00
Cédric Krier
d059ebb792
Don't allow rpc call on ModelStorage without ModelView
...
CVE-2012-0215
issue2476
review303001
2012-03-28 19:02:41 +02:00
Cédric Krier
be0e5c54a9
Simplify workflow engine
...
- Remove workflow module
- Add ir.model.button for access rights
review256001
2012-03-25 00:15:17 +01:00
Cédric Krier
e403cae912
Fix import_data to always have a boolean value for boolean fields
2012-03-24 09:36:46 +01:00
Nicolas Évrard
584d516067
Integer, Numeric and Float allow None as value
...
NULL value is None and not False
issue2022
review237004
2012-03-23 17:52:36 +01:00
Cédric Krier
27f8cd68db
Fix field access for inherited Models
...
Use root user to create/write inherited records and check access fields in the
base record.
issue2333
review289002
2012-03-20 19:01:14 +01:00
Cédric Krier
d6c0ad5e6c
Remove xxx2many clean cache
...
Since xxx2many are no more stored in the cursor cache, it is no more needed to
clean it.
review285001
2012-03-16 10:54:48 +01:00
Cédric Krier
641681523f
No need to use keys() to check if rec_name is in _inherit_fields
2012-03-01 10:32:02 +01:00