Commit Graph
3058 Commits
Author SHA1 Message Date
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 7fbc4934a4 unit-test: 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:29:37 +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 c87965cf61 Remove ModelSQL.default_sequence from the doc
ModelSQL.default_sequence was removed in 2.6

issue3143
2013-04-12 19:29:23 +02:00
Oscar Alvarez 2543ceb72d Trytond es_CO translation updated. 2013-04-11 09:39:04 -05:00
Cédric Krier bbd792937c Fix object_name comparison to ir.attachment
issue3130
2013-04-11 14:48:12 +02:00
Cédric Krier 68d7948b10 Add missing reference origin clause when search on xxx2many
review770002
2013-04-08 23:52:05 +02:00
Cédric Krier 7a9c89da17 merge 2013-04-08 23:49:57 +02:00
Cédric Krier e77ecd948f Manage extra model from model data for ir.action.*
ir.action.* create ir.action record on the fly which contains translatable
field. So they must inherit the xml id to be seen as module translation.

issue3123
review768002
2013-04-08 23:48:34 +02:00
Pierre-Louis Bonicoli 2480cb3bb6 Fix UnicodeEncodeError (remove calls to str)
issue3128
review774002
2013-04-08 16:59:13 +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 36d681263d Fix search on tree rec_name
issue2868
review757002
2013-04-06 12:28:28 +02:00
Cédric Krier a986f2ecd5 Add missing break when looping over security.check
If call to security.check doesn't raise a DatabaseOperationalError, it should
not be retried.
2013-04-03 14:44:50 +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 f27631161a Add test for unknown fields in test_depends
review745002
2013-03-27 22:47:06 +01:00
Cédric Krier d9dd0cf368 LoginAttempt.count must return an integer not a tuple
issue3096
2013-03-26 14:18:12 +01:00
Cédric Krier 451e79d59f Fix typo in Model.check_module 2013-03-26 12:19:35 +01:00
Nicolas Évrard 549fb4fa88 Split the User class in order to prevent locking the table
issue2906
review625002
2013-03-23 19:18:03 +01: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
Nicolas Évrard 94914dc086 merge. 2013-03-21 13:52:12 +01:00
Nicolas Évrard 26eb243b63 Allow to override string of fields
review597005
2013-03-21 13:51:04 +01:00
Cédric Krier e701223d75 Fix set translation as view.arch could be None 2013-03-21 11:34:00 +01:00
Cédric Krier a95ae0dad9 Remove _inherits
review670002
2013-03-20 22:49:16 +01:00
Cédric Krier 9af0cc3039 Re-add tests of search on Reference field with tuple/list 2013-03-17 00:56:45 +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 f74b525a4d Fix Warning.check to use instance for delete
issue3065
review715002
2013-03-15 00:52:16 +01:00
Cédric Krier 2ff45c8869 Let raise exception in sqlite extract 2013-03-13 18:43:35 +01:00
Cédric Krier d7a9e86ed1 Fix local variable 'microseconds' referenced before assignment
issue3049
2013-03-13 18:42:30 +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 7ae0c13c3a Remove useless recursion_error entries in ir.translation. 2013-03-07 18:27:42 +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
Sharoon Thomas 6efc1f6a0c Improve trigger tests
review690002
2013-03-06 17:00:34 +01:00
Sharoon Thomas c861f0fb70 Fix records built as argument by trigger_action
Fix the construction of active records sent as arguments to trigger action
functions to use the source model instead of action_model.

issue3026
review690002
2013-03-06 16:59:54 +01:00
Cédric Krier a3857167fd Don't use Model from res module in ir module
As ir module doesn't depend on res module, it should not use the Model of it.
2013-03-06 13:32:16 +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 d5b8bba99a Use better order for existing translation when importing po file
review701002
2013-03-05 10:31:15 +01:00
Cédric Krier 7bea08c745 Fix coding for StringMatcher in global_search
StringMatcher requires to have the same type of strings

issue3029
review696002
2013-03-05 10:28:11 +01:00
Albert Cervera i Areny 511e78e6fa Consider that reference fields may be of tuple type in menu.
review699002
2013-03-05 00:15:03 +01:00
Albert Cervera i Areny d3466b21c9 Remove _id suffixes from ir.model.field-res.group
review700002
2013-03-05 00:08:40 +01:00
Cédric Krier d9c75603a0 Use correct grouping, thousands_sep for en_US and fr_FR
review691002
2013-03-04 22:13:05 +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 2808c7315d Remove button type for documentation
All types of button have been merged in changeset c5324dfc9882
2013-02-26 18:06:34 +01:00
Pierre-Louis Bonicoli 8b1cae85f5 use IOError & display filename of db when SQLite db is not found
issue3020
review680002
2013-02-26 13:30:49 +01:00
Cédric Krier e30c4e51a1 Fix wrong instantiation when removing module
issue3025
review689002
2013-02-26 13:03:31 +01:00