Cédric Krier
9dbc025011
Add restore_history to ModelSQL
...
issue3456
review1441003
2014-03-18 20:07:03 +01:00
Cédric Krier
335b0b6851
Add history revisions
...
issue3678
review3551002
2014-03-18 19:54:32 +01:00
Cédric Krier
f72b983c0f
Check relation access in fields_get and for default fields in read
...
issue3750
review4261002
2014-03-15 11:01:14 +01:00
Cédric Krier
88a4bce42d
Ensure to read the last history record
...
history records for the same id could have the exact same timestamp so to always
read the same record, the last one inserted is used by ordering on __id.
issue3741
review4161002
2014-03-10 20:26:56 +01:00
Cédric Krier
2680d1b746
Use a sequence of ids, values to set fields
...
review3331003
2014-02-24 19:15:57 +01:00
Cédric Krier
19f3ab64cb
Fix error message "foreign_model_exist"
...
The value argument has no meaning for this error message and the way it is
retreived in changeset dbbbe6cae2bb is buggy.
review3381002
2014-02-14 00:22:45 +01:00
Nicolas Évrard
96d4de1709
_validate records in bunch of RECORD_CACHE_SIZE
...
This is required in order to prevent invalidating the LRU cache too often
review3061002
2014-02-03 16:30:18 +01:00
Cédric Krier
bc6acd08ee
Drop support of Python 2.6
...
review2691002
2014-01-31 00:02:03 +01:00
Cédric Krier
2e7c28d348
Add with_on_change switch to default_get
...
default_get should not call on_change when called in create because it could
modify values set by the caller.
issue3602
review2781002
2014-01-26 21:57:15 +01:00
Cédric Krier
390f196559
Validate only modified and dependant fields on model write
...
issue3445
review1371002
2013-12-23 20:47:25 +01:00
Cédric Krier
a371793507
Fix _rebuild_tree to take in account inactive records
...
issue3509
review2401002
2013-12-23 20:22:52 +01:00
Sergi Almacellas Abellana
e54317cfca
Improve error messages by showing the failing value
...
issue3489
review1671002
2013-12-22 10:24:05 +01:00
Cédric Krier
f52fe8e45f
Use a sequence of records, values in write
...
issue3499
review1641003
2013-12-19 14:44:01 +01:00
Cédric Krier
c2fa4958f5
Remove type test on limit and offset
...
Those types are enforced in python-sql
review1701002
2013-11-25 12:16:20 +01:00
Cédric Krier
bc1215af41
Fix history search to remove only past deleted records
...
review1481002
2013-11-05 17:20:08 +01:00
Cédric Krier
478fad1001
Don't create translation for field with a "set" method
...
review1120002
2013-10-06 11:59:31 +02:00
Cédric Krier
e403e8bc95
Remove old test in write to update MPTT for only one record at a time
2013-09-23 00:10:33 +02:00
Cédric Krier
1a8c5aae1c
Fix check timestamp and add unittest
...
review1087003
2013-09-22 14:28:46 +02:00
Cédric Krier
fc6c6cfdda
Migration to python-sql
...
* Use python-sql
* Add convert_domain method on Fields
* Add sql_format and sql_type methods on Fields
* Allow to return a full domain for Function.searcher
* Replace static backend by dynamic get method
* Replace order_field by order_<field name> method
review1001002
2013-09-06 22:32:37 +02:00
Cédric Krier
0210370575
Improve MPTT
...
- Remove the order on MPTT
- Make room with queries using left/right instead of ids
- Call _update_tree multiple times for small list instead of rebuild the all
tree
- Improve test for with many roots
- Factorize the test to update MPTT
issue1892
review1007002
2013-09-03 10:26:23 +02:00
Cédric Krier
a7e7b3b91e
Change Translation.set_ids to use a list of values
...
review1005002
2013-09-02 17:38:11 +02:00
Cédric Krier
85fbe14011
Fix Reference search on Function field
...
review945002
2013-07-04 19:30:28 +02:00
Nicolas Évrard
86dfd60769
Fix child_of in referenced search on Many2One and Reference fields
...
review953002
2013-06-27 17:24:41 +02:00
Cédric Krier
b669732728
Reduce IN_MAX by number of columns in UNIQUE validation
...
issue3230
review934002
2013-06-22 00:23:19 +02:00
Cédric Krier
929c2c135d
Allow None in child_of operator
...
issue3190
review844002
2013-05-04 11:44:15 +02:00
Cédric Krier
459902908e
Fix ir_translation clause on res_id
...
Since changeset 3e12e07af677, res_id is NULL instead of 0.
issue3161
review805002
2013-04-17 17:44:34 +02:00
Cédric Krier
2e8ec5f5df
Replace SPLIT_PART by SUBSTR and POSITION
...
SPLIT_PART is not a standard SQL function (it is not supported by MySQL).
SUBSTR is used even if it is not standard SQL because SUBSTRING is not
supported by SQLite. This will change once we will migrate to python-sql.
review784002
2013-04-14 23:17:55 +02:00
Cédric Krier
68d7948b10
Add missing reference origin clause when search on xxx2many
...
review770002
2013-04-08 23:52:05 +02:00
Cédric Krier
83eee68713
Fallback to order by id when ordering Many2One
2013-04-01 16:57:02 +02:00
Cédric Krier
2fc5214e4f
Remove left/right check on create
...
It was introduced in changeset c7804c288ca3 but tools like proteus will set the
value on creation because there is a default value on such field as they are
required. So such test is not doable on creation.
issue3019
2013-03-21 21:40:10 +01:00
Cédric Krier
15961b9e67
Allow to search on target of Reference field
...
review716002
2013-03-21 18:20:39 +01:00
Cédric Krier
a95ae0dad9
Remove _inherits
...
review670002
2013-03-20 22:49:16 +01:00
Cédric Krier
b7ab51697b
Fix check of _sql_error_messages
2013-03-12 11:47: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
1887c2c564
Enforce usage of None instead of False
...
review685002
2013-03-05 10:33:18 +01:00
Cédric Krier
10b2b5cfda
Fix check of _sql_error_messages
...
issue3021
review682002
2013-03-04 21:30:17 +01:00
Cédric Krier
5e01f5c068
Fix flake8
2013-02-27 22:50:31 +01:00
Cédric Krier
63a2b16aa9
Fields with set was not always called since new create API
...
review668003
2013-02-15 19:24:22 +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
ec554ef6b3
Fix read relate value when id is 0
...
review618002
2012-12-23 22:56:09 +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
936dcca53a
Store default language in database
...
review592004
2012-11-23 17:59:04 +01:00
Cédric Krier
0e4df2b246
Add missing context when filling cache from search
2012-11-22 22:49:41 +01:00
Cédric Krier
1464a38a9d
Delete translations when deleting records
...
review594003
2012-11-22 22:22:13 +01:00
Bertrand Chenal
2a97cd8017
Fix model name when the docstring starts with an empty line
...
review565002
2012-10-16 18:26:37 +02:00
Cédric Krier
268993b5be
Fix missing migration from _description to __doc__
2012-10-10 01:02:18 +02:00
Pierre-Louis Bonicoli
4e4fe87dfa
Fix message when a required field is missing
...
issue2657
review399002
2012-10-09 11:08:56 +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