Commit Graph
5296 Commits
Author SHA1 Message Date
Cédric Krier 8cfd0eb692 Use JSON canonical form for Dict value
It allows to make equality comparison.

issue7013
review39041002
2017-12-20 19:26:44 +01:00
Cédric Krier a2269d5a38 Remove rules on user
The group should be the only place where rights are assigned to the user.

issue7005
review43821003
2017-12-20 19:20:57 +01:00
Cédric Krier af498348a7 Allow to search and order translated fields using the derivative translations
Since rev 049635454a98, translations are derivatives so the search and order
must be done using all the parent languages.

issue6934
review39971002
2017-12-18 17:45:37 +01:00
Cédric Krier d6fff3938f Document order of view_ids of Many2One
issue6971
review43821002
2017-12-13 18:04:58 +01:00
Sergi Almacellas Abellana c1be67b037 Document how to create a report from client
issue6973
review43791002
2017-12-07 10:49:36 +01:00
Cédric Krier 668938d3f9 Test one fix at a time and catch only Template.substitute exceptions
issue6985
review35781002
2017-12-06 01:15:24 +01:00
Cédric Krier 67ec7b7bf5 Avoid cycled import between report and ir 2017-11-27 17:34:02 +01:00
Sergi Almacellas Abellana c70e45a63a Use pyson widget for button rule condition
issue6964
review37851002
2017-11-27 10:41:37 +01:00
Cédric Krier 437d7e3eaf Add monetary formatting to language
issue6927
review38921002
2017-11-25 22:11:52 +01:00
Cédric Krier 473ac78eb4 Add exceptional parent language
issue6956
review40821003
2017-11-25 22:00:24 +01:00
Cédric Krier fdcac537e3 Document --update-modules-list option of trytond-admin
review36821002
2017-11-22 23:48:35 +01:00
Cédric Krier bf6c9339f0 Allow to replace graph attribute
It must be allowed to have graph tag without child.

issue6950
review39901002
2017-11-21 01:27:46 +01:00
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 9279df36b3 Update sqlite capabilities on README
Since changeset cb76212e8494 is now possible to alter column definitions

issue6730
review41661002
2017-11-09 12:28:24 +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 56eac4c06b Added tag 4.6.0 for changeset e7a6d0e80022 2017-10-30 14:43:28 +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 d371ca43b7 Improve documentation of order
It should be described in ModelStorage.search instead of ModelStorage._order
because search is where it is used.

review44411002
2017-10-26 10:55:59 +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 0f7b1c1e17 Remove support of Python 3.3 and add Python 3.6
issue6843
review41611002
2017-10-22 14:57:04 +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 8c1699f53a Add testing documentation
review35371002
2017-10-02 11:38:31 +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