Commit Graph
59482 Commits
Author SHA1 Message Date
Cédric Krier eadd7bcffe Do not execute tab shortcuts if there is a modal open
The modals are linked to the current tab so we can not change the tab as long
as there is a modal.

Closes #14042
2025-05-28 18:02:21 +02:00
Cédric Krier e88fea9fc6 Apply filter on icon under primary background
Otherwise the icon is not visible as it has the same color as the background.

Closes #14032
2025-05-21 17:10:34 +02:00
Cédric Krier d10a8a243f Remove thousand separator when converting domain string to float
Since c8d97fac the domain parser format number using locale but the atof
function does not remove the thousand separator which could prevent Number to
parse the string.

Closes #14024
2025-05-23 12:53:44 +02:00
Cédric Krier 095ac6509b Use first description of statement lines as description of move line without origin
Closes #14038
2025-05-27 20:00:18 +02:00
Cédric Krier b859ee5074 Invert boolean operator when searching description with negative operator
Closes #14037
2025-05-27 19:57:03 +02:00
Maxime Richez 676050ff70 Remove useless variable quantity in explode_bom method
Closes #14036
2025-05-27 19:54:43 +02:00
Cédric Krier 6e49fd3e79 Add closed constraint on default receivable/payable account of configuration storage
The same domain constraint from the multivalue field must be applied to the
storage field.
2025-05-25 17:09:45 +02:00
Cédric Krier 98db94d3ef Remove explicit record name from export of relation field
This provides the same format as the import.
2025-05-21 17:02:51 +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 10c273d576 Avoid parsing image content as XML is they do not look like XML
This prevent the browser to log an error in the console.
Also we test for the presence of svg tag to be sure it is an svg image.

Closes #14019
2025-05-14 12:56:23 +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 db95c26b09 Store URL to open before getting the preferences
The preferences may execute actions which may change the original URL at the
login. Such that the original URL is never open.
This is more visible since ac5d71376fca which makes the actions sequential.

Closes #13975
2025-05-21 11:16:56 +02:00
Cédric Krier 0d361542fe Do not use state Function field of line to check against modification
The Function field is an helper to write PYSON statement so there is no need to
use it for checks.

Closes #14002
2025-05-08 18:36:13 +02:00
Cédric Krier 18e995089f Fix placeholder errors in tryton translations 2025-05-20 00:09:51 +02:00
Cédric Krier 6159c55203 Set default value via domain inversion only when deferred operand is id
Other cases for deferred operand can not be deduced as unique for sure.

Closes #14005
2025-05-08 18:22:54 +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
Cédric Krier ed7285d6a0 Iterate on the result of items call to update values set by on_change on O2M
e38f2298 introduces wrongly the iteration over the function instead of the result.

Closes #14014
2025-05-12 12:36:10 +02:00
Sergi Almacellas Abellana 9ef6152a16 Do not require result nor type for inactive documents
Otherwise children documents can not be processed because the parent document
raises a RequiredValidationError when saved

Closes #14015
2025-05-12 15:17:26 +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
Maxime Richez 4cf2384552 Set empty currency and unit price on stock move when not required
Closes #14023
2025-05-16 13:20:28 +02:00
Nicolas Évrard 2b8f96f8aa Use the initial precision when applying factor to a field without digits
Without digits the full representation of the number is used which might not
be the expected behaviour because applying the factor will result in a number
which short representation could be surprising to the user.

Closes #10460
2025-05-19 11:31:28 +02:00
Cédric Krier 686c3eff35 Test on_change_notification_email of trigger 2025-05-12 00:10:33 +02:00
Cédric Krier d56984a386 Search notification email model by name
Since a4f34799 the field containing the name of the model is 'name'.

Closes #14006
2025-05-12 00:10:13 +02:00
Sergi Almacellas Abellana 9487cbe10d Make bom notebook fill all form columns
Closes #14007
2025-05-09 14:07:31 +02:00
Cédric Krier d58b9e2d90 Set Message-Id to email sent
Closes #13974
2025-04-14 15:56:38 +02:00
Sergi Almacellas Abellana 4da84d5b3f Fill unknown country only for move with an intrastat type and one empty country
Closes #14008
2025-05-11 01:26:47 +02:00
Cédric Krier 41993306bf Use pairing to generate unique ID for purchase reporting
Purchase reporting are also grouped by currency so they should be part of the
ID.

Closes #13743
2025-05-05 15:07:27 +02:00
Cédric Krier 301982d6f2 Add pair/unpair in tools 2025-04-30 15:12:49 +02:00
Cédric Krier 7226268a08 Consider any field of new record as loaded
It is needed to trigger the validation of all the fields to set default value
thanks to the domain inversion.

Closes #14004
2025-05-08 18:15:25 +02:00
Cédric Krier 30c5744433 Fix message ID for unique constraint on move sequence of fiscal year
Closes #13996
2025-05-08 09:28:55 +02:00
Cédric Krier 4bda4705f1 Do not fail to reload modified view without a current record
It may happen that a tree view is considered as modified even if there is no
current record. In this case we should not try to compare the id of the current
record before and after reload as it is not defined.

Closes #13998
2025-05-05 12:33:01 +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 39ddf8b838 Update label of window form only if it exists
The update of label was introduced in 89834116fe97 but the label is defined
only when the window form is created with the view type tree.

Closes #13994
2025-04-30 17:22:58 +02:00
Cédric Krier 581ffa80fa Set width to 100% on object of document widget
Closes #14000
2025-05-05 23:37:57 +02:00
Cédric Krier 5760ae39cb Set a background color to head and foot row of tree view table
Since ee297f4d7eea the sticky position is put on the row so it can no more be
transparent.

Closes #13993
2025-04-29 23:28:59 +02:00
Cédric Krier 30b867691a Use larger translation dialog for expanded widget
Closes #13987
2025-04-28 22:12:01 +02:00
Cédric Krier 56a3bd14d9 Set richtext widget inside an .input-group in translation dialog
It is needed to benefit from 6e2ff4b6.

Closes #13987
2025-04-28 22:10:50 +02:00
Cédric Krier 524c3b3cce Hide resizer of last column of tree view
This prevents the table to overflow and create an horizontal scrollbar because
of the negative inset.

Closes #13992
2025-04-29 23:24:16 +02:00
Cédric Krier d1e96023aa Set direction to column for text and richtext widget
Such that the toolbar is put on top and the input is taking the remaining
vertical space.

Closes #13986
2025-04-28 22:07:40 +02:00
Cédric Krier 47c173f74b Do not use OFX balance statement if the balance date is not the statement end date
The bank can put a balance for the statement at a different date than the end
date of the statement. But for Tryton the end balance must be the balance at
the end of the statement.

Closes #13982
2025-04-25 17:29:38 +02:00
Cédric Krier 8348ca4379 Increase minimal ECMAScript version to 8 2025-04-14 17:22:34 +02:00
Cédric Krier 8af876568f Do not deduce pending payments linked to a line from direct debit balance
The balance is calculated using the payment amount of the line which already
deduce the pending payment amount.
So such payment should not be deduced a second times from the balance.

Closes #13973
2025-04-14 12:00:58 +02:00
Cédric Krier e7fb100d8f Increase display size only once per more row
This ensures that the growing rate between display size and rows is the same.

Closes #13972
2025-04-14 09:52:31 +02:00