Cédric Krier
72fd407fdb
Add sql_id method to Reference field and use it for index
...
issue11788
review447351003
2022-10-12 08:25:20 +02:00
Cédric Krier
7892f8ae56
Use declarative index definition for ModelSQL
...
issue5757
review361251002
2022-10-11 00:44:51 +02:00
Cédric Krier
18bc7b6c63
Apply domain on translation value of the left join
...
issue11781
review413711003
2022-10-10 19:39:21 +02:00
Cédric Krier
083774d09b
Redefine Field properties on Function field
...
In order to use the value from the simulated field, we must redefine them.
issue11759
review425791003
2022-10-09 13:21:36 +02:00
Cédric Krier
c3a8be00ca
Add option to remove leading and trailing white spaces from char
...
issue7914
review340511008
2022-09-19 21:25:55 +02:00
Cédric Krier
7dd4445f56
Allow PYSON size of fields to be None
...
issue11643
review411571003
2022-09-08 13:15:54 +02:00
Cédric Krier
d1ea8ba864
Use fromisoformat method from datetime module
...
issue11637
review411551003
2022-09-08 13:10:15 +02:00
Cédric Krier
6cbe67529d
Set full domain in validation error as fallback
...
issue11603
review439271003
2022-08-07 23:42:57 +02:00
Cédric Krier
3b55a8d341
Include record name and value in validation error message
...
issue5581
review26711002
2022-08-06 23:05:40 +02:00
Cédric Krier
0749ba597b
Add missing column argument to msg_relation_not_found formatting
...
issue11615
review423531004
2022-08-01 10:57:00 +02:00
Cédric Krier
f2c57af55e
Translate view in view_get instead of when parsing view
...
This is needed when the inheritance is from a different model.
issue11591
review417521003
2022-07-19 20:57:47 +02:00
Cédric Krier
975abfd252
Use alias expression in where clause of implicit join
...
issue11486
2022-07-18 10:02:12 +02:00
Cédric Krier
31811487ab
Add implicit join clause to subquery of where clause on Many2One
...
This modify the complexity of the SubPlan from O(n^2) to O(n log(n)) thanks to
the index on the primary key.
issue11486
review415121003
2022-07-18 00:18:41 +02:00
Sergi Almacellas Abellana
4db0e2dd8e
Add header parameter on export data
...
issue9301
review439151003
2022-07-01 12:45:38 +02:00
Cédric Krier
3bfcb08ab1
Do not skip eager load for field in cache but depending on non-cached fields
...
and filter sibling ids only if all the needed fields are in caches.
issue11481
review419131003
2022-06-08 09:21:38 +02:00
Cédric Krier
f6321fefe5
Do not group PYSON domains of Reference field
...
Each domain depend on the target so they can not be grouped into a single OR-ed
domain.
issue11544
review437141003
2022-06-08 09:19:40 +02:00
Cédric Krier
67582d6bd8
Ignore write and delete rule domains if they are the same as the read domain
...
issue11480
review419121003
2022-05-31 23:47:56 +02:00
Adrià Tarroja Caubet
1b54b30a7c
Do not copy avatars nor uuid
...
issue11518
review433161003
2022-05-25 17:38:34 +02:00
Cédric Krier
38edc41514
Ignore invalid Reference field when reading related fields
...
issue11484
review449081003
2022-05-19 22:02:33 +02:00
Nicolas Évrard
7e4150ca3f
Read at most cache size or IN_MAX records from the database
...
issue11468
review427111003
2022-05-10 15:24:37 +02:00
Cédric Krier
a5ac7ba55c
Use singleton for TableHandler
...
issue11301
review366861002
2022-05-07 11:35:14 +02:00
Nicolas Évrard
2bac806bbd
Remove python2 compatibility code from fields.Binary
...
issue11467
review411111003
2022-05-06 18:18:01 +02:00
Nicolas Évrard
769c997024
Remove user login and user preferences cache
...
The user login cache could result in an error when using trytond in a
multiprocess environment due to a delay in the broadcast of the cache
invalidation.
The user preferences cache was there only to set the context when validating
the records but it is useless since the context is now set from the
transaction.
review401251002
issue11430
2022-04-29 17:14:27 +02:00
Cédric Krier
ef181c33dd
Negate the origin expression of Many2Many with 'not where' operator
...
issue11425
review403401002
2022-04-27 17:51:52 +02:00
Cédric Krier
656fdc9729
Dumps Dict values in UTF-8 instead of ASCII
...
This is how they are stored in the database and so we must use also the UTF-8
version when using unaccent to properly remove the accents.
issue11418
2022-04-18 19:40:01 +02:00
Cédric Krier
38efaaf887
Escape wildcard in tree separator for name domain
...
issue11321
review356281002
2022-04-16 11:25:38 +02:00
Cédric Krier
4ecc0c4c71
Add notification message
...
issue11065
review367951004
2022-04-11 23:41:21 +02:00
Cédric Krier
fcbe0df011
Add validate_fields to ModelStorage
...
issue11303
review386191002
2022-04-11 23:24:21 +02:00
Cédric Krier
d891753f56
Clean import
2022-04-09 00:00:16 +02:00
Cédric Krier
d80325acf3
Add datetime_field, filename and digits to display_depends
...
issue11134
2022-04-09 00:05:27 +02:00
Cédric Krier
2f85de3b31
Import cached_property from trytond tools
2022-04-08 21:56:25 +02:00
Nicolas Évrard
ccd48d320c
Send only the required fields when fetching a readonly view definition
...
issue11134
review380081002
2022-04-08 19:07:14 +02:00
Cédric Krier
860fb136e0
Update rec_name of tree with on_change
...
issue11021
review403131002
2022-04-08 09:55:23 +02:00
Cédric Krier
1c55eee094
Manage DatabaseDataError in ModelSQL
...
issue11314
review399111003
2022-04-04 00:35:38 +02:00
Cédric Krier
60a6d5f390
Do not import empty One2Many data
...
issue11308
review388081002
2022-04-04 00:11:26 +02:00
Cédric Krier
7c8e01c08d
Prevent to create and delete singleton
...
issue1639
review378481002
2022-03-26 13:03:39 +01:00
Cédric Krier
57b1e4b69d
Support PYSON size for Char field
...
issue11315
review390241005
2022-03-26 12:00:33 +01:00
Cédric Krier
9c4d0aa334
Always return tuple for MultiSelection
...
issue11282
review361021002
2022-03-20 01:45:22 +01:00
Cédric Krier
33d19bd8f5
Backed out changeset d645aee76ab0
...
issue11262
2022-03-20 01:32:04 +01:00
Cédric Krier
56c18b8a1c
Protect against XML vulnerabilities
...
issue11219
issue11244
2022-03-01 19:07:56 +01:00
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
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
Cédric Krier
731009e3ab
Replace ilike operator by like on Reference
...
issue11203
review395431002
2022-02-17 00:48:06 +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
2495c0cbdd
Order unsorted Selection by index definition
...
issue11169
review387771003
2022-02-15 00:06:57 +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
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