Sergi Almacellas Abellana
e73ff8af6a
Remove the empty notebook pages caused by field access
...
Closes #14157
2025-08-31 11:04:16 +02:00
Lars Wuerfel
26d931f238
Correct typos in the report documentation
2025-07-23 10:44:12 +02:00
Cédric Krier
20109ca332
Fix highlight syntax of board documentation
2025-06-26 19:05:43 +02:00
Cédric Krier
d33a0e9cb0
Remove metadata columns from tutorial of table query
...
Since 5095928ec38a those columns are added automatically.
2025-05-10 19:38:24 +02:00
Cédric Krier
411392bb09
Use constant-time to compare session key
2025-08-07 20:55:20 +02:00
Cédric Krier
dec047d676
Do not check www.gnu.org URLs
...
The server has a rate limit that the CI reaches.
2025-08-01 09:39:50 +02:00
Nicolas Évrard
65c93a338e
Use the canonical name of the test timezone
...
Closes #14170
2025-08-18 11:35:25 +02:00
Cédric Krier
16cbeeee2c
Use rfc role in documentation and ignore checking datatracker.ietf.org links
2025-05-03 17:10:58 +02:00
Cédric Krier
acc9c6972a
Add test to enforce One2Many Function field to have a setter
...
The clients may always try to write on One2Many even if it is readonly so such
Function field must have a setter.
Closes #8739
2025-06-17 15:02:55 +02:00
Cédric Krier
c5600c0f9b
Set multiple to some buttons on list view
2025-06-16 12:24:16 +02:00
Cédric Krier
b88d9004ef
Replace menu entry for upgrade module wizard by multiple button on module list
2025-06-13 17:40:28 +02:00
Cédric Krier
9058fc381d
Simplify buttons of module
2025-06-13 17:41:01 +02:00
Cédric Krier
e994731e14
Add multiple attribute to the buttons in the tree view
...
Closes #14072
2025-06-13 17:34:39 +02:00
Cédric Krier
b0f7d45254
Manage readonly wizard
...
readonly wizards do not check for write access on the active model.
Closes #13989
2025-04-29 09:31:05 +02:00
Cédric Krier
ee76d45fd8
Add test for methods of buttons
...
Closes #14121
2025-07-15 17:45:56 +02:00
Cédric Krier
d0332b3852
Set default values for fields of button_change decorator
...
Closes #14120
2025-07-15 17:37:59 +02:00
Nicolas Évrard
8d7279778b
Get ir.model Model from the pool
...
Closes #14131
2025-07-23 18:01:24 +02:00
Cédric Krier
750bfe2045
Do not convert integer value from binary function field
...
Binary fields can have two types bytes and integer when only the size is
requested. So integer value should not be converted to bytes.
Closes #14100
2025-07-03 23:10:30 +02:00
Cédric Krier
8ce69b1055
Use only foreign Many2One for domain on field for field access
...
The Char fields are not filled when using the foreign Many2One so the domain
must rely only on the foreign Many2One.
Closes #14081
2025-06-17 15:25:09 +02:00
Cédric Krier
380f7c6941
Slugify filename of email attachment
...
This gives more chance for the email to not be blocked as some mail server
implement restrictions on the filename of attachment.
Closes #14074
2025-06-15 12:19:39 +02:00
Cédric Krier
1fc8fa8809
Use chain to iterate over records to create and to write
2025-06-29 19:14:36 +02:00
Cédric Krier
dbb65081b0
Do not restore values for created records when exception is raised when saving
...
Once a record has been created, the id is modified which change its hash value
such that it can not be found anymore.
But as the creation succeeded (and only the write part has failed) we can just
restore the values to None.
Closes #14093
2025-06-29 19:13:42 +02:00
Cédric Krier
4238add5e3
Do not set Content-Length header to data response
...
Since version 0.8 werkzeug set the header automatically by default.
Closes #14010
2025-06-21 23:02:52 +02:00
Nicolas Évrard
69690daa2c
Fix a typo introduced in 71bad2d56f96
2025-07-02 01:02:22 +02:00
Cédric Krier
b63c28503c
Use recursive CTE for child/parent-of clause when the number of ids is too large
...
The path or MPTT queries are faster than the recursive CTE only when the number
of OR-ed clauses does not require more index scan than the CTE.
This number can be approximate to the depth of the tree.
Log10 is used to estimate the depth of the tree if it has an average of 10
children per node.
Closes #14078
2025-06-16 13:48:00 +02:00
Cédric Krier
ea1393bb84
Reduce the clauses of child-of using common roots
...
For the path, if the longer path contains another searched path, we can ignore
it.
For MPTT, if a range is inside a larger range, we can also ignore it.
Closes #14064
2025-06-10 23:22:01 +02:00
Cédric Krier
6718a613cf
Convert UnidentifiedImageError from PIL into validation error
...
The image conversion that are done as preprocessing of the user input should be
considered as data validation.
Closes #14084
2025-06-18 01:26:39 +02:00
Cédric Krier
c3a9faea42
Convert domain without checking access
...
The searcher of Function field may execute code for which the user has no
access.
Closes #14077
2025-06-16 19:42:12 +02:00
Cédric Krier
98f6f4b037
Convert tuple from XML ID into string before join them
...
9941357a9b7c modified the 'ref' method of the eval context of XML file to
return reference string but get_id return a tuple of string and integer. So the
integer must be converted to string before being joined.
Closes #14066
2025-06-19 09:45:55 +02:00
Cédric Krier
a41611ddd5
Do not fail if the cache name to clear does not exist
...
Cache instance can be created on usage like in ValueMixin, so a process may not
have an instance of the cleared cache.
Closes #14067
2025-06-12 12:48:22 +02:00
Maxime Richez
207f097a95
Do not check access when register button click
...
e6c72b1f23e7 missed to add the decorator on the register method.
Closes #14060
2025-06-19 23:40:11 +02:00
Cédric Krier
1921487213
Replace the usage of field definitions with field attributes in the ModelStorage
...
Model.fields_get is expensive to call as it create a new dictionary for each field.
Closes #14061
2025-06-10 14:31:11 +02:00
Cédric Krier
5e560afbdc
Do not use field definitions when exporting data
...
Calling Model.fields_get is expensive especially for each record to export.
Closes #14061
2025-06-10 14:29:07 +02:00
Cédric Krier
16d36ff2f7
Export Many2One and Reference using record name
2025-05-21 17:03:43 +02:00
Cédric Krier
d769ff12c3
Support import of one2many as list of name
2025-05-21 17:03:21 +02:00
Cédric Krier
eab2b6deb0
Support export of xxx2many fields as list of name
2025-05-21 17:00:31 +02:00
Cédric Krier
9843587815
Import multiselection field as CSV list
...
Closes #13995
2025-05-21 16:58:36 +02:00
Cédric Krier
840a342214
Export multiselection field as CSV list
...
Closes #13995
2025-05-21 18:38:40 +02:00
Cédric Krier
0ad9570070
Document preferred languages order for get_email
2025-05-23 17:13:37 +02:00
Cédric Krier
5307e3303a
Set email content with maintype when needed and correctly set Content-Language header
...
When the content is not a string, EmailMessage.set_content requires a maintype
argument but not when it is a string. The maintype is then deduced using the
mimetypes module.
The Content-Language of content or alternate must be set using the headers
parameter instead of params which is for the Content-Type.
And finally the Content-Language must be set on the main message only if it
contains multiparts otherwise it is set twice.
Closes #14028
2025-05-23 17:07:57 +02:00
Nicolas Évrard
d3f93b46f8
Use class access model when testing for parent access
2025-05-22 10:59:36 +02:00
Cédric Krier
c22cef7e23
Remove empty files when exporting translations of a module
...
If the module has no translations, no file should be created. If they exist,
they must be removed.
Closes #14021
2025-05-15 13:33:44 +02:00
Nicolas Évrard
a190aae17f
Remove notification events from the queue after the wait times out
...
Closes #14022
2025-05-14 12:12:54 +02:00
Cédric Krier
d58b9e2d90
Set Message-Id to email sent
...
Closes #13974
2025-04-14 15:56:38 +02:00
Cédric Krier
301982d6f2
Add pair/unpair in tools
2025-04-30 15:12:49 +02:00
Cédric Krier
4b906352b1
Add tests for view tree width
2025-05-04 10:11:03 +02:00
Cédric Krier
a69b2b6b69
Delete tree width records when field is set multiple times
...
There is no unique constraint so the method to set width should not rely on the
unicity of the field per screen size.
Closes #13997
2025-05-04 08:40:40 +02:00
Cédric Krier
5738a5fb46
Do not precede negative currency symbol in Italian
2025-04-10 09:10:12 +02:00
Cédric Krier
ae5b18eba0
Increase version number
2025-04-28 16:40:56 +02:00
Cédric Krier
04487b81d4
Prepare release 7.6.0
2025-04-28 16:12:25 +02:00