Commit Graph
5181 Commits
Author SHA1 Message Date
Sergi Almacellas Abellana cbf090cdb7 Complete ir_action_window test
Test search_value, context_domain and context model are correclty defined

issue6880
review43711002
2017-11-20 15:33:22 +01:00
Cédric Krier 87dfddc17a Do not use defaultdict as changed value
xmlrpclib can not dump it and _changed_value is used by RPC on_change methods.

issue6943
review44431002
2017-11-18 11:12:45 +01:00
Cédric Krier 271442d913 Simplify language formatting
* Add get method on ir.lang
* Convert format, currency and strftime of ir.lang into instance methods

issue6858
review40761002
2017-11-15 00:15:27 +01:00
Sergi Almacellas Abellana e702a4368e Correctly import get_smtp_server on misc tools
issue6914
review40801002
2017-11-07 09:27:53 +01:00
Sergi Almacellas Abellana 0a7fefe182 Use a list as default pyson value of search domain
issue6904
review35731002
2017-11-03 12:36:18 +01:00
Cédric Krier d93c30bfb5 Increase version number 2017-10-30 14:44:11 +01:00
Cédric Krier eb2156d58d Prepare release 4.6.0 2017-10-30 14:43:28 +01:00
Cédric Krier 291beaa10c Wait for the database accepting connection to run tests
issue6844
review43671002
2017-10-30 09:36:10 +01:00
Cédric Krier 858fc93814 Add missing TYPES_MAPPING of INTERVAL for MySQL backend
changeset eeab8793a918 missed to move the mapping of INTERVAL to DOUBLE for
MySQL backend.

issue6838
review43651002
2017-10-29 21:52:33 +01:00
Cédric Krier 648053d75e Update translations 2017-10-28 16:48:33 +02:00
Cédric Krier 5b68d85117 Do not reset target link of one2many if it does not exist
The _save_values reset the target link of one2many because it will be set by
the setter. But when the one2many is a Function field, it may not have a
target.

issue6872
review42761002
2017-10-28 01:46:49 +02:00
Cédric Krier 87bbc9ee1a Apply filter when searching on xxx2many with one
The changeset b16a085824ce, which implements the filter, did not update the
search_domain of the fields to also apply the filter on the searched result.

issue6871
review36721003
2017-10-24 22:19:40 +02:00
Cédric Krier 12a3098a8b Fix typo in test method name 2017-10-24 22:14:50 +02:00
Cédric Krier 6a90d3ad68 Use the target model name to check access right for many2many field
The attribute target contains the name of the field on the relation model and
not the name of the target model.

issue6856
review36701002
2017-10-21 10:44:11 +02:00
Sergi Almacellas Abellana f1341abccd Use string formating on warn messages
issue6864
review35711002
2017-10-19 12:40:10 +02:00
Sergi Almacellas Abellana 49f6691b60 Add missing primary key for cache table on mysql backend
issue6840
review42731002
2017-10-16 13:34:05 +02:00
Cédric Krier d3adf56163 Do not copy fields which are not ModelStorage or using table_query
It is not allowed to create/write/delete on such ModelSQL.

issue6819
review39751002
2017-10-13 23:31:33 +02:00
Cédric Krier b7ae7c8b0f Add test for required Reference with invalid record
issue6749
review36661002
2017-10-11 22:41:55 +02:00
Cédric Krier 36c0ea7a1b Enforce required Reference field to have valid record
issue6749
review36661002
2017-10-11 22:41:05 +02:00
Sergi Almacellas Abellana 520824b633 Take in account the modules filter when adding tests to all_suite
This was wrongly removed in changeset 2e73b7d8e1c6
issue6817
review44371002
2017-10-06 14:42:26 +02:00
Cédric Krier a17386e970 Let default value of copy converted for the type of field
The default value of copy is expected to be the same format as for the default
methods. So the value for xxx2Many fields must be converted.

issue6818
review37751002
2017-10-06 11:00:41 +02:00
Sergi Almacellas Abellana 3446e5c2c0 Allow calendar elements as calendar view xpath children
issue6812
review37741002
2017-10-05 13:14:50 +02:00
Albert Cervera i Areny 8f1242da3e Change rec_name label to "Record Name".
issue5643
review23211003
2017-10-02 20:19:10 +02:00
Nicolas Évrard 06c4fe4868 Add support for PosgreSQL version >= 10 sequences
issue6789
review43531002
2017-10-02 17:59:16 +02:00
Nicolas Évrard ddb7769310 Move handling of sequences to the Database object
issue6788
review43521002
2017-10-02 17:48:23 +02:00
Nicolas Évrard ba9cbab0de Allow to add tests in trytond through entry_points
issue6423
review35371002
2017-10-02 11:38:02 +02:00
Sergi Almacellas Abellana 74ef322993 Sync toolbar default value on rnc and rng files
issue6783
review44331002
2017-09-30 18:55:48 +02:00
Cédric Krier 83656053c8 Order operation on relational field to avoid constraints
The order on which the operations are applied can trigger constraints.
So it is safer to first delete then write and finally create.

issue6790
review43511002
2017-09-28 23:44:48 +02:00
Nicolas Évrard a6688da3d3 Add missing fields import removed by merge of changeset 6089dcb6076a 2017-09-28 19:27:02 +02:00
Nicolas Évrard 13944b6b84 Remove useless computation of module on the translations creation
The .create() call for the ir.translation object guess the module of the
translations created when the module passed is not a value evaluating to True.

This could cause the unique constraint to fail when synchronizing translations
after a report has been overriden in the interface.

issue6732
review36581002
2017-09-28 18:42:29 +02:00
Nicolas Évrard 40d37f57bf Add test for ModelSingleton inheritance order
issue6629
review43261002
2017-09-28 18:40:39 +02:00
Cédric Krier c83e9b51e3 Allow to use report name or instance in get_email
issue6774
review38731002
2017-09-27 18:50:07 +02:00
Cédric Krier 1506fb82a8 Fix searcher methods for dot notation
issue6757
review40651002
2017-09-27 18:37:05 +02:00
Cédric Krier 375629dfd3 Support unicode in message and description of TrytonException
The easiest way to support both Python 2 and 3 is to implement __unicode__ and
encode the result for __str__.

issue6768
review39681002
2017-09-26 01:33:02 +02:00
Cédric Krier 9eafd65d2e Add translated descriptor for Reference field
issue5667
review39671002
2017-09-26 01:25:26 +02:00
Sergi Almacellas Abellana 730ecb68b2 Implement alter_type and alter_size for sqlite backend
issue6730
review38591002
2017-09-20 11:29:12 +02:00
Cédric Krier 52ddc85f1a Use entry point name instead of last module name
issue6761
review37681002
2017-09-19 23:21:55 +02:00
Cédric Krier e159639af4 Extract strings from Flat OpenDocument content
issue6545
review43451002
2017-09-07 18:48:39 +02:00
Cédric Krier db0b15e4e9 Add support for int and str on TranslateModel
In Python3, those methods are not resolved using __getattr__ machinery.
2017-09-03 11:53:19 +02:00
Cédric Krier 5a1bc137a3 Add a maximum size for request
issue6619
review38441002
2017-09-03 11:32:17 +02:00
Cédric Krier f110fccf44 Add support for single record report
A single report render each record separately and return them in a zip file.
To ensure the uniqueness of the file in the zip, it uses the id of the record
but also the record name to be user-friendly.

issue6640
review37581002
2017-09-03 11:14:10 +02:00
Cédric Krier 9ad70213a3 Add get_email in trytond.report
issue6671
review36511002
2017-08-28 23:15:14 +02:00
Sergi Almacellas Abellana f29f3c0085 Replace plain extension by txt
issue6676
review41501002
2017-08-24 15:42:05 +02:00
Cédric Krier 23828b8222 Ensure any connection is left open when dumping as template
issue6699
2017-08-17 19:08:51 +02:00
Cédric Krier 07d293caf8 Add support test database cache for remote postgresql
If pg_dump/pg_restore are not available, we create a copy of the database on
PostgreSQL server using the template option of "CREATE DATABASE". We still
create a file in the cache folder to know that there is a backup.

issue6699
2017-08-15 00:21:45 +02:00
Cédric Krier eef26ece5d Use char widget on translation list
This improve the performance on tryton as it can then use fixed column.

issue6697
review39591002
2017-08-11 22:56:28 +02:00
Cédric Krier 34cb03bd1e Increase session randomness to 32 bytes
issue6682
review35521002
2017-08-02 23:11:34 +02:00
Cédric Krier 441677cf3c Add set_user tools for test scenario
When changing the user of proteus, the context should be reloaded.

issue6652
review42551002
2017-08-02 19:37:32 +02:00
Nicolas Évrard d634220a9f Allow to specify datetime related values in XML files
issue6660
review35181002
2017-07-27 09:40:14 +02:00
Nicolas Évrard 6a762d9213 Remove obj from allowed expressions in XML's eval
issue6660
review35181002
2017-07-27 09:39:09 +02:00