Commit Graph
453 Commits
Author SHA1 Message Date
Cédric Krier bc1215af41 Fix history search to remove only past deleted records
review1481002
2013-11-05 17:20:08 +01:00
Cédric Krier 3f5dba2235 Add relation_field for many2one
issue3173
review1201002
2013-10-27 19:31:36 +01:00
Cédric Krier 51abc3fb62 field_childs in generated view must be None instead of False
issue3403
2013-10-08 20:26:29 +02:00
Cédric Krier 478fad1001 Don't create translation for field with a "set" method
review1120002
2013-10-06 11:59:31 +02:00
Cédric Krier 20bb98ec44 Fix wrong name collision fix introduced in changeset 1dd74c6f22e7 2013-10-06 10:23:06 +02:00
Cédric Krier 5ad27258fd Fix flake8 2013-10-05 18:18:42 +02:00
Cédric Krier ce946dcde0 Fix ModelSingleton when reading rec_name via default values
review1114003
2013-10-05 18:04:44 +02:00
Cédric Krier e9401fc8d3 Reference field should contain model in EvalEnvironment
review1101002
2013-09-30 18:18:24 +02:00
Albert Cervera i Areny a7558e4e14 Check if order_* is overriden in Many2One fields
review1091002
2013-09-25 10:53:16 +02:00
Cédric Krier e403e8bc95 Remove old test in write to update MPTT for only one record at a time 2013-09-23 00:10:33 +02:00
Cédric Krier b03788e6db Fix duplicate translations
- Fix unique constraint by using -1 instead of NULL for res_id
- Clean duplicate entries in po file

The unique constraint was not working when res_id was NULL because SQL consider
all of them as different.

The migration could fail if there is duplicate translation in the database. So
this query must be run until no more records are deleted:

DELETE FROM ir_translation WHERE id IN (SELECT MAX(id) FROM ir_translation GROUP BY name, res_id, lang, type, src_md5, module HAVING COUNT(1) > 1);

issue3355
review1087004
2013-09-22 14:33:39 +02:00
Cédric Krier 1a8c5aae1c Fix check timestamp and add unittest
review1087003
2013-09-22 14:28:46 +02:00
Nicolas Évrard c52889a1d2 Do not take into account active field when doing domain validation
review908002
2013-09-17 17:14:14 +02:00
Cédric Krier fc6c6cfdda Migration to python-sql
* Use python-sql
* Add convert_domain method on Fields
* Add sql_format and sql_type methods on Fields
* Allow to return a full domain for Function.searcher
* Replace static backend by dynamic get method
* Replace order_field by order_<field name> method

review1001002
2013-09-06 22:32:37 +02:00
Udo Spallek d798452aae Allow field One2One in check_recursion.
issue3347
review1048002
2013-09-04 12:35:02 +00:00
Cédric Krier 0210370575 Improve MPTT
- Remove the order on MPTT
- Make room with queries using left/right instead of ids
- Call _update_tree multiple times for small list instead of rebuild the all
  tree
- Improve test for with many roots
- Factorize the test to update MPTT

issue1892
review1007002
2013-09-03 10:26:23 +02:00
Cédric Krier a7e7b3b91e Change Translation.set_ids to use a list of values
review1005002
2013-09-02 17:38:11 +02:00
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