Commit Graph
43 Commits
Author SHA1 Message Date
Cédric Krier 54e6a8c2fe Use md5 hash for indexing translation for issue1898 2011-04-09 12:36:01 +02:00
Nicolas Évrard 792410f277 Added autocompletion on fields.Char 2011-03-30 17:20:31 +02:00
Cédric Krier 2fad5e05de Remove ir.default 2011-03-30 14:13:35 +02:00
Nicolas Évrard 6be61ac243 Transmit name of missing attribute 2011-03-28 13:36:45 +02:00
Cédric Krier 2d0d765b9d Test if attribute is callable before added as default method for issue1895 2011-03-15 10:48:38 +01:00
Nicolas Évrard 1766b36764 Add warning to wizards 2011-03-08 18:44:35 +01:00
Nicolas Évrard 7b62b8465e Added support for file name to BinaryField 2011-02-16 17:50:09 +01:00
Cédric Krier 2b4098f1d2 Add model field access 2011-01-22 23:56:13 +01:00
Cédric Krier c259187ab7 Add loading attribute on fields 2011-01-07 10:58:43 +01:00
Cédric Krier fd1d0e77a5 Don't convert ids for inherited methods for issue1776 2010-12-27 17:00:48 +01:00
Cédric Krier 0d1c43b6ed Add One2One field 2010-12-03 18:01:46 +01:00
Cédric Krier 0eefa10e5f Better fix for changeset 56b5ca09e88f and for issue1734 2010-10-20 19:29:20 +02:00
Cédric Krier c8df0f7893 Don't call twice default for inherited fields
Calling default for inherited fields make that we loose the ir.default values
from the inherited Model.
2010-10-19 22:30:29 +02:00
Cédric Krier 6c9fa7d2b0 Make default_get respect with_rec_name even with _default_on_change values for issue1704 2010-10-02 10:09:35 +02:00
Cédric Krier cb27804661 Don't call super __getattr__ as object has not __getattr__ 2010-08-23 23:55:01 +02:00
Cédric Krier df1fd283ac New transaction management
Remove cursor, user and context from methods and use Transaction instead
2010-08-19 22:01:12 +02:00
Cédric Krier 4513a8f8b9 Documentation refactoring 2010-05-08 14:22:26 +02: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
Cédric Krier b5fb4d1ef3 Refactoring by validation with pylint 2010-02-18 18:50:35 +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 8112d78bdd Ignore Fields that starts with "_" 2010-01-16 14:24:26 +01: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 7e50431794 Fix _getxxx2many_targets to return the right model name for many2many relation
for issue1195
2009-09-28 15:32:14 +02:00
Gour 486d46a405 fix typos for documentation (Model chapter) 2009-09-13 15:37:11 +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 9d5edc345d Add clean cache when xxx2many targets change 2009-08-20 14:41:00 +02:00
Cédric Krier bd02e85cee Don't use hardcoded true/false in SQL queries to be more database independant 2009-07-07 19:22:56 +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 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 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 7297d9687d Improve default when bad value type are stored in ir.value for issue816 2009-02-25 17:35:02 +01:00
Cédric Krier a4b9258b71 Rename _rpc_allowed into _rpc and add commit behavior 2009-02-25 12:25:01 +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 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 e190db88ae Add test on _columns before use it in query 2009-02-12 19:08:56 +01:00
Cédric Krier 0a8c560a06 Handle write_access on ir.model 2009-02-12 19:08:15 +01:00
Cédric Krier b75d10cd20 Use a new pool for object
Move workflow method in ModelWorkflow
Move workflow service in workflow module
Remove Service and LocalService
Remove web_service and use a dispatcher in protocols
New netrpc/xmlrpc syntax to be easier to introspect
2009-02-11 14:52:22 +01:00
Cédric Krier e28edc4d99 Add model.fields
Use better naming of field attributes
2009-02-03 18:58:25 +01:00
Cédric Krier 1196eaf293 Add modelstorage and modeldb 2009-02-02 13:08:25 +01:00
Cédric Krier 5218c3545f Add model 2009-01-29 19:22:03 +01:00