Commit Graph
5778 Commits
Author SHA1 Message Date
Sergi Almacellas Abellana bae2a3e718 Slugify filenames in report zip files
issue9203
review293371002
2020-04-06 13:12:26 +02:00
Cédric Krier b12d729c2d Add test on target of relation fields
issue9132
review291211004
2020-04-02 00:01:14 +02:00
Cédric Krier ab019772a7 Add width and height attributes on calendar view
issue9148
review250931003
2020-04-01 23:58:49 +02:00
Cédric Krier 748fe7212e Add database default name configuration
Some user may need to customize the default name used to run operation without
proper database name.

issue9121
review273021002
2020-04-01 23:56:17 +02:00
Cédric Krier cba3426f56 Add retry option to report convert
soffice fails sometimes. As it seems to be linked to the available resources,
we retry with some delay.

issue9175
review278911002
2020-04-01 23:52:08 +02:00
Sergi Almacellas Abellana 0cb3377825 Add depends fields on view_attributes
issue8862
review303161002
2020-03-30 09:33:15 +02:00
Cédric Krier b1e0c03707 Simplify trigger action
We use now a selection field to choose the action to trigger.
It is safer and more user friendly.

issue9096
review272961003
2020-03-28 23:56:19 +01:00
Cédric Krier 2ab5a7797d Remove unused time import
issue8342
2020-03-28 23:37:53 +01:00
Cédric Krier 5f9a7554ae Cast CurrentTimestamp into timestamp to remove timezone
issue8342
2020-03-28 23:37:18 +01:00
Cédric Krier 34e5c61a1a Run trigger in the queue
This ensures that internal changes that are reverted later in the same
transaction does not trigger an action.
Also we ensure that a record is triggered by the same trigger only
once per transaction.

issue8342
review280971002
2020-03-28 17:13:12 +01:00
Cédric Krier 72a71019c0 Do not copy Binary content with file_id
This avoid the filestore to reprocess the binary data as the file_id is
already copied.

issue9153
review297241002
2020-03-28 16:57:05 +01:00
Cédric Krier 7691b89822 Set saved tree width only if client save them
We rename also the option from save_width_height to save_tree_width which
correspond better to the current behavior.

issue9130
review258921051
2020-03-28 00:33:27 +01:00
Cédric Krier 8df56316b8 Explain when [web] hostname configuration is used
issue9116
review284981002
2020-03-28 00:28:43 +01:00
Cédric Krier 828d444545 Skip check access on ir.ui.menu for wizard
User launching a wizard from menu should not need write access on the menu.

issue9173
review301161002
2020-03-26 00:12:43 +01:00
David Harper ba776f36a5 Replace memoize with functools.lru_cache
issue9081
review286781002
2020-03-25 17:34:35 +01:00
Sergi Almacellas Abellana 6b3eb52d17 Stop cron database retry after successful execution
issue9170
review297311002
2020-03-24 10:02:58 +01:00
Sergi Almacellas Abellana 5384cb9006 Add support for python3.8
issue8866
review274421004
2020-03-19 19:17:29 +01:00
Sergi Almacellas Abellana 6ac6424d88 Add option to send test email with trytond-admin
issue8983
review274681002
2020-03-18 12:36:48 +01:00
Cédric Krier e806ec55a8 Display login on LoginException message
issue9068
review266821006
2020-03-17 23:33:10 +01:00
Cédric Krier d450d09946 Add test for multiselection field in EvalEnvironment
issue9144
review285001004
2020-03-17 23:29:23 +01:00
Cédric Krier d0a82c8bdc Support multiselection field in EvalEnvironment
issue9144
review285001004
2020-03-17 23:28:57 +01:00
Cédric Krier 5e41ca21f9 Convert interval into seconds
The correct way to convert interval into seconds is to use
"EXTRACT(EPOCH FROM ...)". The "SECOND" gives only the value of the second
field.

issue9126
review297181005
2020-03-17 23:21:20 +01:00
Cédric Krier 62f2ce0198 Set all fields readonly for inactive records
issue3747
review295061011
2020-03-17 20:08:13 +01:00
Cédric Krier 92592d0d0d Add test for executing wizard without access
issue9108
review261041002
2020-03-09 18:24:54 +01:00
Cédric Krier 2c3ab3a3bd Enable check_access context when checking wizard access
issue9108
review261041002
2020-03-09 18:24:23 +01:00
Cédric Krier 456c4828c8 Replace assertTrue and assert False by assertEqual
When we must test that the actual value is True or False, we must use
assertEqual.

issue9093
review256651002
2020-03-06 23:20:35 +01:00
Cédric Krier 2041e4f5b8 Do not force value in OR-ed clause
When any other variable in Or-ed clause is not known, we can not force the
value of the variable.

issue9092
review272941002
2020-03-06 23:14:24 +01:00
Cédric Krier 4a3821f14c Remove reference to MySQL as backend
The backend was removed in changeset b2729144b556
2020-03-05 19:30:00 +01:00
Cédric Krier 065e18a9fb Return list instead of map object in get_action
The value must be converted into JSON.
2020-03-01 16:33:00 +01:00
Cédric Krier e6911c1c7c Set auth-method to trust for drone build
issue9063
2020-03-01 15:32:16 +01:00
Cédric Krier d7ed5f91f5 Fix flake8 errors and warnings
We add the flake8 configuration used so we ensure everyone uses the same.
We remove the usage of __all__ for non public API.
When possible, we rationalize the class name according to its __name__ and module.

issue9082
review297061002
2020-03-01 12:33:54 +01:00
Cédric Krier 9102590ddb Add documentation about spell attribute
issue9061
review258751002
2020-02-29 23:50:59 +01:00
Cédric Krier 62a24a6615 Manage readonly dates and editable calendar view
If any of the dates is readonly, the event can not be modified by drag and
drop.
If the calendar is not editable no events can be modified.

issue9012
review256451002
2020-02-29 23:43:50 +01:00
Cédric Krier 1a4fa284a4 Fix translations wizard name in the documentation 2020-02-27 19:08:35 +01:00
David Harper f0990baa49 Replace depreciated assert_ function with assertTrue
issue9077
review274891002
2020-02-21 09:15:12 +01:00
Cédric Krier 62ffa46867 Disable cache on default_get of ModelSingleton
The default_get is used by the clients as a read method to fill the form on
opening.

issue9045
review282931003
2020-02-15 01:43:11 +01:00
Cédric Krier a99931c5c4 Do use translation cache if records were modified after last synchronisation
On distributed setup, the cache is not synchronized instantaneously so we can
not use the cache if the record was modified by another process since the last
synchronisation.

issue9013
review262841002
2020-02-15 01:36:48 +01:00
José Salvador 39f439523c Fix logging level link in documentation
issue9060
review280891002
2020-02-13 18:02:05 +01:00
Cédric Krier ac4edd0633 Read context fields if they are also in depends
This implements the real intention of changeset a892e7a649a5.

issue9036
review280791002
2020-02-12 00:15:15 +01:00
Cédric Krier d52dc594f5 Use a single instance to cache get_relation_fields
It is wrong to instantiate the cache in the __setup__ because it can be run
multiple time in the same process (but with new pooled classes).

issue9019
review253011003
2020-02-10 23:18:19 +01:00
Cédric Krier 89c737a819 Test memory cache with committed transaction as current
The tests did not correspond to a proper use case because the transaction
committed was not the current transaction. So this could lead to wrong cache
being reset and wrong cache being tested.

issue8502
review289171002
2020-02-10 23:13:26 +01:00
Cédric Krier 15ea6bf65b Add tests for types checking in PYSON Greater
issue9002
review276711002
2020-02-04 18:32:10 +01:00
Cédric Krier 3d20f1b64e Display the path of the database in error message
Instead of just the filename.

issue8995
review288881002
2020-01-29 00:05:32 +01:00
Cédric Krier 750ad14bb2 Skip trigger using contextual key
Relying on the user is not flexible enough.

issue8993
review260841002
2020-01-29 00:03:40 +01:00
Cédric Krier ae32a1a45a Document TRYTOND_DATABASE_URI as default value
issue8959
review282641002
2020-01-24 00:19:52 +01:00
Cédric Krier 7875590cf3 Add xalign and yalign to group
issue8956
review258581002
2020-01-24 00:18:19 +01:00
Cédric Krier e48c7a556d Document the email address format supported
issue8949
review258571002
2020-01-21 00:43:21 +01:00
Cédric Krier 9b2ed5d993 Move search documentation to ModelStorage
issue8946
review270771002
2020-01-21 00:40:40 +01:00
Cédric Krier 15254980a6 Add some random on the login delay
issue8936
review262681002
2020-01-21 00:36:34 +01:00
Cédric Krier 03b07a60e9 Use more appropriate HTTP status for Tryton exceptions
issue8929
review252781002
2020-01-20 22:25:12 +01:00