Commit Graph
112 Commits
Author SHA1 Message Date
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
Cédric Krier a4066f6ce5 Make search_rec_name doesn't fail if _rec_name doesn't exist
issue2191
review247002
2012-03-01 10:31:28 +01:00
Cédric Krier a94ceb4321 Add default database language code
The configuration option defines which translated value will be stored in the
main field.
The methods of ir.translation which were already publicly used are now public.
Setting the main translation mark translations of other languages fuzzy.

review198001
2012-01-27 21:11:06 +01:00
Cédric Krier 54e3189fb6 Keep traceback as str as we don't know the encoding
issue2302
review225001
2012-01-17 13:54:08 +01:00
Cédric Krier 61ca0dd92c Don't try to detect rounding issue with MySQL
review74005
2011-08-27 16:04:36 +02:00
Cédric Krier b24095ec3d Fix export row with inherited fields
issue2102
2011-08-02 13:30:43 +02:00
Cédric Krier 852f04dc51 Remove support of Python2.5 and fix py3 warnings 2011-07-12 00:16:15 +02:00
Cédric Krier 550aae8351 Change Pool into a Singleton
review42001
2011-07-03 13:20:58 +02:00
Cédric Krier 587567077f Add LRUDict to use as cache
issue2033
review31005
2011-06-14 11:44:26 +02:00
Cédric Krier b22951fecb Improve digits test on Decimal for issue1870 2011-03-23 15:13:28 +01:00
Cédric Krier 65a3f3f837 Reduce domain before applying active rule for issue1796 2011-01-28 10:34:43 +01:00
Cédric Krier 2b4098f1d2 Add model field access 2011-01-22 23:56:13 +01:00
Cédric Krier 0d1c43b6ed Add One2One field 2010-12-03 18:01:46 +01:00
Cédric Krier df1fd283ac New transaction management
Remove cursor, user and context from methods and use Transaction instead
2010-08-19 22:01:12 +02:00