Commit Graph
114 Commits
Author SHA1 Message Date
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
Cédric Krier 990af40345 Fix typo 2009-07-29 16:25:26 +02:00
Cédric Krier 754ec19e3f Fix import_data to use id/False with many2one for issue1119 2009-07-28 19:23:30 +02:00
Cédric Krier b5f561ec27 Fix call of len if field value is None or False 2009-07-28 14:28:51 +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
Cédric Krier b38b7ccd17 Fix typo, rowcount is not a function 2009-07-08 14:47:33 +02:00
Cédric Krier af9ad2664b Add validate test for required and size
Handle many2one with id = 0
2009-07-07 19:34:05 +02:00
Cédric Krier f820d707f5 Remove _sequence on ModelSQL
Add nextid, setnextid, currid, lastid to have a generic way to handle sequence
Add has_lock function to be more database independant
2009-07-07 19:32:31 +02:00
Cédric Krier aabb1fdbe6 Add quote arround field name to prevent use of keywords 2009-07-07 19:28:03 +02:00
Cédric Krier bd02e85cee Don't use hardcoded true/false in SQL queries to be more database independant 2009-07-07 19:22:56 +02:00
Cédric Krier a359c7c0a2 Fix the use of rowcount because it can return -1 or None according to PEP249 2009-07-07 19:14:51 +02:00
Bertrand Chenal 875a94dc47 Handle tree structure with m2m relation on check_recussion 2009-06-25 16:23:10 +02:00
Cédric Krier 39457b4bf3 Doesn't allow anymore strings as domain on fields
It is strings inside the domain list that will be evaluated
2009-06-23 18:48:48 +02:00
Cédric Krier 8067f0aa3a Fix SQL clause for 'not in' with False value 2009-06-23 10:24:32 +02:00
Cédric Krier 567d925ada Add delete_all action on One2Many field 2009-06-18 18:46:48 +02:00
Cédric Krier b213536076 Don't use rec_name to construct default view 2009-06-17 23:21:34 +02:00
Cédric Krier 640e425a6b Allow to use integer for domain on many2many 2009-06-16 13:17:02 +02:00
Cédric Krier 0e0d72140a Read, write, create, delete permission on record rules 2009-06-15 14:02:11 +02:00
Cédric Krier da04200baa Skip models with table_query for ondelete 2009-06-12 18:42:24 +02:00
Cédric Krier b8402de921 Fix internal variable name for Cache and Cacheable for issue1076 2009-06-07 00:09:27 +02:00
Cédric Krier a5d08185ef Read also non active records when creating brother_ids list in _update_tree 2009-06-04 09:23:30 +02:00
Cédric Krier 12f41afe89 merge 2009-06-04 09:14:44 +02:00
Cédric Krier e23c5ef3dd Backed out changeset 669b79e387c3 2009-06-04 09:14:33 +02:00
Cédric Krier cad4ec1641 Add missing import logging for issue1073 2009-06-04 00:11:42 +02:00
Bertrand Chenal 3b240300aa Fix: read also non active records when creating brother_ids list in _update_tree 2009-06-03 16:56:44 +02:00
Cédric Krier 470777919e Fix default_sequence when sequence is inherited 2009-05-27 20:43:00 +02:00
Cédric Krier 655bdecd94 Doesn't append '%' to "like", "ilike" clauses 2009-05-27 19:41:04 +02:00
Bertrand Chenal a2fe2f402e Don't load inherited field if it is overloaded on the current object 2009-05-26 19:46:00 +02:00
Cédric Krier b652a1b69a Improve docstring of domain on Field 2009-05-22 18:33:36 +02:00
Cédric Krier 25adb99165 Fix memory leak in setLang cache of BrowseRecord for issue1025 2009-05-21 12:21:42 +02:00
Cédric Krier 058000852a Don't use value to create inherits model if the field is overridden in model
Like that we have the same behavior then write
2009-05-20 14:04:11 +02:00
Cédric Krier 748ce6ee39 Fix create when inherits field is set for issue878 2009-05-20 10:44:07 +02:00
Cédric Krier 74d7051407 Fix setLang on BrowseRecord to keep the cached values 2009-05-20 00:59:03 +02:00
Cédric Krier cfe69153c7 Simplify code 2009-05-13 19:17:31 +02:00
Cédric Krier 10b144be4e Fix "in" and "not in" clause for boolean 2009-05-13 19:16:48 +02:00
Cédric Krier 88393ba7ee Fix read related fields that uses datetime_field 2009-04-21 10:59:40 +02:00
Cédric Krier 5b3f3d3e3c Fix searching foreign keys when they are created in the transaction for
issue985
2009-04-14 14:50:50 +02:00
Cédric Krier 2060c8f391 Validate with the context user if user is root 2009-04-09 11:43:00 +02:00
Cédric Krier 78c675d07d Backed out changeset 2d767984995d 2009-04-09 11:11:11 +02:00
Cédric Krier d5cd2acdc9 Use root user to create workflow.instance for issue958 2009-04-08 22:27:37 +02:00
Cédric Krier 1a10e5ffaa Fix warnings for python 2.6 for issue915 2009-04-08 17:55:24 +02:00
Cédric Krier 55f67eb90f Fix rec_name to check also in inherited fields for issue944 2009-04-07 19:05:41 +02:00
Cédric Krier a352575ef0 Catch _sql_constraints and _sql_error_messages in ModelSQL instead of
dispatcher
2009-04-07 18:59:00 +02:00
Cédric Krier 0e5d32cb24 Move check of deleting workflow.instance on ModelWorkflow 2009-04-07 18:33:48 +02:00