Commit Graph
6235 Commits
Author SHA1 Message Date
Cédric Krier 655257ec2c Use dictionary as search_order on Reference field
issue11251
review387941002
2022-02-22 23:06:02 +01:00
Cédric Krier cbd434c404 Ensure to set only once each email as default destination
issue11264
review384431002
2022-02-22 22:58:33 +01:00
Cédric Krier 33b9833b65 Recompute path if part of the old path has already been updated
This happens when multiple parent are modified at the same time.
In such case the new path previously computed is no more correct.

issue11266
review368141002
2022-02-22 22:57:03 +01:00
Cédric Krier dd58ab653e Fill Value of MultiValue with the other default values
issue11077
review370761002
2022-02-21 00:52:10 +01:00
Sergi Almacellas Abellana ec08578767 Catch UnicodeEncodeError when autocompleting emails
issue11261
review38036100
2022-02-18 13:06:20 +01:00
Cédric Krier 731009e3ab Replace ilike operator by like on Reference
issue11203
review395431002
2022-02-17 00:48:06 +01:00
Cédric Krier a9f00a2d40 Retry sending email on temporary failure
issue11179
review354581002
2022-02-17 00:43:04 +01:00
Cédric Krier 09c9e90506 Do not update field definition with Function field definition
issue11225
review360871002
2022-02-16 11:07:19 +01:00
Cédric Krier ed6f52c596 Do not sort state selection
issue11169
review374761005
2022-02-15 00:08:47 +01:00
Cédric Krier 2495c0cbdd Order unsorted Selection by index definition
issue11169
review387771003
2022-02-15 00:06:57 +01:00
Cédric Krier 36d5bce9bc Avoid concurrency failure in cache with channel test
We need to ensure that the listener is running on the return of the transaction
start otherwise notification can be missed.
We must also just from time to time check that the listener is still the
current listener.
And finally we can not wait an arbitrary time for cache sync, instead we must
rely on the _clean_last being reset with the sync happens.

issue9413
review364831002
2022-02-14 23:12:00 +01:00
Nicolas Évrard 2147a5de01 Add tests on the euristic to compute the full text search configuration
issue11130
review395301002
2022-02-08 18:45:42 +01:00
Nicolas Évrard 7e3007ede1 Use the same heuristic to compute full text search config for both operation
issue11130
review395301002
2022-02-08 18:44:55 +01:00
Cédric Krier b20ee5bb48 Use subTest inside loop in ModuleTestCase
issue11195
review393571002
2022-02-07 00:40:56 +01:00
Cédric Krier a39dec543c Do not get domain from empty reference field
issue11074
2022-02-03 23:21:03 +01:00
Cédric Krier 10d277f001 Add optional column on tree view
issue10989
review374321002
2022-02-03 23:13:28 +01:00
Cédric Krier 632deb43e5 Use dictionary as domain for Reference field
issue11074
review383911002
2022-02-03 23:05:47 +01:00
Cédric Krier c38d16b140 Always convert report when output format is different from input
issue11183
review387811002
2022-02-03 22:24:34 +01:00
Nicolas Évrard fd0709aa71 Add implicitely write_date to read columns only when reading already other columns
issue10359
review361791002
2022-02-03 15:04:03 +01:00
Nicolas Évrard 82b6bf9f1a Do not rely on depends to select the fields to read in form view
issue11134
review389681019
2022-01-31 22:25:59 +01:00
Cédric Krier 49f6350151 Use simplified parser for get_eval_fields
Instead of using the PYSONEncoder we can just iterate over the basic JSON types
and use the pyson method to retrieve nested PYSON instances.

issue11164
review376551002
2022-01-30 13:10:57 +01:00
Cédric Krier 5f34224215 Include model, field and column in import data error message
issue11132
review381701002
2022-01-30 12:58:51 +01:00
Cédric Krier 19ad886d45 Add limit to search count
issue10967
review389301002
2022-01-30 01:42:23 +01:00
Cédric Krier af64c1e2d7 Remove password entropy test
issue11100
2022-01-23 22:06:21 +01:00
Cédric Krier 4a023ef216 Add RPC view_get method to View
This allows to extend the inherit mechanism of the view and support inherit for
the board view.
Also the inherit is now applied to all element found by the xpath.

issue11107
issue11108
review389601002
2022-01-23 13:32:59 +01:00
Cédric Krier 171cd78ac9 Limit board action domain to active id and ids
And use a dedicated _actions dictionary to store the active ids per action ids.

issue11106
review389591002
2022-01-23 13:27:52 +01:00
Cédric Krier c8dc6db2a8 Remove entropy check on password
It is not a good way to enforce good password. It is better to include common
password with repetitive or sequential characters in the forbidden list.

issue11100
review376341002
2022-01-23 13:05:17 +01:00
Cédric Krier 7c822ccfda Use cached data also to instantiate records with context field
If all the context fields are already in the cache we can use them without
having to call read and avoid a SQL query.

issue11096
review387631002
2022-01-23 10:23:50 +01:00
Cédric Krier 0f3587cf59 Set a max limit to sqlite backend
SQLite does not support offset without a limit. So we must use a negative value
to have no upper bound.

issue11126
review395291002
2022-01-20 19:03:19 +01:00
Cédric Krier 2563aed9b0 Check read access on parent field of child/parent operators
The 4th element of the clause is the parent field for the child_of/parent_of
operators, so it must be used to check access as related field.
Also we must remove the 4th element when checking related domain.

issue11115
review391371002
2022-01-11 23:07:45 +01:00
Cédric Krier 1f42642bc3 Use first the dotted name variable in the PYSON context
issue11109
review383991002
2022-01-11 23:03:06 +01:00
Cédric Krier 51a08fb809 Set view_id in the context when calling view_attributes
issue11091
review364531002
2022-01-04 22:30:41 +01:00
Cédric Krier f9569e7018 Add ip_address and device_cookie login method options
issue10987
review360491008
2021-12-29 12:39:51 +01:00
Cédric Krier 86c4c2ff8b Add missing documentation of database timeout, minconn and maxconn
issue11032
review374431002
2021-12-21 23:29:45 +01:00
Cédric Krier 9da7f30ab4 Evaluate record against trigger before queueing the action
issue11050
review366381004
2021-12-21 23:18:36 +01:00
Cédric Krier b539e1be4c Add support for Python 3.10
and remove support for Python 3.6.

issue11048
review364451002
2021-12-18 16:34:37 +01:00
Adrià Tarroja Caubet 7e0a5db4ac Use normalized length of record name
This is needed in case the client normalize the report name before storing to
the filesystem.

issue10986
review381471003
2021-12-18 01:37:06 +01:00
Cédric Krier 91f8217557 Add creatable attribute on tree and form views
issue10929
review370201002
2021-12-16 22:26:04 +01:00
Cédric Krier e4529b45ee Clear transaction cache after commit
If there are multiple commits, the data in the database may have been modified.

issue11014
review381481003
2021-12-16 22:12:42 +01:00
Cédric Krier 3bf27ac06a Add coverage to tox
issue7685
review51501002
2021-12-13 23:10:13 +01:00
Cédric Krier a0bfbfa255 Follow isort formatting
issue10928
2021-12-11 17:58:45 +01:00
Cédric Krier d608167f04 Create record by XML for test with readonly transaction
issue10936
2021-11-28 14:31:45 +01:00
Cédric Krier 7d879abef6 Use same context as clients to evaluate PYSON
issue10963
review372581002
2021-11-28 13:45:54 +01:00
Cédric Krier e02c830159 Fill local cache of Function field instances with values
issue10936
review377511003
2021-11-28 13:40:30 +01:00
Cédric Krier a00d26dd3c Cache Function field getter without context in readonly transactions
issue10936
review367781002
2021-11-28 13:27:52 +01:00
Cédric Krier a4a2ad0c9d Patch user login method instead of assign Mock object
Patch restores the original attribute on exit.
2021-11-27 01:51:37 +01:00
Cédric Krier fd9cde4d9a Use expire delay instead of UTC datetime in reset password email
issue10906
review381291002
2021-11-24 01:09:36 +01:00
Cédric Krier 357dfd9286 Use HTTPStatus instead of http.client
Status in http.client is deprecated since 3.5
2021-11-23 16:24:44 +01:00
Cédric Krier 5d802989aa Add warning and note about starting server for production
issue10934
review351001002
2021-11-20 00:11:56 +01:00
Cédric Krier 073dfe4e46 Reload menu after modules update without configuration items
issue10949
review375951002
2021-11-19 23:57:56 +01:00