Commit Graph
5091 Commits
Author SHA1 Message Date
Cédric Krier dcc1770b5b Add test call to on_change methods
- Manage None as value of field in on_change method

issue6069
review27851002
2016-11-27 22:12:43 +01:00
Cédric Krier b699dd9bc0 Do not copy warnings nor applications when copying user
There are record rules on the targets which prevent to copy users.
Also it is not expected to copy those fields when copying users.

issue6049
2016-11-26 19:51:07 +01:00
Cédric Krier 26639ecd3f Format Many2One value before using it as id value in __raise_integrity_error
id is an Integer field which does not cast to int the values in the opposite of
Many2One which could receive an record instance.

issue6068
review31751003
2016-11-26 15:06:05 +01:00
Cédric Krier 4d8f310aae Update translations 2016-11-25 23:48:45 +01:00
Cédric Krier f057bfd68f Use sale report as example for report replacement
The invoice report example does not work because it is managed by a wizard.

issue6054
review25821002
2016-11-25 10:49:48 +01:00
Ritesh Shrivastav 221826ebb8 Fix wrong key for translation_overridden error message
issue6052
review26911002
2016-11-24 09:28:35 +01:00
Cédric Krier e2001e693f Use English name for languages
The name of the language is a translatable field so the English version must be
used by default.

issue6022
review32771003
2016-11-10 12:21:09 +01:00
Cédric Krier ef4d2bfb9e Missing rename installed into activated
The changeset 9bb9fe4cd312 missed to rename the label of the view
module_activate_upgrade_done_form.

issue6032
review33611002
2016-11-10 12:20:10 +01:00
Sergi Almacellas Abellana 19cfdd125e Mark modules as to remove when deactivating them
Changeset9bb9fe4cd312 modified the behaviour to mark them as not activated but
they should be marked as to remove so their data is correctly removed with the
install/upgrade wizard.

issue6019
review31691002
2016-11-09 10:36:39 +01:00
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