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
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
fef5ee826c
Enforce that every fields have a non-empty string
2010-03-25 12:52:05 +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
5db2dc4025
Models that uses _inherits will search in inherited parents for missing functions
...
This will prevent the needs to define on_change_* function and button method
in the child Model. In case of diamond problem, it is the first parent in the
dictionary that will be taken.
2010-03-19 15:17:50 +01:00
Cédric Krier
ec8907e04d
Fix on_change_* call in _default_on_change
2010-03-19 09:51:41 +01:00
Brice V.
5e2a7de385
Fix typo on field types for issue1451
2010-03-18 10:33:59 +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
84b0c7ebbf
Allow to have boolean as states value
2010-03-17 17:54:16 +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
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
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
f535736b80
Add test on tag when applying inherit view for issue1435
...
data can contain elements that are comments
2010-03-03 18:37:26 +01:00
Cédric Krier
b5fb4d1ef3
Refactoring by validation with pylint
2010-02-18 18:50:35 +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
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
0a9fae483f
Return the same id when reading with default_get in Singleton
2010-02-03 15:23:19 +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
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
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
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
e8935a452f
merge
2010-01-16 14:26:14 +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
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
Ian Wilson
2d22a6dadf
Add index to improve performance of sorting subsequences for issue1372
2010-01-10 16:18:15 -08:00
Cédric Krier
dfa3680035
Fix default_get
...
Loop on keys instead of dictionary which can change
Add test on _columns before using it
2010-01-05 14:10:03 +01:00
Cédric Krier
106419b26e
Fix create on many2many
...
Create the target record before creating the relation record
2010-01-05 14:07:33 +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
e2f80d378c
Add timestamp field in backend
...
Improve validation of DateTime values
2009-11-10 14:00:13 +01:00
Cédric Krier
e2b54f0394
Fix search_read for issue1257
2009-11-08 00:29:06 +01:00
Cédric Krier
5b3e41f0ab
Prevent key error in BrowseRecord with big cache
2009-11-06 16:58:31 +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
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