Commit Graph
2183 Commits
Author SHA1 Message Date
Cédric Krier 46cbcdc62e Use open instead of file to follow recommendation of Python doc 2010-02-22 23:16:14 +01:00
Cédric Krier b5fb4d1ef3 Refactoring by validation with pylint 2010-02-18 18:50:35 +01:00
Cédric Krier 5a2baacef4 merge 2010-02-11 11:12:33 +01:00
Cédric Krier 0eea3a9afb Fix wording in doc and guidelines 2010-02-11 11:12:10 +01:00
Cédric Krier 6997fd60b2 Fix typo in sqlite database functions 2010-02-10 18:43:39 +01:00
Cédric Krier f042e76881 Modify ondelete attribute of Many2One according to required attribute value
"SET NULL" will be changed into "RESTRICT" if required is set.
2010-02-09 10:13:17 +01:00
Cédric Krier 6961c5c925 Fix typo 2010-02-08 09:36:32 +01:00
Cédric Krier ac9c532f41 Fix wrong initialisation type of _indexes in TableHandler of PostgreSQL
backend
2010-02-08 09:36:10 +01:00
Cédric Krier dbd73db28b Fix exec_pg_command_pipe to work on windows for issue1405 2010-02-03 17:36:44 +01:00
Cédric Krier a8c374617e Refactor import_data of ModelStorage thanks to h.goebel
- translate error message
- handle numeric, date, datetime, reference fields
- improve relation search, fail if too much is found
- add unittest
- add escapechar '\' for ',' in many2many list
2010-02-03 15:59:10 +01:00
Cédric Krier 4795d98d5d Use decorator for Cache 2010-02-03 15:32:58 +01:00
Cédric Krier 010ebcc33e Use generator expression to instanciate BrowseRecordList instead of list comprehensions 2010-02-03 15:31:21 +01:00
Cédric Krier 6aec5c64ab Don't put "OFFSET 0" for PostgreSQL backend
"OFFSET 0" adds a limit operation in query plan
2010-02-03 15:25:57 +01:00
Cédric Krier 0a9fae483f Return the same id when reading with default_get in Singleton 2010-02-03 15:23:19 +01:00
Cédric Krier 8369b484f3 Remove hardcoded True in SQL for issue1403 2010-01-30 00:17:49 +01:00
Cédric Krier 07e8939925 Raise exception when search function is missing on Function fields for issue1378 2010-01-26 12:15:35 +01:00
Cédric Krier 96f86dd0e9 Update COPYRIGHT 2010-01-24 00:21:58 +01:00
Mathias Behrle a5883ab6d6 Improve some tab descriptions for issue 1339 2010-01-23 02:06:01 +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 5832d1cca7 Improve pool restart if exception occurs in register_classes 2010-01-22 11:43:32 +01:00
Cédric Krier d9a22d2702 Remove user from context when bypassing rules 2010-01-21 21:03:29 +01:00
Cédric Krier d402ba4370 Use searched value in logging instead of csv one when failing to import
many2many for issue1389
2010-01-21 18:33:38 +01:00
Cédric Krier 989f6b4b98 Fix typo
_get_id -> get_id
2010-01-21 18:24:42 +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 d92cb527ae Use get_id of ir.model.data 2010-01-21 12:07:25 +01:00
Cédric Krier fcffeace74 Improve get_id of ir.model.data by adding context and use limit in search 2010-01-21 12:06:20 +01:00
Bertrand Chenal 6f5ca8b54a Add LRU memoization, use it to cache compiled code for safe_eval 2010-01-21 10:16:31 +01:00
Cédric Krier d818ee1a89 Fix typo in get_id 2010-01-20 18:13:30 +01:00
Cédric Krier bbe480fa21 Use list comprehensions for dictfetch* function of Cursor 2010-01-20 15:28:09 +01:00
Cédric Krier 5819e2cbe9 Better test to import json
There is an other json module for python < 2.6
2010-01-20 15:22:33 +01:00
Cédric Krier 5f7a1084c9 Use decorator for Cache 2010-01-20 15:18:16 +01:00
Cédric Krier f2d6d7b120 Remove json extras_require as it is install_requires 2010-01-20 12:31:57 +01:00
Cédric Krier 0128c0634e Fix typo 2010-01-20 11:26:38 +01:00
Cédric Krier 847fb72e90 Add PySON to replace python string evaluation on client side 2010-01-20 10:55:19 +01:00
Cédric Krier a964e4ac9e Add JSON-RPC 2010-01-20 10:33:44 +01:00
Cédric Krier 81fe0f6534 merge 2010-01-19 14:13:18 +01:00
Cédric Krier c9de75ede2 Fix test on _search_domain_active for XML-RPC for issue1380
Tuple in XML-RPC are list
2010-01-19 14:10:31 +01:00
Bertrand Chenal 574d7b6c4b Updated CHANGELOG 2010-01-19 12:52:55 +01:00
Bertrand Chenal 352ea00fca Merge 2010-01-19 12:40:29 +01:00
Bertrand Chenal 49a099e6c8 Add rules on sequences 2010-01-19 12:23:19 +01:00
Cédric Krier a65d5e1a27 Use the error message of the exception in import_data for issue1376 2010-01-18 23:44:10 +01:00
Cédric Krier 2a4b1977cf Fix wrong use of assertRaises and use assert 2010-01-17 21:22:00 +01:00
Cédric Krier 5c61502db0 Update init.sql according to models and guidlines 2010-01-16 14:28:40 +01:00
Cédric Krier 12b608d717 Add required=True to module on ir.module.module.dependency 2010-01-16 14:27:42 +01:00
Cédric Krier e8935a452f merge 2010-01-16 14:26:14 +01:00
Cédric Krier d68ec64069 Use column starting with "_" in alter_size to prevent naming collision 2010-01-16 14:25:05 +01:00
Cédric Krier 8112d78bdd Ignore Fields that starts with "_" 2010-01-16 14:24:26 +01:00
Bertrand Chenal 862986e9b2 Use itertools.chain to improve get on xxx2many 2010-01-14 15:29:33 +01:00
Cédric Krier 533968078a Fix import_data for field many2many for issue1373 2010-01-13 00:27:31 +01:00
Cédric Krier e86ab8a32a Fix typo in logging message 2010-01-12 13:15:48 +01:00