Commit Graph
59465 Commits
Author SHA1 Message Date
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
Cédric Krier 5b01323986 Coalesce boolean account type columns on negative clause
In SQL the negation of NULL is still NULL.

Closes #13967
2025-04-11 09:24:13 +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 c6b4b64482 Fix typo in the label and help of address format 2025-04-27 17:52:46 +02:00
Cédric Krier 296532218f Declare vals_to_set on the common block where it is used
e38f22986aac reuse vals_to_set later so linter may complain about it not being
defined.
2025-04-30 08:44:05 +02:00
Cédric Krier ae5b18eba0 Increase version number 2025-04-28 16:40:56 +02:00
Cédric Krier 91eb68f809 Add tag 7.6.0 2025-04-28 16:12:38 +02:00
Cédric Krier 04487b81d4 Prepare release 7.6.0 2025-04-28 16:12:25 +02:00
Cédric Krier 57b8d11d22 Always fill debit and credit of grouped account move line
The inherited MoveLineMixin is expecting those fields to be always filled.

Closes #13976
2025-04-18 12:30:59 +02:00
Cédric Krier 8c6eb00c2a Update incoterm scenario to use building name instead of name for warehouse address 2025-04-27 17:30:04 +02:00
Cédric Krier 87c3982ec2 Use full address to build Google Maps URL 2025-04-27 17:29:24 +02:00
Cédric Krier f11bb1bd42 Update UN/CEFACT CrossIndustryInvoice template to use structured address
Use unstructured street for Line and fill StreetName and BuildingNumber with
structured values.
2025-04-27 17:28:49 +02:00
Cédric Krier 12ce1f5c19 Update SEPA template to use structured address values
Use unstructured street as AdrLine and fill StrtNm and BldgNb with the
structured values.
2025-04-27 17:26:50 +02:00
Cédric Krier 2e1d79d050 Do not lock table on SQLite when checking unsupported constraint
It is not needed as SQLite does not have an explicit lock mechanism but such
call restart the transaction anyway.
2025-04-27 17:20:45 +02:00
Cédric Krier b85d6e9efa Update translations [skip ci] 2025-04-27 11:36:15 +02:00
Cédric Krier 1c794eae1b Use locale format in domain parser and search filter for numbers
Closes #13966
2025-04-07 23:43:31 +02:00
Cédric Krier 8b1c044274 Do not clear non unique help translation
The help translations may be composed of partitioned strings.

Closes #13978
2025-04-23 18:32:04 +02:00
Cédric Krier dedbd6df06 Reset to quotation Shopify sale with insufficient authorized payment amount
Shopify order can be modified from the admin in such way that the total
increase and it is only partially paid.
In such case we must prevent to process the sale by resetting to quotation
until being fully paid.

Closes #13961
2025-04-03 17:21:15 +02:00