Commit Graph
229 Commits
Author SHA1 Message Date
Cédric Krier a913a10d0f Add only fields define in context for read
instead of all the depend fields.

issue4401
review8111002
2015-04-11 13:35:28 -04:00
David Harper 746db84c8c Fix check if db_exist
issue4675
review8091002
2015-03-25 18:57:25 +01:00
Sergi Almacellas Abellana 637da8d22c Add generic test for workflow transitions
issue4160
review6171002
2015-03-20 21:46:15 +01:00
Cédric Krier 611b96c5f0 Add is_instance_method tool compatible with Python3
issue3211
2015-03-18 23:34:55 +01:00
Cédric Krier 5cfde31ed2 Use bytes and bytearray for Binary
issue4637
review11091002
2015-03-16 19:28:34 +01:00
Cédric Krier b7776731a6 Add noeval to PYSONDecoder
issue1616
review15071002
2015-03-10 23:47:38 +01:00
Cédric Krier e985252f2d Add __repr__ to PYSON
issue4607
review4151002
2015-03-10 23:38:33 +01:00
Cédric Krier bcd28ca071 Remove safe_eval
We convert all the fields that were storing python code into PYSON.
We add a pyson attribute on field tag to store PYSON value.

issue4416
review6971002
2015-03-09 19:40:41 +01:00
Cédric Krier 870c058eaa Add test for search_read order
issue3228
review11051002
2015-03-05 11:44:11 +01:00
Cédric Krier 44693df703 Use separate test file for base modules
This allows to filter them with the command line option.

review9051002
2015-03-05 11:38:23 +01:00
Cédric Krier faa4bfe7d9 Add test on Model._rec_name
review9041002
2015-03-05 11:13:50 +01:00
Cédric Krier 0d3459f659 Add missing base module test cases 2015-02-27 12:29:38 +01:00
Cédric Krier 08b4dc2dd0 Improve type checking in PYSON
- convert long type to int
- convert str and unicode to basestring
- use isinstance when possible

issue4405
review11881002
2015-02-14 17:52:59 +01:00
Cédric Krier ace2988e39 Fix missing migration of trigger unittest to TimeDelta 2015-02-09 23:37:33 +01:00
Cédric Krier 0991a552de Add TimeDelta field
And remove float_time widget.

issue4026
review5911002
2015-02-09 22:58:56 +01:00
Cédric Krier 9fc9716d3e Add no-doctest option to run-test.py
Sometimes it is useful to quickly run only the unittest without the doctest.

review7871003
2015-01-29 12:29:40 +01:00
Cédric Krier cf74a7b509 test_depends should not fail if module doesn't register any model 2015-01-27 22:42:33 +01:00
Cédric Krier 50dfa3f7c5 Add check for default model access and add ModelTestCase
When group access exists, a default model access should be defined otherwise
all access are given to non group users.

issue4485
review5941002
2015-01-27 18:11:23 +01:00
Marius Grigaitis 34b1af7a9d Add test on history when number of records exceeds cursor.IN_MAX
issue4463
review10031002
2015-01-15 23:45:32 +01:00
Nicolas Évrard 5a74a88f97 Add test for access rights of menu and actions
issue4295
review12661002
2015-01-05 16:35:09 +01:00
Nicolas Évrard dcf57d8c33 Allow to use the dotted notation for search order parameters
issue4370
review5801002
2015-01-02 16:33:00 +01:00
Sergi Almacellas Abellana c0749b42f0 Add test for One2One called with multiple records
issue4353
review12711002
2014-12-05 18:32:38 +01:00
Cédric Krier c144f8c349 Fix most flake8 errors
review8771002
2014-12-02 12:54:01 +01:00
Cédric Krier b379e32745 Add translated descriptor for Dict field
issue4343
review11641002
2014-11-27 22:20:43 +01:00
Robin Baumgartner 8b3557921e Use Null constant from python-sql for comparisons
issue4143
review13701003
2014-11-24 13:57:12 +01:00
Cédric Krier 8553dfe9b0 _change_values miss some one2many changes
If only records of one2many change but the tuple is still the same than
_changed_values miss it.

issue4345
review7721002
2014-11-21 10:08:35 +01:00
Cédric Krier b13abebc81 Use dualmethod on ModelStorage.save
issue4197
review8671002
2014-11-01 11:52:55 +01:00
Cédric Krier fee97ca399 New API for on_change
Modify the instance instead of returning a dictionary.

issue4203
review8581002
2014-10-29 20:38:17 +01:00
Cédric Krier 4cf1624a91 Make decistmt a tool
issue4273
review9801002
2014-10-27 23:12:45 +01:00
Cédric Krier 4d5f4c6c3d Add restore_history_before on ModelSQL
issue4259
review6601003
2014-10-27 23:10:52 +01:00
Cédric Krier e82df70a75 Restore historically deleted record as deleted
issue4260
review14591002
2014-10-18 09:17:09 +02:00
Cédric Krier ccda215615 Prevent double underscore in safe_eval
CVE-2014-6633
issue4155
review5601002
2014-09-29 17:23:37 +02:00
Cédric Krier a2c8111f26 Use context to check model and field access
* Model and Field access checked only if _check_access is set
* Add check_access to RPC
* Add check_access to Wizard and Report

issue4081
review8481002
2014-09-17 21:43:53 +02:00
Cédric Krier 56e040dd31 backend.name is a function since changeset 01399128964f 2014-09-07 00:27:56 +02:00
Cédric Krier e0b995abbe Refactore configuration to allow easy extention
issue3627
review7401002
2014-09-03 23:32:01 +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
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
Cédric Krier cd2ac5c1b1 Add translated descriptor for Selection field
issue3679
review10401002
2014-08-04 16:50:59 +02:00
Cédric Krier e64956cffe Use unittest skipIf
review9491002
2014-07-20 12:48:56 +02:00
Cédric Krier 5bc2beaa75 Add test on browsing history
review5451002
2014-07-20 12:47:50 +02:00
Cédric Krier cc39b82917 Exit run-tests with correct error code
review7411002
2014-07-20 12:38:23 +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 7218f5d42a On historied search select the record with highest __id
issue3861
review11271002
2014-06-22 16:56:08 +02:00
Sergi Almacellas Abellana 780f047e10 Use one transaction per test that fails in the database
review13331002
2014-06-17 11:37:45 +02:00
Cédric Krier 3c53e43d25 Add test numeric search with None
issue3930
review11281002
2014-06-13 19:12:14 +02:00
Cédric Krier 8ad55d1b71 Add test for XML-RPC dumps None to nil
issue3981
review6351003
2014-06-13 19:09:22 +02:00
Sergi Almacellas Abellana 4d1e2ba0c0 Use more fine grained exceptions on tests
issue3973
review8431002
2014-06-11 11:22:26 +02:00
Cédric Krier 3f8d858c01 Add UnionMixin
issue3906
review8341002
2014-06-08 00:26:57 +02:00
Cédric Krier 174b2ed218 Fix protocols and add unittest
review12371002
2014-06-07 23:54:44 +02:00
Cédric Krier 6fd9e26b13 Add tests to float search with None
review4701002
2014-05-04 00:16:47 +02:00