Commit Graph
59 Commits
Author SHA1 Message Date
Cédric Krier 4513a8f8b9 Documentation refactoring 2010-05-08 14:22:26 +02:00
Cédric Krier e8f50932e3 Don't validate Function fields without setter
It is a waste of resource to validate such Function fields because the value
doesn't depend on data users enter.
2010-03-27 15:58:31 +01:00
Cédric Krier e36c70ce3b searcher on Function fields take only one domain clause as argument 2010-03-23 11:22:31 +01:00
Cédric Krier cc6e750a2f Don't copy One2Many values if relation_field is not set for issue1448
If relation_field is not set then it is a function field and the copy method
will not link duplicated One2Many records to the new record.
2010-03-17 18:46:56 +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 dab0df51de export_data return empty value for invisible fields 2010-03-17 11:43:21 +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 8951e54c86 Add decimal digits validation on fields and fix Float and Numeric for lost of precision 2010-03-11 15:27:40 +01:00
Cédric Krier 89ad50e952 Improve exception handling in import_data 2010-03-10 20:41:59 +01:00
Cédric Krier b5fb4d1ef3 Refactoring by validation with pylint 2010-02-18 18:50:35 +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 010ebcc33e Use generator expression to instanciate BrowseRecordList instead of list comprehensions 2010-02-03 15:31:21 +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 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 847fb72e90 Add PySON to replace python string evaluation on client side 2010-01-20 10:55:19 +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
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 533968078a Fix import_data for field many2many for issue1373 2010-01-13 00:27:31 +01:00
Cédric Krier c24fbbaf80 Fix initialization of warning in import_data if exception is raised for
issue1337
2009-12-17 12:01:41 +01:00
Cédric Krier e2b54f0394 Fix search_read for issue1257 2009-11-08 00:29:06 +01:00
Cédric Krier ea9622d076 Use empty context for root user when validate records for issue1275 2009-11-05 11:29:47 +01:00
Cédric Krier b427d21224 Add new tool safe_eval 2009-09-28 11:21:11 +02:00
Cédric Krier 4fddb935d4 Call update only once per instance on trigger activation 2009-09-14 18:12:48 +02:00
Gour 486d46a405 fix typos for documentation (Model chapter) 2009-09-13 15:37:11 +02:00
Bertrand Chenal f4843866ed Removed required option to reflect db 2009-09-08 17:01:27 +02:00
Cédric Krier eb233dbe0f Always return at least 'id' in search_read 2009-09-07 11:18:22 +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 e1a4f404fd Add local cache on BrowseRecord for Function fields 2009-08-27 14:40:49 +02:00
Cédric Krier 477afe1dad Don't call __clean_xxx2many_cache if there was no ids 2009-08-25 17:16:53 +02:00
Cédric Krier 9d5edc345d Add clean cache when xxx2many targets change 2009-08-20 14:41:00 +02:00
Cédric Krier c5c72b9724 Clean also _language_cache in write and delete 2009-08-13 16:56:53 +02:00
Cédric Krier 768e98e26a Move BrowseRecord cache onto the cursor 2009-08-11 11:13:14 +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
Cédric Krier af9ad2664b Add validate test for required and size
Handle many2one with id = 0
2009-07-07 19:34:05 +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 cad4ec1641 Add missing import logging for issue1073 2009-06-04 00:11:42 +02:00
Cédric Krier 470777919e Fix default_sequence when sequence is inherited 2009-05-27 20:43:00 +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 55f67eb90f Fix rec_name to check also in inherited fields for issue944 2009-04-07 19:05:41 +02:00
Cédric Krier 5bea0e79fb Change get_error_args into method 2009-04-06 12:10:11 +02:00
Cédric Krier 3c5da3114d Fix copy to not copy fields from inherits for issue932 2009-04-05 18:12:11 +02:00
Cédric Krier eaeb6be83b Improve get_rec_name to use id if _rec_name doesn't exist 2009-04-05 18:08:09 +02:00
Cédric Krier 89baf71cf7 Remove unuseful restart of ir.rule.domain_get 2009-03-20 01:41:35 +01:00
Cédric Krier 40f8c7553d Modify Many2Many to use a model to store relations instead of a named table. 2009-03-05 14:50:44 +01:00
Cédric Krier 65d0a9494b Update model documentation.
Use autodoc in sphinx
Add missing and fix docstring
2009-03-01 13:37:31 +01:00