Commit Graph
5766 Commits
Author SHA1 Message Date
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
Cédric Krier 4920c59650 Allow to use dotted notation in Model.get_id
issue8890
review282481004
2020-01-20 22:18:27 +01:00
Cédric Krier e118cb894a Apply Exclude where clause when searching other records
When we simulate the Exclude constraints, we must apply the where clause also
to existing records.

issue8954
review284651002
2020-01-13 23:58:14 +01:00
Cédric Krier 606bdb7ce9 Ensure all SQL functions are supported by the backend's
issue8942
review270751002
2020-01-13 23:47:17 +01:00
Nicolas Évrard e2d8b6b295 Add MultiSelection entry to Dict field
issue8903
review284571003
2019-12-30 14:26:14 +01:00
Cédric Krier 6b14518eff Position new record based on order
We sent an order to the client for action and xxx2Many so its screen has
always a default order set.
To position a new record on non editable tree, we use the order of the 'id'
column if presents.

issue8880
review276501003
2019-12-28 18:16:28 +01:00
Cédric Krier 973e428caa Replace advisory lock by SKIP LOCKED in queue pulling
It is simpler and closer to standard SQL.

issue8910
review288701002
2019-12-28 18:05:25 +01:00
Cédric Krier 35fec78c17 Load WSGI middleware from configuration
issue8807
review270521002
2019-12-28 18:00:01 +01:00
Cédric Krier 45226af9d5 Make PYSON example a literal block 2019-12-19 17:36:26 +01:00
Cédric Krier 5a340c90cb Replace assert in unit test
issue8904
review250351002
2019-12-18 22:41:53 +01:00
Cédric Krier 1ede807a81 Do not prefetch view of xxx2many using multiselection widget
The view is not required by the widget and it allows non ModelView relation to
be used.

issue8894
review288631002
2019-12-18 21:40:42 +01:00
Nicolas Évrard d8637c0530 Get relation fields of DictSchema when the configuration is set or absent
issue8920
review268631002
2019-12-16 17:31:15 +01:00
Cédric Krier 6250b08db5 Test wizard button points to existing state
issue8901
review282511002
2019-12-14 10:44:55 +01:00