Commit Graph
254 Commits
Author SHA1 Message Date
Cédric Krier 23c45fc511 Group records when calling set method for field with the same value
We need to loop to compare the values instead of using a dictionary because the
values are not necessary hashable. But it is still an improvement compared to
calling the set method for each record.

issue5398
review19111002
2016-03-19 12:07:27 +01:00
Cédric Krier 1a4687d905 Add test for Sequence number next
issue5329
review17931002
2016-03-16 22:04:18 +01:00
Cédric Krier 8a4ba59b2d Switch to WSGI API
issue4646
review20541003
2016-03-15 16:57:26 +01:00
Nicolas Évrard 2fef479575 Follow PEP-0249 for Transaction and backends
issue4949
review19781002
2016-03-03 21:51:57 +01:00
Cédric Krier ae8975ede3 Add doctest checker for Python 2-3
2to3 doesn't convert unicode string of Python 2 into string of Python 3.
So we will use a special checker that remove the 'u' prefix when checking
output.

issue3211
review19911002
2016-02-24 22:00:06 +01:00
Cédric Krier 7ca5529e49 Use assertValid instead of assert_from lxml.etree.RelaxNG
2to3 convert assert_ into assertTrue but this method is not defined in lxml.
To avoid this conversion, we use assertValid.

issue5314
review21681002
2016-02-09 21:05:37 +01:00
Cédric Krier 29129855ec Add support for Python 3
issue3211
review7311002
2016-02-07 16:46:16 +01:00
Cédric Krier da1be07832 Make TestCase create and drop its database
and add with_transaction decorator.

issue5263
review20711002
2016-02-06 19:10:35 +01:00
Cédric Krier aeddfaa7c0 Add history tests for reading One2Many with datetime_field
issue5269
review20671002
2016-02-02 19:03:57 +01:00
Nicolas Évrard d4e3b605ef Add 'where' operator to xxx2many
issue4507
review12951002
2016-01-21 10:48:32 +01:00
Sharoon Thomas 89de660c52 Move webdav into a separate module
issue4703
review7101002
2016-01-16 19:20:30 +01:00
Nicolas Évrard 1fcee4a07e Add failfast argument to run-test.py
issue4253
review22711003
2016-01-13 16:23:51 +01:00
Cédric Krier 8c1e5e087c Add test for for check fields when writing a sequence of records, values
issue5167
review22631002
2015-12-16 13:48:19 +01:00
Cédric Krier a61474274a Add parent_of operator
issue5037
review15711002
2015-11-05 23:22:26 +01:00
Cédric Krier d17c4b550e Add MPTT test for nested create
issue5095
review24571002
2015-11-02 11:41:41 +01:00
Cédric Krier b8a6573cc7 Fix test_view to use the right model for inherited view
If the view inherit from a different model, it should be used for the test
instead of the inherited view.

issue5088
review18751002
2015-10-31 10:47:10 +01:00
Cédric Krier 87f9fbea6e Add test for all field methods
The test check if all defined field methods are linked to an existing field.

issue4991
review23441002
2015-10-01 22:37:13 +02:00
Cédric Krier 8299e1c133 Validate XML generated by ModelView.fields_view_get
- Add missing attributes to {form,tree}.rn{c,g}
- Add validatation to test_view
- Prevent fields_view_get to set attribute to the wrong view type

issue4944
review19421002
2015-09-04 12:04:07 +02:00
Cédric Krier 2f4bf93817 Remove boolean expression in order
issue4852
review15541002
2015-07-13 23:56:52 +02:00
Nicolas Évrard 03d2e3fa9a Add reversed operators to PYSON expressions
review8201002
issue4856
2015-07-07 12:48:28 +02:00
Cédric Krier 7459aab3d1 Use CURRENT_TIMESTAMP instead of NOW
CURRENT_TIMESTAMP is the correct SQL standard way.

issue4837
review15531002
2015-07-01 19:41:49 +02:00
Cédric Krier 44dc331ced Use Constraint instance in ModelSQL._sql_constraints
issue4814
review15491002
2015-06-22 16:57:06 +02:00
Sergi Almacellas Abellana 180d906316 Only return default record if no domain supplied on ModelSingleton search
issue4766
review15401002
2015-06-15 10:19:01 +02:00
Cédric Krier 0c4725b891 Add target_search option on Many2One
The option allow to select between the subquery or the join format for target
search clause.

issue4798
review16341002
2015-06-15 01:10:59 +02:00
Cédric Krier 52ff97b165 Rename ir.module.module* into ir.module*
issue4764
review7171002
2015-05-28 21:02:01 +02:00
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