Commit Graph
129 Commits
Author SHA1 Message Date
Cédric Krier 175fb9cd0f Get default value for inherited field only if there is a default method for issue2027 2011-05-31 10:49:38 +02:00
Cédric Krier 58dc14ff84 Use a set for field internally read but to be deleted for issue1950 2011-04-18 13:02:05 +02:00
Cédric Krier 0744b62fe6 Fix partial commit to allow search on fields one2many 2011-04-10 21:05:16 +02:00
Cédric Krier 54e6a8c2fe Use md5 hash for indexing translation for issue1898 2011-04-09 12:36:01 +02:00
Cédric Krier c259187ab7 Add loading attribute on fields 2011-01-07 10:58:43 +01:00
Cédric Krier cd7ce92be9 Remove priority attribute on fields 2011-01-03 12:39:29 +01:00
Cédric Krier def7d53339 Don't rename table from first join and add missing arguments in _order_calc 2010-12-27 16:25:30 +01:00
Cédric Krier 0d1c43b6ed Add One2One field 2010-12-03 18:01:46 +01:00
Cédric Krier f8eae466e5 Return _timestamp as string for issue1715 2010-10-11 13:20:09 +02:00
Cédric Krier b356807909 Set translation on create for issue1694 2010-09-30 19:59:14 +02:00
Cédric Krier 815f7e961e Fix global name 'user' not defined for issue1699 thanks to paul 2010-09-20 19:06:04 +02:00
Cédric Krier 63e7f29f6e Fix search on many2many with negate operator 2010-09-03 23:37:31 +02:00
Cédric Krier a325aebe77 Fix search on many2many with a string as value 2010-09-03 14:27:49 +02:00
Cédric Krier 2f75c6cc48 Use fetchmany instead of limit
It is faster on large data sets
2010-09-02 17:59:33 +02:00
Cédric Krier e186d5b76d Skip non ModelStorage from foreign key operations 2010-08-23 23:56:56 +02: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
Cédric Krier 8fd9f09b72 Use explicit AS column name in queries that use dictfetch*
SQLite return wrong column name when using query as table
2010-07-15 19:00:21 +02:00
Cédric Krier 483afed26a Catch only Exception according to PEP 352 2010-07-08 19:53:39 +02:00
Cédric Krier 1ec9aad435 Always check on delete restrict for issue1588 2010-06-17 20:05:59 +02:00
Cédric Krier e75ba6b112 Fix history clause error introduced by changeset 7f5860ab74cb 2010-06-12 20:16:25 +02:00
Cédric Krier 1503aa3112 Make _timestamp numeric instead of datetime to work with XML-RPC and JSON-RPC 2010-06-09 19:58:31 +02:00
Cédric Krier 1513426987 Add ir.trigger to trigger ModelStorage change 2010-05-29 15:58:49 +02:00
Cédric Krier 3b84b5c3de Add default value to Boolean fields at database level 2010-05-28 20:18:34 +02:00
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