Cédric Krier
58c81ee328
Add rich comparison methods on Model
...
review1027002
2013-08-21 18:02:30 +02:00
Nicolas Évrard
27ccf989a5
Add tests on fields.Binary
...
review1017002
2013-08-16 11:08:44 +02:00
Nicolas Évrard
c1e77c77eb
Fix binary size handling migration to Active Record
...
review1017002
2013-08-16 11:07:44 +02:00
Cédric Krier
52a8141bda
Remove validation of unused XML attributes
...
Those XML attributes are no more allowed in XML.
The domain is not only allowed in dashboard and it is not a field domain.
issue3310
review986002
2013-08-01 16:09:41 +02:00
Cédric Krier
fc88a03955
Fix recursion_error message when parent is many2many
...
issue3290
review977002
2013-07-22 14:32:20 +02:00
Cédric Krier
85fbe14011
Fix Reference search on Function field
...
review945002
2013-07-04 19:30:28 +02:00
Cédric Krier
6c97a9ea7e
No need to change user to validate
...
Validation of record should not depend on the user.
review948002
2013-07-04 19:28:27 +02:00
Nicolas Évrard
86dfd60769
Fix child_of in referenced search on Many2One and Reference fields
...
review953002
2013-06-27 17:24:41 +02:00
Cédric Krier
b669732728
Reduce IN_MAX by number of columns in UNIQUE validation
...
issue3230
review934002
2013-06-22 00:23:19 +02:00
Antoine Smolders
c98af564f6
Add calendar view
...
review398003
2013-06-09 20:14:14 +02:00
Cédric Krier
d86b984753
Fix domain concatenation between list and tuple
2013-06-01 00:17:33 +02:00
Cédric Krier
56fc82d954
Set correct instanciate for selection_change_with
...
issue3223
review886002
2013-06-01 00:10:30 +02:00
Cédric Krier
8710f2fd99
Fix Pool.setup to re-allow extra_depends behavior
...
review898002
2013-05-27 18:47:00 +02:00
Cédric Krier
5243a43d73
Fix validation of domain for One2One fields
...
issue3206
review852003
2013-05-18 19:13:12 +02:00
Cédric Krier
929c2c135d
Allow None in child_of operator
...
issue3190
review844002
2013-05-04 11:44:15 +02:00
Cédric Krier
459902908e
Fix ir_translation clause on res_id
...
Since changeset 3e12e07af677, res_id is NULL instead of 0.
issue3161
review805002
2013-04-17 17:44:34 +02:00
Jean CAVALLO
25fea393a8
Fix model.fields_get for Function(Dict) fields
...
issue3147
review792002
2013-04-16 15:58:03 +02:00
Cédric Krier
2e8ec5f5df
Replace SPLIT_PART by SUBSTR and POSITION
...
SPLIT_PART is not a standard SQL function (it is not supported by MySQL).
SUBSTR is used even if it is not standard SQL because SUBSTRING is not
supported by SQLite. This will change once we will migrate to python-sql.
review784002
2013-04-14 23:17:55 +02:00
Cédric Krier
3492e90308
Use None instead of False in ModelStorage.copy
2013-04-14 23:17:07 +02:00
Ralf Peschke
9c6ff8c0e0
Use value instead of record instance on import_data
...
Importing records with m2o- and m2m-relations import_data gives record instances
to the create-method of the object instead of record-id's. Creating the same
object using the GUI the client gives record-id's.
On error the record-instances can't be serialized by JSON and the common error
"500 internal server error" will be reported to the client
issue3124
review767002
2013-04-13 11:07:33 +02:00
Ralf Peschke
2956c8c068
Fix: on import_data zero values shouldn't be converted to None
...
import_data method converts zero values to None. As a consequence such records
don't pass the required constraint for such fields
issue3136
review779002
2013-04-13 10:28:07 +02:00
Cédric Krier
68d7948b10
Add missing reference origin clause when search on xxx2many
...
review770002
2013-04-08 23:52:05 +02:00
Pierre-Louis Bonicoli
b5245c82e1
View: remove encoding declaration (fix lxml usage)
...
issue3119
review765002
2013-04-08 10:57:39 +02:00
Cédric Krier
83eee68713
Fallback to order by id when ordering Many2One
2013-04-01 16:57:02 +02:00
Cédric Krier
2fc5214e4f
Remove left/right check on create
...
It was introduced in changeset c7804c288ca3 but tools like proteus will set the
value on creation because there is a default value on such field as they are
required. So such test is not doable on creation.
issue3019
2013-03-21 21:40:10 +01:00
Cédric Krier
15961b9e67
Allow to search on target of Reference field
...
review716002
2013-03-21 18:20:39 +01:00
Cédric Krier
a95ae0dad9
Remove _inherits
...
review670002
2013-03-20 22:49:16 +01:00
Cédric Krier
a8755c51ea
Fix uninitialized new_records in ModelStorage.copy
2013-03-17 00:17:19 +01:00
Cédric Krier
84240b78c3
Add dynamic label and prefix, suffix on tree view
...
review689003
2013-03-15 21:44:22 +01:00
Cédric Krier
b7ab51697b
Fix check of _sql_error_messages
2013-03-12 11:47:14 +01:00
Cédric Krier
18e7ff87c3
clear _values before save values
...
This is to allow to use the instance passed to write and then having the real
stored values.
review707002
2013-03-12 10:34:14 +01:00
Albert Cervera i Areny
25463800c9
Replace _constraints with validate in ModelStorage and improve user messages.
...
issue2616
review371002
2013-03-07 16:53:19 +01:00
Cédric Krier
1887c2c564
Enforce usage of None instead of False
...
review685002
2013-03-05 10:33:18 +01:00
Cédric Krier
10b2b5cfda
Fix check of _sql_error_messages
...
issue3021
review682002
2013-03-04 21:30:17 +01:00
Cédric Krier
5e01f5c068
Fix flake8
2013-02-27 22:50:31 +01:00
Cédric Krier
2af1936eb1
Ensure the existing record are always set on xxx2many
...
review662005
2013-02-23 18:29:14 +01:00
Cédric Krier
690c066c35
Add documentation for Dict field and standardize options
...
review672003
2013-02-23 18:26:01 +01:00
Cédric Krier
63a2b16aa9
Fields with set was not always called since new create API
...
review668003
2013-02-15 19:24:22 +01:00
Cédric Krier
5a3568fd31
Fix strip as selection could be str or unicode
...
issue2978
review668002
2013-02-11 10:38:51 +01:00
Cédric Krier
3cb9f0468f
Always update attributes and store view per id
...
This is needed to allow the client to choose the right view when the same field
is displayed multiple times with different views.
review656002
2013-02-05 19:31:22 +01:00
Cédric Krier
d49fb4318d
Add selection_change_with on Selection and Reference fields
...
review587002
2013-02-05 19:06:16 +01:00
Cédric Krier
b2d11b6df5
local_cache and model2ids must depend on datetime
...
review650002
2013-02-04 20:08:10 +01:00
Cédric Krier
60d4e28911
Fix copy when relation field is a Reference
...
review654003
2013-02-04 20:02:37 +01:00
Cédric Krier
fd01a724f8
Add Dict fields
...
review501007
2013-01-26 15:18:41 +01:00
Cédric Krier
8e248e9922
Fix wrong access check read -> write
...
Typo introduced in changeset cc8493263998
2013-01-21 12:46:24 +01:00
Cédric Krier
d5ba4e67c0
Call only once _save_values in ModelStorage.save
2013-01-20 14:16:32 +01:00
Albert Cervera i Areny
30b1403cdc
Use a list of dictionaries in create().
...
issue2358
review266002
2013-01-06 22:18:13 +01:00
Cédric Krier
0c577dd660
Improve getattr lookup in fields.Function.get
...
review612003
2012-12-23 22:58:13 +01:00
Cédric Krier
ec554ef6b3
Fix read relate value when id is 0
...
review618002
2012-12-23 22:56:09 +01:00
Albert Cervera i Areny
ec1761ddca
Use None instead of False in ModelSingleton
...
issue2932
review617002
2012-12-16 23:54:41 +01:00