Commit Graph
42 Commits
Author SHA1 Message Date
Cédric Krier 4513a8f8b9 Documentation refactoring 2010-05-08 14:22:26 +02: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 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 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 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 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 847fb72e90 Add PySON to replace python string evaluation on client side 2010-01-20 10:55:19 +01:00
Bertrand Chenal 862986e9b2 Use itertools.chain to improve get on xxx2many 2010-01-14 15:29:33 +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 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 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 6a4db22800 Remove use of old args 2009-09-30 19:01:55 +02:00
Cédric Krier b427d21224 Add new tool safe_eval 2009-09-28 11:21:11 +02:00
Gour 486d46a405 fix typos for documentation (Model chapter) 2009-09-13 15:37:11 +02:00
Cédric Krier f4568e0cde Factorise code by adding get_cache function on Cursor. 2009-09-07 15:34:04 +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 45914073bf Use faster join implementation:
- use generator when possible
- use tuple __mul__
2009-08-26 15:39:53 +02:00
Cédric Krier 27f67ccfd5 Store ids found in Reference to prevent to search many times for the same 2009-08-07 16:39:40 +02:00
Cédric Krier 5fc6482651 Remove unnecessary ordered result for search that check existance 2009-08-07 13:34:31 +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
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 567d925ada Add delete_all action on One2Many field 2009-06-18 18:46:48 +02:00
Cédric Krier b652a1b69a Improve docstring of domain on Field 2009-05-22 18:33:36 +02:00
Cédric Krier d63ba876cc Limit ondelete to 'CASCADE', 'RESTRICT' and 'SET NULL'
Change ondelete to upper case
2009-04-07 18:20:25 +02:00
Cédric Krier a50899cb56 Use read instead of browse in Many2Many for performence 2009-04-02 00:37:05 +02:00
Cédric Krier e66da8ad87 Add missing order param on One2Many 2009-04-02 00:36:31 +02:00
Bertrand Chenal b87f41a3d9 Add missing _table usage 2009-03-26 10:52:40 +01:00
Bertrand Chenal 14f638b7e0 Use _table of models for query construction 2009-03-26 10:27:16 +01:00
Bertrand Chenal 301bd86a21 Added search method on property field 2009-03-25 18:34: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
Cédric Krier bd9df98fe7 Store a copy of selection if possible for issue810 2009-02-25 12:41:20 +01:00
Cédric Krier 0b6c5f4114 Add datetime_field in fields_get
Add datetime_field in depends of Many2One
2009-02-23 13:27:21 +01:00
Cédric Krier 3706e76e99 Add _history_table on ModelSQL to historize change on records
Use _datetime in context to read record value at specific datetime
Add datetime_field on Many2One to use a specific _datetime when reading the
related record
2009-02-23 11:27:36 +01:00
Cédric Krier 66f0ada474 Allow to use related fields (many2one and reference) in read
Use rec_name function field instead of name_get and name_search
Remove get function on many2one field
Don't put record name in reference field
Handle rec_name in default_get so default value for many2one are now only id
2009-02-17 11:40:31 +01:00
Cédric Krier e28edc4d99 Add model.fields
Use better naming of field attributes
2009-02-03 18:58:25 +01:00