Cédric Krier
b708094026
Make trytond-gis depends on the trytond extras test for its tests
2025-06-01 23:19:18 +02:00
Cédric Krier
ae71913833
Add transition from packed to cancelled for internal shipment
...
Since fee9e4e8c864 the internal shipment has a new packed state that can be
cancelled.
Closes #14053
2025-06-05 16:43:10 +02:00
Xavi Hermoso
3e4fea4b3c
Set default flag to False in Own Requisition rule group as it is linked to Purchase Requisition group
...
Closes #13930
2025-03-20 12:22:47 +01:00
Cédric Krier
733df9d2dd
Use the configured display size when selected or expanded row are defined
...
This ensure that we store on the view the selected/expanded rows by displaying
them after a reload.
Closes #14048
2025-06-01 12:49:28 +02:00
Cédric Krier
eb7336c1c4
Delay the observation of the more button
...
#14048
2025-06-01 12:46:57 +02:00
Cédric Krier
c37abac5dc
Do not save tree state when setting value on form view
2025-06-01 12:45:53 +02:00
Cédric Krier
8e1e68727d
Always wait for the promise of save_tree_state
...
#14048
2025-06-01 12:45:06 +02:00
Cédric Krier
312ae7b387
Forbid to set closed account on statement rule line
...
The domain must be the same as account domain of statement line.
2025-05-31 14:41:01 +02:00
Cédric Krier
75ccdb1ba2
Use -1 as fallback value for company in account domain of statement line
2025-05-31 14:40:02 +02:00
Sergi Almacellas Abellana
e61ed092f6
Remove debug exception introduced by 2fbe3b55927a
2025-06-12 10:54:46 +02:00
Cédric Krier
1bc9046fbe
Add test scenario for tax test wizard
2025-05-30 21:36:23 +02:00
Cédric Krier
a4a655b05e
Use explicit key when computing taxes and object instead of dict
...
This defines explicitly the available attribute and unify the use the values as
tax line instead of the keys.
2025-05-30 21:35:55 +02:00
Cédric Krier
cc8901276e
Round only the tax amount of the line when rounding per line
...
If we round the tax amount already added to the other line, the result may vary
depending on the order of the lines.
This is because round half even is used so the result may depend on the already
summed tax amounts.
Closes #14047
2025-05-30 18:10:27 +02:00
Cédric Krier
c710994e2e
Store the selected state before deselect all the rows
...
We must toggle the state of the row based on the original state.
Otherwise on single mode, clicking on a selected row keep it selected.
Closes #14045
2025-05-28 18:15:07 +02:00
Cédric Krier
45d3a25343
Unselect other rows when radio button of row is selected
...
The selection of a radio button, deselect automatically the other radio button
so we must update the selection of other rows to remove the selected class.
Closes #14044
2025-05-28 18:11:23 +02:00
Cédric Krier
bd4b030518
Change the border color of checkbox and radio when focus
...
This provides a visual hint that the element has the focus.
Closes #14043
2025-05-28 18:05:16 +02:00
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