Commit Graph
6206 Commits
Author SHA1 Message Date
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
Cédric Krier 6162729234 Do not order on NULL when rank column is None
It is not valid to use NULL in ORDER BY clause.

issue10947
review381411002
2021-11-19 23:56:36 +01:00
Cédric Krier a89d1799e8 Retry to convert report also on subprocess error
issue10938
review370221002
2021-11-19 23:54:57 +01:00
Cédric Krier 1250c434af Do not store in global cache Function field
issue10936
review364331002
2021-11-14 23:54:52 +01:00
Cédric Krier e581216027 Send testing email without database
issue10915
review363031003
2021-11-13 01:49:54 +01:00
Cédric Krier f351e34dd6 Remove unbreakable spaces around colon
issue10933
review351011002
2021-11-13 01:43:55 +01:00
Adrià Tarroja Caubet b01d974d65 Include action report name on report name max length
issue10946
review374151002
2021-11-13 01:38:59 +01:00
Cédric Krier cd04197025 Use DROP COLUMN from SQLite 3.35.0
issue7703
2021-11-08 22:52:40 +01:00
Cédric Krier c6ca01b701 Support to alter more numeric types
issue10897
review381261002
2021-11-08 19:33:56 +01:00
Cédric Krier d8c3e5ccca Use RENAME and DROP COLUMN with SQLite backend
issue7703
review367691002
2021-11-08 19:31:34 +01:00
Cédric Krier 834007b353 Support window functions with SQLite backend
issue7703
review364231002
2021-11-08 19:30:15 +01:00
Cédric Krier a1a2e6eb70 Use JSONB to store Dict field on PostgreSQL backend
issue10858
review379371002
2021-11-08 19:27:03 +01:00
Cédric Krier acd9408451 Use TRYTOND_DATABASE_NAMES as default command line value
issue10852
review362921003
2021-11-08 19:22:35 +01:00
Cédric Krier c3effb3241 Increase version number 2021-11-01 16:57:58 +01:00
Cédric Krier 8407c22819 Add tag 6.2.0 [skip ci] 2021-11-01 16:57:41 +01:00
Cédric Krier 10a4f8d88a Prepare release 6.2.0 [skip ci] 2021-11-01 16:57:41 +01:00
Cédric Krier 54c6e59c36 Update translations [skip ci] 2021-10-30 11:32:05 +02:00
Cédric Krier 1b3690eeb7 Do not set empty avatar when generating one
As the method is called on write and is also calling write via save, we must
ensure to save only when an avatar is filled to break the loop.

issue10914
review363041002
2021-10-30 02:25:37 +02:00
Cédric Krier a97e769ad3 Evaluate invalid domain if there are many fields
We must find the field that is invalid instead of using the first one with a
domain constraint.

issue10418
review360371002
2021-10-30 02:20:23 +02:00
Cédric Krier 878e8747df Prevent assign SQL value to record instances
issue10413
review379441002
2021-10-28 09:00:33 +02:00
Jonathan Levy 7d5abe4816 Disable existing logging before loading logging configuration
issue10637
review358551002
2021-10-27 22:22:44 +02:00
Cédric Krier 9165f5d177 Move test of tools under tools test case 2021-10-26 00:22:23 +02:00
Cédric Krier 8bbecaa817 Allow to cast as date using timezone
issue10860
review372321002
2021-10-21 00:11:57 +02:00
Adrià Tarroja Caubet 4134e26cd7 Add missing new lines on docs
issue10887
review387211002
2021-10-20 15:16:10 +02:00
Cédric Krier e644d6a4eb Set the target field name in the context to get the size
The getter of 'data_size' field must use the name 'data' in the context instead
of 'data_size'.

issue10849
review383301002
2021-10-19 00:22:08 +02:00
Cédric Krier 867536be18 Duplicate Genshi i18n msg keywords in reset password email 2021-10-18 15:56:58 +02:00
Cédric Krier ce5ead4172 Do not change action name if menu has multiple keywords
issue10828
review353011002
2021-10-15 19:15:14 +02:00
Cédric Krier ca372a24ec Support create/delete attribute in view
issue10840
review377341002
2021-10-11 22:53:02 +02:00
Sergi Almacellas Abellana b6678dfe19 Skip default values when copying records
This allows users with no write access to a field to copy records if their
values have not been modified.

issue10536
review336541002
2021-10-11 15:14:57 +02:00
Nicolas Évrard b3786087a9 Use global cache for Function fields in readonly transactions
issue10491
review352081002
2021-10-11 11:52:42 +02:00