Ian Wilson
0e1569d93e
Change context to keyword argument, temporary fix for issue1776.
2010-12-04 09:49:16 -08:00
Cédric Krier
584f99a56e
Don't call super __getattr__ as object has not __getattr__
...
(transplanted from 71f994acf29607b653967015f3ec0c6aaea82c5f)
2010-08-23 23:55:01 +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