Cédric Krier
4513a8f8b9
Documentation refactoring
2010-05-08 14:22:26 +02:00
Cédric Krier
8a13a179ce
Fix string when adding raw column on history table for issue1515
2010-04-13 20:14:10 +02:00
Cédric Krier
e50c1897ad
Don't use offset in second query of search for issue1496
...
The order between the first query is not necessary the same then the second
one so using an offset can generate missing or duplicated ids in the result.
2010-04-10 13:56:47 +02:00
Cédric Krier
e36c70ce3b
searcher on Function fields take only one domain clause as argument
2010-03-23 11:22:31 +01:00
Brice V.
5e2a7de385
Fix typo on field types for issue1451
2010-03-18 10:33:59 +01:00
Cédric Krier
8ec67b1eba
merge
2010-03-17 11:51:34 +01:00
Cédric Krier
2e2227d795
Improve search on translatable fields for issue1442
2010-03-17 11:50:52 +01:00
Cédric Krier
aed753e21c
Don't raise error message about required Integer or Float
...
Integers and Floats have 0 as default value at the database level
2010-03-16 13:35:13 +01:00
Cédric Krier
dd6918994f
New interface for Function/Property fields
...
Function field takes an other field in parameters
set/get function on Fields take a list of ids
2010-03-11 16:42:50 +01:00
Cédric Krier
b5fb4d1ef3
Refactoring by validation with pylint
2010-02-18 18:50:35 +01:00
Cédric Krier
5d229f6fad
Move OPERATORS into const to be able to reload modules
2010-01-22 11:44:31 +01:00
Cédric Krier
1946063a5d
Don't put many2one in the search cache (too slow) and externalize some
...
function result outside the loop
2010-01-21 12:47:32 +01:00
Cédric Krier
8bfad5bfef
Fix string for history logs add_raw_column
2010-01-12 09:08:16 +01:00
Cédric Krier
1a8c6f2213
Add comment on table and field for postgresql backend
2010-01-11 12:32:50 +01:00
Cédric Krier
e2f80d378c
Add timestamp field in backend
...
Improve validation of DateTime values
2009-11-10 14:00:13 +01:00
Cédric Krier
d9cfdf8af8
Don't use date_trunc as it returns work type in SQLite
2009-11-03 15:23:07 +01:00
Cédric Krier
ddbd7b2be1
Don't use now() in SQL statement as it doesn't work on SQLite
2009-11-03 15:22:17 +01:00
Cédric Krier
63407a4716
Add AS to select field in search to fix column names in dictfetchall with SQLite
2009-10-18 19:36:55 +02:00
Cédric Krier
18a360ee42
Add missing quote arround field_name when calling reduce_ids
2009-10-16 18:39:55 +02:00
Cédric Krier
49bdeec854
Call super for delete after write/delete of foreign keys because write and
...
delete can re-fill the cursor cache with deleted ids.
2009-10-12 16:56:29 +02:00
Cédric Krier
6221220e57
Use SQL query to search for foreign keys
2009-10-12 16:54:35 +02:00
Cédric Krier
3a7daa0609
Prevent double parenthesis for inselect subquery for issue1206
...
With double parenthesis SQLite uses only the first row
2009-10-09 15:56:40 +02:00
Cédric Krier
92fab4e81b
Add datetime_field on xxx2Many to use a specific _datetime when reading the
...
related record
2009-10-05 15:41:10 +02:00
Cédric Krier
25ebb3606a
Don't read history many2one if empty
2009-10-02 13:12:26 +02:00
Cédric Krier
68392d192d
Add quote arround table name
2009-10-02 13:11:21 +02:00
Cédric Krier
cadc9c40f0
Fix _sql_constraints validation when there is duplicated id in list for
...
issue1198
2009-09-30 14:42:00 +02:00
Cédric Krier
d7a7cd4eee
Don't fill cache in search for delete records for issue1176
2009-09-14 18:14:21 +02:00
Gour
486d46a405
fix typos for documentation (Model chapter)
2009-09-13 15:37:11 +02:00
Cédric Krier
ae35028b5b
Better fix for quote in dictionary of some SQLite version
2009-09-08 13:16:49 +02:00
Cédric Krier
1259ee9668
Add new tool reduce_ids
2009-09-08 13:03:57 +02:00
Cédric Krier
a2ccd946a4
Strip quote from cursor dict because some SQLite version return it.
2009-09-08 09:28:43 +02:00
Cédric Krier
48ccca3ba9
Backed out changeset 2d20900b6eb3
2009-09-08 09:27:43 +02:00
Cédric Krier
ed04d78f43
Strip quote from cursor dict because some SQLite version return it.
2009-09-08 08:47:37 +02:00
Cédric Krier
f4568e0cde
Factorise code by adding get_cache function on Cursor.
2009-09-07 15:34:04 +02:00
Cédric Krier
3cf4f4a7e3
Add limit_clause function on cursor
2009-09-07 15:18:17 +02:00
Cédric Krier
ffc8d2ba57
Fill the cursor cache at search and use it in search_read and in one2many get
2009-09-07 10:39:09 +02:00
Cédric Krier
da9464b39a
Clean all create/write fields in create and write of ModelSQL
2009-08-28 16:40:25 +02:00
Cédric Krier
45914073bf
Use faster join implementation:
...
- use generator when possible
- use tuple __mul__
2009-08-26 15:39:53 +02:00
Cédric Krier
8061d6c204
Faster implementation of sub_ids '%s'
2009-08-26 14:09:31 +02:00
Cédric Krier
bfc92d0131
Use new iterobject on pool instead of object_name_list for speed improvement
2009-08-20 14:53:45 +02:00
Bertrand Chenal
3ed71f0674
Faster implementation of unique constraint validation
2009-08-12 10:34:49 +02:00
Cédric Krier
ecb05626ec
Remove wrong order parameter introduced in changeset f8162ed1fce2
2009-08-09 10:30:31 +02:00
Cédric Krier
074e94df72
Remove unnecessary ordered result for some search
2009-08-07 13:33:25 +02:00
Cédric Krier
fba7a61651
Don't order search result if order value is []
2009-08-07 13:09:51 +02:00
Cédric Krier
8235418015
Improve property get to work with a list of property names.
...
It reduces the number of queries to the database when reading records of
models that have a lot of property fields.
2009-08-05 19:06:52 +02:00
Cédric Krier
cb08fdf3ed
Fill _create_records just after INSERT to have it for fields with set function
2009-08-04 16:56:45 +02:00
Cédric Krier
79d4364fba
Function fields must not be considered required for SQL exception
2009-08-04 16:55:48 +02:00
Cédric Krier
92757863f3
Handle _sql_constraints when database doesn't
2009-07-30 17:02:42 +02:00
Bertrand Chenal
5110236dd7
Fix: added missing space in sql query when searching on translatable fields.
2009-07-27 17:27:39 +02:00
Cédric Krier
225083f177
Add missing sql_format call for WHERE clause values
2009-07-24 17:26:14 +02:00