Commit Graph
73 Commits
Author SHA1 Message Date
Cédric Krier 88393ba7ee Fix read related fields that uses datetime_field 2009-04-21 10:59:40 +02:00
Cédric Krier 5b3f3d3e3c Fix searching foreign keys when they are created in the transaction for
issue985
2009-04-14 14:50:50 +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 78c675d07d Backed out changeset 2d767984995d 2009-04-09 11:11:11 +02:00
Cédric Krier d5cd2acdc9 Use root user to create workflow.instance for issue958 2009-04-08 22:27:37 +02:00
Cédric Krier 1a10e5ffaa Fix warnings for python 2.6 for issue915 2009-04-08 17:55:24 +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 a352575ef0 Catch _sql_constraints and _sql_error_messages in ModelSQL instead of
dispatcher
2009-04-07 18:59:00 +02:00
Cédric Krier 0e5d32cb24 Move check of deleting workflow.instance on ModelWorkflow 2009-04-07 18:33:48 +02:00
Cédric Krier 48d1d2e73c Add better error message for DatabaseIntegrityError for foreign key required
Add delete of foreign keys with ondelete CASCADE
Add write for foreign keys with ondelete SET NULL
2009-04-07 18:25:15 +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 29ac6aceaf Add better error message for DatabaseIntegrityError for missing foreign key 2009-04-06 12:33:02 +02:00
Cédric Krier 8e74f944c8 Add better error message for DatabaseIntegrityError for fields required 2009-04-06 12:15:32 +02:00
Cédric Krier 5bea0e79fb Change get_error_args into method 2009-04-06 12:10:11 +02:00
Cédric Krier be62ccda80 Remove create_xxx, write_xxx fields from default value in create function 2009-04-05 18:23:22 +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 cc950957e0 Remove inherit field from result if it is not used 2009-04-05 18:11:18 +02:00
Cédric Krier 00bfaf5199 Don't create inherit record if value is also in base model and if it is a
function field.
2009-04-05 18:10:25 +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 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
Cédric Krier bff08aa243 Fix search domain with child_of on empty list and field with left and right 2009-03-31 13:46:51 +02:00
Cédric Krier b1e07ec438 Use 'OR' for 'IS NULL' clause with 'like' operator 2009-03-30 10:40:40 +02:00
Cédric Krier 68ca60ecd9 Fix "not like" and "not ilike" operator for issue423
Security fix SQL injection
2009-03-30 10:20:31 +02:00
Cédric Krier e4a750d569 Fix the table name of the second join with inherit fields in order_calc 2009-03-27 12:18:12 +01:00
Cédric Krier bef5580bd9 Add missing quote in order_calc 2009-03-27 12:17:32 +01:00
Cédric Krier 3f376ad318 merge 2009-03-27 11:55:09 +01:00
Cédric Krier 76908bc18d Enforce uniq name of table alias in join for order statements 2009-03-27 11:54:34 +01: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 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 89baf71cf7 Remove unuseful restart of ir.rule.domain_get 2009-03-20 01:41:35 +01:00
Cédric Krier e8b88eb2df Add default value False for boolean 2009-03-19 14:27:43 +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 faca58999b Fix default value for _context in BrowseRecord 2009-03-05 19:43:10 +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