Commit Graph
23 Commits
Author SHA1 Message Date
Cédric Krier 7910cc6fff Fix domain on many2one with '.' on fields with search function 2009-03-25 18:24:37 +01:00
Cédric Krier 129f8f8308 Add read_error and write_error message when trying to read/write on records
that don't exist anymore for issue897
2009-03-25 12:51:51 +01:00
Cédric Krier c1a7b5b176 Remove AccessError and use raise_user_error to have translation 2009-03-25 12:18:34 +01:00
Cédric Krier 19f903ca88 Add update history table at the end of modules loading for issue888 2009-03-24 19:14:46 +01:00
Cédric Krier 2cb7f564ca Don't call search with all arguments as we don't know the operator 2009-03-23 18:34:15 +01:00
Cédric Krier e7c6d444a2 Add with_rec_name option to default_get to improve creation of records 2009-03-19 11:02:07 +01:00
Cédric Krier 806645e038 Add missing super call in create of ModelSQL 2009-03-19 00:10:40 +01:00
Cédric Krier 3f147dc197 Fix creation of missing columns in history table 2009-03-18 18:09:11 +01:00
Cédric Krier 3a653fafb3 Fix child_of on Many2Many for new relation_name 2009-03-18 16:47:34 +01:00
Cédric Krier 3cc8b4727d Fix creation of table to use the right sequence name 2009-03-17 22:38:41 +01:00
Cédric Krier 044ecd61f8 Fix the history table creation
- create missing field added by others modules for issue857
- don't update history record with default value
2009-03-12 15:52:44 +01:00
Cédric Krier 8a4e9a5caa Replace "_history_table" by a boolean "_history" and construct the history
table name by appending "__history" to the table name.
2009-03-05 18:45:34 +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 5a507e23e7 Add quotes arround table name even in column name 2009-03-05 14:45:50 +01:00
Cédric Krier f2a4986d29 Remove symbol_c as we will use only backend with Python Database API Specification v2.0
Rename symbol_f into sql_format
2009-03-02 14:49:09 +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 c5e6230ea2 Don't translate rec_name field 2009-02-26 00:44:41 +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 9bd91ec4e6 Fix add_null in SQL query for issue795 2009-02-18 19:46:47 +01:00
Cédric Krier c16d5baca4 Clean up values from default_get for related fields 2009-02-17 12:08:58 +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 6f1697771e Fix _update_tree to take care of IN_MAX for issue771 2009-02-12 11:55:19 +01:00
Cédric Krier 316b0f76db Rename ModelDB int ModelSQL 2009-02-12 11:33:39 +01:00