Cédric Krier
def7d53339
Don't rename table from first join and add missing arguments in _order_calc
2010-12-27 16:25:30 +01:00
Cédric Krier
0d1c43b6ed
Add One2One field
2010-12-03 18:01:46 +01:00
Cédric Krier
9f3986e7e3
Add values for all fields_names when singleton doesn't exist
2010-12-03 17:23:51 +01:00
Cédric Krier
3f8c99df6a
Fix get_eval for BrowseRecordList to return list of id
2010-12-02 14:05:58 +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
f8eae466e5
Return _timestamp as string for issue1715
2010-10-11 13:20:09 +02:00
Cédric Krier
400817acbb
Improve speed for ir.property and reference fields for issue1623 and issue1631
2010-10-06 20:09:01 +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
b356807909
Set translation on create for issue1694
2010-09-30 19:59:14 +02:00
Cédric Krier
815f7e961e
Fix global name 'user' not defined for issue1699 thanks to paul
2010-09-20 19:06:04 +02:00
Cédric Krier
63e7f29f6e
Fix search on many2many with negate operator
2010-09-03 23:37:31 +02:00
Cédric Krier
a325aebe77
Fix search on many2many with a string as value
2010-09-03 14:27:49 +02:00
Cédric Krier
2f75c6cc48
Use fetchmany instead of limit
...
It is faster on large data sets
2010-09-02 17:59:33 +02:00
Cédric Krier
aa5816be0f
Move Cache in trytond.cache and convert outside tools for issue1653
2010-08-24 20:54:27 +02:00
Cédric Krier
e186d5b76d
Skip non ModelStorage from foreign key operations
2010-08-23 23:56:56 +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
8fd9f09b72
Use explicit AS column name in queries that use dictfetch*
...
SQLite return wrong column name when using query as table
2010-07-15 19:00:21 +02:00
Cédric Krier
092196ba4b
Fix wrong value passed to super call
2010-07-15 18:58:26 +02:00
Cédric Krier
483afed26a
Catch only Exception according to PEP 352
2010-07-08 19:53:39 +02:00
Cédric Krier
f7aebd99be
Fix _clean_defaults for one2many inherited
2010-06-28 21:25:33 +02:00
Cédric Krier
1ec9aad435
Always check on delete restrict for issue1588
2010-06-17 20:05:59 +02:00
Cédric Krier
e75ba6b112
Fix history clause error introduced by changeset 7f5860ab74cb
2010-06-12 20:16:25 +02:00
Cédric Krier
1503aa3112
Make _timestamp numeric instead of datetime to work with XML-RPC and JSON-RPC
2010-06-09 19:58:31 +02:00
Cédric Krier
7cd8a5d963
get_eval must return a list of id for O2M for issue1572
2010-06-03 19:47:13 +02:00
Cédric Krier
1513426987
Add ir.trigger to trigger ModelStorage change
2010-05-29 15:58:49 +02:00
Cédric Krier
3b84b5c3de
Add default value to Boolean fields at database level
2010-05-28 20:18:34 +02:00
Cédric Krier
4513a8f8b9
Documentation refactoring
2010-05-08 14:22:26 +02:00
Cédric Krier
8a13a179ce
Fix string when adding raw column on history table for issue1515
2010-04-13 20:14:10 +02:00
Cédric Krier
e50c1897ad
Don't use offset in second query of search for issue1496
...
The order between the first query is not necessary the same then the second
one so using an offset can generate missing or duplicated ids in the result.
2010-04-10 13:56:47 +02:00
Cédric Krier
e8f50932e3
Don't validate Function fields without setter
...
It is a waste of resource to validate such Function fields because the value
doesn't depend on data users enter.
2010-03-27 15:58:31 +01: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
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
Brice V.
5e2a7de385
Fix typo on field types for issue1451
2010-03-18 10:33:59 +01:00
Cédric Krier
cc6e750a2f
Don't copy One2Many values if relation_field is not set for issue1448
...
If relation_field is not set then it is a function field and the copy method
will not link duplicated One2Many records to the new record.
2010-03-17 18:46:56 +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
dab0df51de
export_data return empty value for invisible fields
2010-03-17 11:43:21 +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
8951e54c86
Add decimal digits validation on fields and fix Float and Numeric for lost of precision
2010-03-11 15:27:40 +01:00
Cédric Krier
89ad50e952
Improve exception handling in import_data
2010-03-10 20:41:59 +01:00
Cédric Krier
f535736b80
Add test on tag when applying inherit view for issue1435
...
data can contain elements that are comments
2010-03-03 18:37:26 +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
a8c374617e
Refactor import_data of ModelStorage thanks to h.goebel
...
- translate error message
- handle numeric, date, datetime, reference fields
- improve relation search, fail if too much is found
- add unittest
- add escapechar '\' for ',' in many2many list
2010-02-03 15:59:10 +01:00