Cédric Krier
e0b995abbe
Refactore configuration to allow easy extention
...
issue3627
review7401002
2014-09-03 23:32:01 +02:00
Cédric Krier
6765a12e5a
Add add_remove alias on Many2Many for compatibility with One2Many
...
issue4112
review5511002
2014-09-01 12:53:32 +02:00
Cédric Krier
349fc51a7f
Use the context of the relation field for instanciation
...
issue4098
review13461002
2014-08-29 16:49:09 +02:00
Cédric Krier
40df019a5e
merge
2014-08-19 14:51:23 +02:00
Sergi Almacellas Abellana
c2de992751
Avoid updating mptt tree when parent field hasn't been modified
...
issue4095
review6451002
2014-08-06 12:13:29 +02:00
Guillem Barba
1301551515
Use repr() to show value in digits_validation_error message
...
issue4083
review5471002
2014-08-04 18:19:55 +02:00
Cédric Krier
cd2ac5c1b1
Add translated descriptor for Selection field
...
issue3679
review10401002
2014-08-04 16:50:59 +02:00
Cédric Krier
2b5e337553
Missing loading attribute in Function.__copy__
...
and remove useless deepcopy of string attributes.
review11391002
2014-08-01 10:20:32 +02:00
Cédric Krier
ae4224c16b
Remove wrong docstring for table_query
...
The right one is in the documentation.
2014-07-29 11:07:15 +02:00
Sergi Almacellas Abellana
fd7c510ce4
Add grouped_slice helper and use it.
...
issue3516
review10301002
2014-07-17 18:53:05 +02:00
Cédric Krier
b19d919d15
On restore_history select the record with highest __id
...
issue3861
review13391002
2014-07-09 00:26:31 +02:00
Cédric Krier
fc2fa94e1c
Missing migration to ModelData.load_values in check_xml_record
...
issue3918
review5421003
2014-06-28 14:57:12 +02:00
Cédric Krier
e339a57b3e
No need to use context in the key of _view_toolbar_get_cache
...
Cache already use by default the context to generate the key.
issue3993
review13351002
2014-06-22 17:18:01 +02:00
Cédric Krier
68c34c203a
Add name to union_column to ease override
...
The current union_column uses the field.name to get the union_field, it works
correctly but prevent to implement by override a clean mapping transformation of
name between the union and the models. Indeed it is doable by passing an other
field but then we could potentially lost the automatic sharding.
issue3992
review13331003
2014-06-22 17:11:06 +02:00
Cédric Krier
7218f5d42a
On historied search select the record with highest __id
...
issue3861
review11271002
2014-06-22 16:56:08 +02:00
Cédric Krier
38360583d2
Fix SQLite Numeric domain value for None
...
issue3930
review11281002
2014-06-13 19:11:44 +02:00
Cédric Krier
8155f13880
Set also _parent_ field in fields.depends
...
issue3978
review8441002
2014-06-09 18:07:44 +02:00
Cédric Krier
baf21adf7f
Improve validation of PYSON domain
...
Group the validation of PYSON domain by evaluated domain.
issue3948
review5351003
2014-06-08 00:41:57 +02:00
Cédric Krier
e740b5f432
Remove on_change call from default_get
...
The on_change call doesn't work for xxx2many fields, so it is moved on the
client side where it is properly managed.
issue3923
review6301002
2014-06-08 00:33:31 +02:00
Cédric Krier
3f8d858c01
Add UnionMixin
...
issue3906
review8341002
2014-06-08 00:26:57 +02:00
Cédric Krier
814b1d2ea5
Ensure ids clause is a list for concatenation
...
issue3949
review11281006
2014-06-08 00:18:55 +02:00
Sergi Almacellas Abellana
f55e2c07d2
Fix KeyError when raising digits validation error.
...
issue3970
review8411002
2014-06-06 19:15:03 +02:00
Nicolas Évrard
f7133b8670
Use total_ordering
...
issue3884
review8291003
2014-06-06 13:26:44 +02:00
Nicolas Évrard
d83fc99f35
Allow to register different type for json/xmlrpc encoding/decoding
...
issue3839
review5021003
2014-06-06 12:57:27 +02:00
Cédric Krier
03801d399a
Allow to disable sorting of dictionary field's selection
...
issue3605
review2821002
2014-05-30 16:31:17 +02:00
Cédric Krier
67dfdc6a99
Make global cache depends on explicit context keys
...
This should prevent the invalidation of the cache when the context keys that are
changed has no influence onn the global cache.
issue3905
review6291002
2014-05-22 23:36:00 +02:00
Cédric Krier
360d1232fa
Fix joins when ordering on ir.model.field
...
issue3910
review10311002
2014-05-17 18:41:20 +02:00
Cédric Krier
169b41e0b3
Allow to set a tuple model, dictionary for Reference field
...
issue3902
review9321002
2014-05-10 20:28:58 +02:00
Cédric Krier
1abe24ce34
Add MachMixin
...
issue3867
review5271002
2014-05-09 23:16:19 +02:00
Cédric Krier
22899c33e2
Set relation_field of one2many only when exists
...
The client use this value if it exists for string concatenation, so having None
fails.
2014-05-09 14:52:30 +02:00
Cédric Krier
5c00bf48bf
Set relation_field only if there is no ambiguity
...
issue3899
review6271002
2014-05-09 14:37:30 +02:00
Cédric Krier
a0093e8899
Copy the original field definition
...
To prevent side-affect with mutable attributes.
issue3814
review4821002
2014-05-06 22:42:42 +02:00
Cédric Krier
3d556a69f0
Always write modified record of xxx2many
...
Even if the record is already added to the xxx2many field, it can be modified.
issue3855
review5181002
2014-04-18 19:31:47 +02:00
Cédric Krier
eada306375
Always validate field that depends on Function fields
...
As it is not possible to know if a Function field has changed, field that
depends on it must always be validated.
issue3829
review4901003
2014-04-12 23:48:13 +02:00
Cédric Krier
c08724f2ef
Don't stop setting Many2Many if first values is empty
2014-04-11 15:41:55 +02:00
Cédric Krier
9dbc025011
Add restore_history to ModelSQL
...
issue3456
review1441003
2014-03-18 20:07:03 +01:00
Cédric Krier
6d1be2574b
Allow to customize field column and fix numeric search for SQLite
...
issue3733
issue3648
review4421002
2014-03-18 19:59:04 +01:00
Cédric Krier
335b0b6851
Add history revisions
...
issue3678
review3551002
2014-03-18 19:54:32 +01:00
Cédric Krier
7c151984e0
Let raise user error in import_data
...
issue3767
review4441002
2014-03-18 19:49:51 +01:00
Cédric Krier
5082be317a
Fix wrong Concat in the translation join for ir.model
2014-03-18 16:24:23 +01:00
Nicolas Évrard
498bc47097
Use create multi in import_data
...
review3011003
2014-03-16 20:45:12 +01:00
Cédric Krier
9d1dc45b6e
Skip domain validation for Dict field
2014-03-16 15:30:13 +01:00
Cédric Krier
20028f86ec
Fix wrong assumption to compute relations in domain validation
2014-03-16 15:28:53 +01:00
Cédric Krier
f72b983c0f
Check relation access in fields_get and for default fields in read
...
issue3750
review4261002
2014-03-15 11:01:14 +01:00
Cédric Krier
a130816cbd
Add support of domain for non-relation field
...
issue3743
review4181002
2014-03-15 10:44:45 +01:00
Cédric Krier
88a4bce42d
Ensure to read the last history record
...
history records for the same id could have the exact same timestamp so to always
read the same record, the last one inserted is used by ordering on __id.
issue3741
review4161002
2014-03-10 20:26:56 +01:00
Cédric Krier
97ad256c00
Add unique filter on the cache ids in ModelStorage.__getattr__
...
_ids must be kept with duplicates because it is important to keep the right
order/proximity of records in the cache. But when reading the values, the ids
must be filtered to be unique to not read it twice.
issue3710
review3781003
2014-02-25 19:12:02 +01:00
Cédric Krier
66a5f7b6f4
When saving record don't store target link for one2many to create
...
When saving an instance if the relation field of a one2many item is set, it
should not try to save it as it will be replaced by the current record. And in
the worst case, the target set could not be valid and so it prevents to store
the instance which doesn't need of this target.
issue3501
review3601003
2014-02-24 19:20:47 +01:00
Cédric Krier
2680d1b746
Use a sequence of ids, values to set fields
...
review3331003
2014-02-24 19:15:57 +01:00
Cédric Krier
19f3ab64cb
Fix error message "foreign_model_exist"
...
The value argument has no meaning for this error message and the way it is
retreived in changeset dbbbe6cae2bb is buggy.
review3381002
2014-02-14 00:22:45 +01:00