Commit Graph
5082 Commits
Author SHA1 Message Date
Karla Stenger 8b2009c287 Fix missleading error message deactivate_dep
issue6021
review32771002
2016-11-08 16:23:29 -03:00
Cédric Krier 16336ffeae Support derivative translations in reports
TranslateFactory must search throw all parents languages.

issue6012
review30751003
2016-11-05 19:59:51 +01:00
Cédric Krier f9c0457416 Remove support for simplejson
On Python 3, simplejson has a different behaviour than the stdlib json,
especially for dumping bytes.

issue6010
review33601002
2016-11-05 19:54:12 +01:00
Sebastián Marró 227da247f6 Add toolbar attribute for richtext widget
issue3551
review9741002
2016-11-01 12:29:18 +01:00
Cédric Krier 21e4b96fea Support selection method in TranslatedSelection
The Selection field could have a method name as selection so
TranslatedSelection must call this method to get the selection values.

issue5999
review27791002
2016-10-31 17:19:47 +01:00
Xavier Codinas ec8884d05f Add PYSON widget
issue4631
review24011002
2016-10-31 13:39:15 +01:00
Cédric Krier d70b599cbe Update link to Easy Install
issue5963
2016-10-30 19:51:59 +01:00
Sergi Almacellas Abellana 226caf249b Allow to define the text color and background color in calendar view
issue5953
review33461002
2016-10-28 17:55:09 +02:00
Cédric Krier ea605d2e9c Do not decorate with ModelView.button the ModelView.button_change
The button_change is similar to the on_change, they run under a read-only
transaction so there is no need to check the access right like it is done for
the button.

issue5983
review26841002
2016-10-27 17:40:31 +02:00
Sergi Almacellas Abellana 0de3ae0a51 Allow to override cache implementation
issue5962
review33491003
2016-10-26 15:55:05 +02:00
Cédric Krier e843bd23c5 Add button rule
issue5944
review26791002
2016-10-26 09:44:09 +02:00
Cédric Krier 20e0c97884 Return fake keys for failing creation of user application
In order to prevent an attacker to find login names of the system, the creation
request should always succeed for the caller.

issue5969
review27751002
2016-10-25 23:32:28 +02:00
Cédric Krier e7dd481bae Catch also KeyError when formatting error message
When error message uses key formatting, KeyError could also be raised
if a key is missing in the dictionary.

issue5956
review34381002
2016-10-25 23:29:19 +02:00
Cédric Krier 77815c88bd Remove model access for ir.sequence
The access rights are managed using a global record rule with the groups on
sequence type.

issue5915
review34371002
2016-10-25 23:15:24 +02:00
Cédric Krier cacc336f26 Set new context to write on user in set_preferences
As some validation could depend on the context because a common pattern is to
override read to return values from the context.

issue5947
review30621002
2016-10-25 23:08:34 +02:00
Nicolas Évrard b3b4c816b7 Check that button's name are member of _buttons and that __rpc__ members are callable
issue5971
review29681002
2016-10-25 12:29:06 +02:00
Maxime Richez 6144237ef6 Re-fix TypeError on drop_column for SQLite
Fixing bad interpretation on the value (tuple) when iterating on the dictionary
in previous changeset 9c2eb1b04df8

issue2647
review33491002
2016-10-24 16:15:28 +02:00
Sergi Almacellas Abellana 1bfc16bcf2 Allow to specify translatable languages in trytond-admin
issue5961
review27711002
2016-10-24 14:12:57 +02:00
Nicolas Évrard b486df993e Rename module view button activate instead of install
issue1456
review34391003
2016-10-24 13:50:56 +02:00
Nicolas Évrard 7ca35d67ee Fix missed renaming of install to activate (take II)
issue1456
2016-10-21 17:59:44 +02:00
Ralf Peschke 4876059350 Add xlsx and docx to output document formats
review28511002
2016-10-21 13:00:19 +02:00
Jan Grasnick 1eadd71f98 Add support for datetime_field to fields.Reference
issue4579
review26811002
2016-10-21 12:52:26 +02:00
Nicolas Évrard d5e24102f3 Fix missing renaming of install to activate
issue1456
review28941002
2016-10-21 12:44:57 +02:00
Nicolas Évrard ccbb43cb1d Use activate instead of install for module activation
issue1456
review28931002
2016-10-20 12:51:56 +02:00
Cédric Krier 6410cd00d5 Abort User Application key creation if there are already pending one
For security, we should prevent to create many keys because at that point the
user is not authenticated and so the system could be abused.
The measure is to prevent to create per user more than one pending key.

issue5958
review29651002
2016-10-20 12:02:07 +02:00
Cédric Krier 29d05d2b1d Ensure main language is loaded and translatable
issue5959
review27701002
2016-10-20 11:45:32 +02:00
Maxime Richez e954c2fe38 Fix TypeError on drop_column for SQLite
It uses now tuple unpacking on the loop.
It was introduced in changeset a3ef75ef8f6a

issue2647
review32641002
2016-10-13 10:05:44 +02:00
Sergi Almacellas Abellana 4a1e38d01b Remove Report word from Set Translations wizard name
The wizard sets the translations of all types, not only Reports so it does not
make sense to have the Report word in its name

issue5932
review34311002
2016-10-13 09:53:07 +02:00
Cédric Krier 0c17960fb2 Merge Spanish's into Spanish (Latin American) 2016-10-08 12:33:32 +02:00
Cédric Krier 8a84cf031f Fix protocols tests for new names: rpc_method and rpc_params 2016-09-27 13:46:44 +02:00
Cédric Krier ddb5fc3026 Manage selection function for Function field
ModelView automatically adds missing RPC definition for selection function but
only for Selection or Reference field. It should also do the same for Function
field which mimic such fields.

issue5903
review30531002
2016-09-27 12:19:47 +02:00
Cédric Krier 6261fa486f Improve ModelStorage.search_count by using no order and COUNT(*)
issue5877
review27651003
2016-09-27 12:18:16 +02:00
Cédric Krier 892e79da1e Do not check write access on model for wizard with groups
issue5884
review33371002
2016-09-27 12:06:11 +02:00
Cédric Krier 965d010dc9 Add user application
issue5782
review28641002
2016-09-27 11:56:19 +02:00
Sergi Almacellas Abellana e2afba1e9a Ensure sqlite connection is set when initializing the database
issue5906
review26721002
2016-09-24 19:54:13 +02:00
Cédric Krier 972a1b6c91 Do not link the cache of the instances if id is negative
Otherwise trytond will try to read it from the database and fail.

issue5874
2016-09-22 11:33:51 +02:00
Cédric Krier 27387b0960 Manage database retry in login/logout
A concurrency exception could be raised if two successful login/logout are
requested simultaneously.

issue5890
review32591002
2016-09-22 11:31:18 +02:00
Sergi Almacellas Abellana 35c3495bb9 Don't check access when executing trigger actions
issue5887
review27641002
2016-09-21 15:30:02 +02:00
Cédric Krier bf7148d9d3 Link the cache of the instances in xxx2Many setter
Just as it is done when browsing xxx2Many field, the instances set by the
xxx2Many fields should share the same local cache.

issue5874
review30471002
2016-09-21 00:36:49 +02:00
Cédric Krier ac04984ea2 Do not decode traceback on Python3
It is already a unicode string.

issue5867
review28781002
2016-09-15 21:59:53 +02:00
Sergi Almacellas Abellana 828afc310d Add sequence_ordered
issue5105
review25561002
2016-09-13 14:01:17 +02:00
Cédric Krier 44bd45546c Remove deprecated on_change_with on report_content_name field 2016-09-11 13:15:10 +02:00
Cédric Krier a208d9a0d2 Use simplified language code for time_locale
issue5443
review29511002
2016-09-11 09:20:01 +02:00
Cédric Krier d305c26e54 Add support for derivative translations
This is done by calling first the getter method for the parent language for the
terms that are not yet cached. After existing translations are set for the
language. And finally the result is stored in the cache.
The synchronisation wizard remove also the translations that are identical to
their parent language.
The method load_module_graph adds all parent languages to be loaded for
derivation.

issue5443
review25581002
2016-09-10 23:25:03 +02:00
Cédric Krier f86939bd5c Install sqlitebck as tox deps instead of drone global
issue5850
2016-09-10 10:22:48 +02:00
Cédric Krier 02fa7b240a Allow to call ModelSQL.__insert_history
Rename __insert_history into _insert_history to be able to call it
when records are manipulated via SQL queries.

issue5819
review32471002
2016-09-06 09:08:50 +02:00
Cédric Krier 3ee721345d Remove IDENTIFIER regexp on ir.model and ir.model.field
This regexp has all the factors for ReDoS so it is safer to remove it even if
only administrators can create the records.

issue5743
review29481002
2016-09-06 09:03:11 +02:00
Xavier Codinas 7ccc973e82 Enforce suffix and prefix to have id or name
issue5831
review33281002
2016-09-02 10:50:36 +02:00
Cédric Krier 3e90ed6675 Abort with 404 on wrong database name
The client must be able to distinct login failure because of wrong database and
failure because of wrong parameters.

issue5837
review32531002
2016-08-31 22:57:23 +02:00
Cédric Krier 8d3f8347cd Add test about sanitize path in file_open
issue5808
review28691002
2016-08-30 12:15:57 +02:00