Commit Graph
5560 Commits
Author SHA1 Message Date
Cédric Krier 7e6d840dd9 Add base64 converter to URL map
issue7920
review45751002
2019-03-30 17:33:20 +01:00
Cédric Krier d15f283b92 Ensure html section exists in config 2019-03-30 17:09:26 +01:00
Cédric Krier ce0e68a287 Add HTML editor
issue8004
review54481002
2019-03-30 16:04:45 +01:00
Cédric Krier 792ebac88b Use locale format for data export and import
issue8196
review255151002
2019-03-28 19:22:49 +01:00
Sergi Almacellas Abellana 74547c4251 Add day view on calendar
issue7774
review66441002
2019-03-28 12:26:36 +01:00
Cédric Krier bb0242faf8 Raise NotImplementedError when setting Function field without setter
issue7985
review265101002
2019-03-27 00:28:58 +01:00
Cédric Krier af791d5beb Typo on Procedure in RPC documentation 2019-03-26 16:03:20 +01:00
Cédric Krier 44011b1435 Take the field type from the right definition
The field type should be taken from the current fields definition and not from
the class.

issue8212
review273131002
2019-03-22 18:25:52 +01:00
Cédric Krier 9e10625111 Set the requested view_id in result of fields_view_get
The client uses the id of the view received by fields_view_get to construct
the URL so it must be the one requested to ensure to have the same view.

issue7988
review275081002
2019-03-22 18:18:36 +01:00
Cédric Krier 6d16b629f2 Add CSV exports to print toolbar
issue8130
review54571002
2019-03-22 17:21:21 +01:00
Cédric Krier d07f279557 Remove global variables in cron startup
It is better to follow the same startup design than other service.

issue8200
review259131002
2019-03-22 12:17:50 +01:00
Cédric Krier 2752490423 Improve note button
* Add resources method to ModelStorage
* Support badge on icon
* Display unread and total of notes
* Add two extra colors for icon

issue8122
review70561002
2019-03-22 12:16:36 +01:00
Cédric Krier 07d79c7861 Validate selection format in Dict schema
issue7947
review257131002
2019-03-22 11:46:52 +01:00
Cédric Krier fb59d8c9b4 Update documentation of the return of ModelStorage.import_data 2019-03-21 17:50:39 +01:00
Sergi Almacellas Abellana 857cc25b6b Update numeric and monetary formating of languages
issue3636
review52561002
2019-03-21 15:13:13 +01:00
Cédric Krier 45946c23ef Wait up to 10 seconds for cache sync in tests
On busy host, it may require some time to receive the notification.

issue8198
review269141003
2019-03-16 14:56:32 +01:00
Cédric Krier 65c896b1f0 Do not fail on importing string tools if missing python-Levenshtein
python-Levenshtein is an optional dependency so trytond.tools.string_ should
not fail on import.

issue8040
2019-03-15 13:37:17 +01:00
Cédric Krier e2318257bb Allow to extend Field string and help
Those attributes are stored as StringPartitioned and each part creates its own
translation record. The translated strings are constructed by concatenation of
each translated part.

issue8040
review46731002
2019-03-15 13:01:11 +01:00
Cédric Krier 28b2f1129d Add console
issue8126
review47821002
2019-03-15 12:53:20 +01:00
Cédric Krier 10e31bc311 Add Model.__names__ to retrieve model and field names
issue8159
review72431002
2019-03-15 12:27:44 +01:00
Cédric Krier 23a1288d32 Improve sync of data
- Enforce refresh session
- Remove write access for admin
- Use root to synchronize
- Do not fail if model does not exist anymore
- Remove from written values fields that do not exist anymore
- Rewrite fs_value to ensure normalized format

issue7950
review45971002
2019-03-15 11:11:33 +01:00
Cédric Krier cbd72f3003 Clear all reset cache in the Cache commit loop
The correct indentation was lost in review68431002 after an update to tip.

issue8027
2019-03-10 19:37:03 +01:00
Cédric Krier b76e85be2e Add size attribute to image tag
issue8146
review49781002
2019-03-09 17:10:34 +01:00
Cédric Krier e5e92ac81a Allow to use channel to synchronize Cache
When the clear timeout of the cache is zero, we launch a thread to synchronize
caches if the back-end support channels.
The thread is started on the first call to sync for the database.
The channel is also used to clear the cache of the process initiating the
clearing. This allows to test the mechanism is working with a single process.
So there will be a small delay even on single instance.

issue8027
review68431002
2019-03-09 17:03:38 +01:00
Cédric Krier 986da58a48 Use model name instead of class to translate field definition
The typo was introduced in changeset 1094d993d89c.
2019-03-09 15:23:11 +01:00
Cédric Krier f9622e9b2d Test XML-RPC dumps using allow_none
issue8143
2019-03-09 00:12:23 +01:00
Cédric Krier 51b857cc36 Simplify xmlrpc marshallers for Python3
issue8143
review45961002
2019-03-08 23:40:20 +01:00
Cédric Krier fc1e023861 Add description to attachment list view
The clients expect to be able to set the value of this field when adding a
text as attachment.

issue8135
review74481002
2019-03-04 18:55:19 +01:00
Cédric Krier c255cfe785 Display ids and rule names on access error
issue8093
review60551002
2019-03-03 23:11:17 +01:00
Cédric Krier c4ddbb064a Prevent filling cache with data from old transaction
Once the cache has been cleared, we must ensure that transaction started
before the clearing cannot fill the global cache.

issue8019
review56541002
2019-03-02 23:11:14 +01:00
Cédric Krier f6c3fa2d68 Fill add_remove definition only if it is not None
issue8037
2019-02-18 17:03:13 +01:00
Cédric Krier 8a9d5297c6 Fill size definition only if it is not None
The clients expect to have an integer for the size or no key.

issue8037
2019-02-13 13:57:33 +01:00
Cédric Krier 9ea41ef4c8 Wrong class in super call
Introduced in changeset 5075df5e9872

issue8084
2019-02-13 12:30:05 +01:00
Cédric Krier 67cdf02720 Fill relation_field definition only with real field name
proteus expects the definition to have a field name for relation_field key or
no key at all. So parent_name is always a string.

issue8037
2019-02-13 11:38:16 +01:00
Cédric Krier 98bb26a386 Move field definition from Model to Field
issue8037
review74441002
2019-02-13 10:37:40 +01:00
Cédric Krier 246c672073 Remove unique constraint on ir.translation
issue8034
review46721002
2019-02-13 10:27:32 +01:00
Cédric Krier 9eaac0f3a3 Cast timestamp as datetime for sqlite back-end
SQLite backend returns a string for the datetime so the comparison between
timestamp fails.

issue8080
review48721002
2019-02-13 10:23:44 +01:00
Cédric Krier 951dbdfa82 Make DateTime field inherit from Timestamp field
The DateTime is a particular case of Timestamp.
This allows to share the sql_cast of DateTime with Timestamp.

issue8084
review64561002
2019-02-13 10:17:27 +01:00
Cédric Krier ddf9e44dbe Use number of verbose flag as log level
It decouples the logging level from the development mode.

issue8026
review66521002
2019-02-05 19:27:10 +01:00
Cédric Krier 0d15afb90e Add coroutine concurrency option
issue8010
review53501002
2019-02-05 19:09:53 +01:00
Cédric Krier ac8f1c6186 Update rng with rnc2rng
issue8005
review64551002
2019-02-04 22:46:32 +01:00
Cédric Krier 0b6c923834 Add increasing delay on OperationalError
This increase the success rate of retry if the other transaction last.

issue8014
review50701002
2019-02-04 22:23:12 +01:00
Cédric Krier 88b1272d95 Return 429 TOO MANY REQUESTS on RateLimitException
This is a better HTTP Status than the default 500.

issue8001
review47751002
2019-02-04 22:19:37 +01:00
Cédric Krier b315e9a6d9 Do not update db_id when deleting XML record without noupdate
If the record has been removed from the XML file, the db_id field will be
required. So we must not update it and let convert delete the data in
post_import.

issue8051
review70521002
2019-02-03 20:33:01 +01:00
Cédric Krier 14d5f911fb Add Access-Control headers only on Response
The response may be a HTTPException which does not allow to customize the
headers.

issue8047
review49761002
2019-01-30 10:07:38 +01:00
Cédric Krier 4c7441ec74 Store timestamp on Cache per database
The timestamp defines when the cache of a database has been cleared.

issue8018
review50711002
2019-01-30 10:05:55 +01:00
Cédric Krier 774d6eeb5a Do not keeping lock when relaunch listener and join listener in test
We can not recursively call Bus._listen when holding the lock because it
blocks all subscription until the listener stops.
The tearDown of the test should ensure the listener is really stopped before
ending.

issue8039
review52611002
2019-01-30 10:04:11 +01:00
Cédric Krier b906d84d87 Load payload using the JSONDecoder
The payload is dumped using the JSONEncoder so it should be loaded using the
proper decoder.

issue8024
review56551002
2019-01-30 10:02:36 +01:00
Cédric Krier 572372d3c8 Raise NotImplementedError instead of NotImplemented
issue8022
review49731002
2019-01-30 10:00:49 +01:00
Cédric Krier b34cac78d5 Allow to lock records for update
issue8012
review45901002
2019-01-30 09:45:59 +01:00