Commit Graph
59092 Commits
Author SHA1 Message Date
Cédric Krier fdd00582b6 Change current record for the first selected only if there is no current record
#4028 added the behavior to apply the selected record also on form view the
first time.
But when switching to a calendar view from a form view, the tree states is
stored with the current record. If the calendar view is cleared (always with
sao via the search_filter), then the tree_states_done is cleared and on the
second switch to the form view the current record is override by record stored
in the tree states (from the first form switch).

Closes #13939
(grafted from 5719977cd18ed02fc485a0bc8be4abc6b4aec6b3)

--HG--
branch : 7.0
2025-03-26 20:07:54 +01:00
Nicolas Évrard 63c5db6aa2 Add selection_change_with to Selection field's edition_depends
Closes #13959
(grafted from a7d89bca1f04329bf43b2ccf644eeacbe077837d)

--HG--
branch : 7.0
2025-04-03 16:33:47 +02:00
Cédric Krier d0808b5c76 Restore asynchronous save but protected by a single promise
The write RPC must be done asynchronously in order to manage any concurrency
exception.
But the asynchronous RPC can only be done sequentially, so we ensure there can
be only one single pending promise.

Closes #13940
(grafted from 8b075636539246e8372b8f2500bd093a5862fe24)

--HG--
branch : 7.0
2025-03-25 13:49:53 +01:00
Cédric Krier 233a1b08a5 Do not set more than the fulfillable quantity in Shopify fulfillment
Closes #13956
(grafted from d22f5b7dd4f21624c0360c6a1a6ca16d04abc6d5)

--HG--
branch : 7.0
2025-04-02 17:29:47 +02:00
Cédric Krier 7d8cf17026 Check for new record only when saving an actual current record
49cbc9b99ed8 added the calculation of a new variable but before the test that a
current record is actually being saved.

Closes #13946
(grafted from 383b2df462a149197e6e795d595aa3ae1d07f611)

--HG--
branch : 7.0
2025-03-28 16:04:21 +01:00
Cédric Krier 0504a0e766 Ensure the contextual company is not None and positive before using it
Closes #13868
(grafted from 0ea68af90f3ef7059c7c9c7a33d13fa216e23bc4)

--HG--
branch : 7.0
2025-03-10 23:43:49 +01:00
Cédric Krier 586bb4c223 Increase delay between transaction retries
Since c8771e45b861 the retry is no more a countdown but an increasing count, so
the sleep time must be adapted to also increase over retries.

Closes #13910
(grafted from ec79b27486baf92769bef216aa4e5316ac708537)

--HG--
branch : 7.0
2025-03-07 21:54:11 +01:00
Cédric Krier 753b752995 Increase version number
--HG--
branch : 7.0
2025-04-03 01:09:32 +02:00
Cédric Krier d1e8998ea8 Add tag account_move_line_grouping-7.0.1
--HG--
branch : 7.0
2025-04-03 01:09:25 +02:00
Cédric Krier 5890da46cc Prepare release account_move_line_grouping-7.0.1
--HG--
branch : 7.0
2025-04-03 01:09:24 +02:00
Cédric Krier 7ffedd8298 Increase version number
--HG--
branch : 7.0
2025-04-03 01:04:23 +02:00
Cédric Krier 04fbed1efe Add tag account_statement-7.0.4
--HG--
branch : 7.0
2025-04-03 01:04:15 +02:00
Cédric Krier cf7439d52b Prepare release account_statement-7.0.4
--HG--
branch : 7.0
2025-04-03 01:04:14 +02:00
Cédric Krier fe7f71adc2 Increase version number
--HG--
branch : 7.0
2025-04-03 01:00:49 +02:00
Cédric Krier 9dc0f352d5 Add tag purchase-7.0.11
--HG--
branch : 7.0
2025-04-03 01:00:41 +02:00
Cédric Krier 043c90f955 Prepare release purchase-7.0.11
--HG--
branch : 7.0
2025-04-03 01:00:40 +02:00
Cédric Krier e5c701191b Increase version number
--HG--
branch : 7.0
2025-04-03 00:58:46 +02:00
Cédric Krier 43bae267aa Add tag purchase_secondary_unit-7.0.2
--HG--
branch : 7.0
2025-04-03 00:58:39 +02:00
Cédric Krier ef60424b0b Prepare release purchase_secondary_unit-7.0.2
--HG--
branch : 7.0
2025-04-03 00:58:38 +02:00
Cédric Krier 24b2801dc0 Increase version number
--HG--
branch : 7.0
2025-04-03 00:54:46 +02:00
Cédric Krier 3b2e5efd81 Add tag sale-7.0.12
--HG--
branch : 7.0
2025-04-03 00:54:38 +02:00
Cédric Krier a305042f4c Prepare release sale-7.0.12
--HG--
branch : 7.0
2025-04-03 00:54:37 +02:00
Cédric Krier 092b034103 Increase version number
--HG--
branch : 7.0
2025-04-03 00:49:20 +02:00
Cédric Krier ca4faa3450 Add tag sale_secondary_unit-7.0.2
--HG--
branch : 7.0
2025-04-03 00:49:13 +02:00
Cédric Krier 0f59e022e7 Prepare release sale_secondary_unit-7.0.2
--HG--
branch : 7.0
2025-04-03 00:49:11 +02:00
Cédric Krier e4addb16ae Increase version number
--HG--
branch : 7.0
2025-04-03 00:45:39 +02:00
Cédric Krier 9ceadcb294 Add tag sao-7.0.27
--HG--
branch : 7.0
2025-04-03 00:45:35 +02:00
Cédric Krier a6998eab13 Prepare release sao-7.0.27
--HG--
branch : 7.0
2025-04-03 00:45:34 +02:00
Cédric Krier f8d1abf249 Increase version number
--HG--
branch : 7.0
2025-04-03 00:41:39 +02:00
Cédric Krier 9919dbc13c Add tag tryton-7.0.23
--HG--
branch : 7.0
2025-04-03 00:41:29 +02:00
Cédric Krier 664b8f1ebd Prepare release tryton-7.0.23
--HG--
branch : 7.0
2025-04-03 00:41:28 +02:00
Cédric Krier 9543d0f3aa Increase version number
--HG--
branch : 7.0
2025-04-03 00:39:10 +02:00
Cédric Krier 8801031167 Add tag trytond-7.0.29
--HG--
branch : 7.0
2025-04-03 00:39:00 +02:00
Cédric Krier cd94a6cc89 Prepare release trytond-7.0.29
--HG--
branch : 7.0
2025-04-03 00:38:59 +02:00
Cédric Krier a3ce0f59e9 Require PyGObject before 3.51
The GenericTreeModel from pygtkcompat has been removed.

#13855
(grafted from d7050674aabe4ecc3c986f6ab7a474ab4f89afcf)

--HG--
branch : 7.0
2025-02-01 16:29:52 +01:00
Cédric Krier 040b00fa61 Compare integrity error message with the constraint name prefixed by the table name
The TableHandler adds the table name as prefix to the constraint name so when
comparing with the integrity error message, it should also be added.
Especially if the constraint name is hashed by the TableHandler conversion
because the result is completely different.

Closes #13922
(grafted from 57e97b6d957e1b472eea3fb7bbdf2ecf03abfc6a)

--HG--
branch : 7.0
2025-03-15 13:31:57 +01:00
Cédric Krier 5b686b85bb Filter out reconciled lines from debit/credit/secondary amount of account grouped line
It is needed to calculate the payable/receivable balance of grouped lines when
it is partially reconciled.

Closes #13918
(grafted from 58ca406deef42eabe0b9794db5a8c082a1097bcc)

--HG--
branch : 7.0
2025-03-13 19:09:04 +01:00
Cédric Krier 0ef0668e79 Set party of statement line readonly when state is not draft
We must keep existing states when adding required states to party.

Closes #13916
(grafted from 1d22a245f92e3c24fa7dcc794b32b81b84305c82)

--HG--
branch : 7.0
2025-03-13 12:56:38 +01:00
Maxime Richez a204858a05 Add missing depends on rate and factor to calculate unit price from second unit of blanket line
Closes #13932
(grafted from 99d844230aced4a60aa6ed85b6490e1a44cea557)

--HG--
branch : 7.0
2025-03-21 10:50:23 +01:00
Cédric Krier 69930332b9 Do not include record with NULL field in nested negative clause on None
Since 87456218dcc9, record with NULL field is include in nested negative clause
but this should not applied if the operand is or contains None.

Closes #13911
(grafted from 993d890dd786424c2cd00009045ad95a09075e72)

--HG--
branch : 7.0
2025-03-09 11:23:43 +01:00
Cédric Krier 64c7879274 Query the database after each timeout of the listeners
This permit to keep the connection alive when the database is killing idle
connections.

Closes #13902
(grafted from 12e80f41c37e1f77d1ae539e84989956a70da0d9)

--HG--
branch : 7.0
2025-03-04 23:00:16 +01:00
Adrià Tarroja Caubet 3d7d17d165 Open CSV export file using with newline translation
The csv documentation [1] explains that file object used in writer should be
opened with newline as empty string.

[1] https://docs.python.org/3/library/csv.html

Closes #12115
(grafted from c07aae86c7fe87715994f0e82177980b9907dc3f)

--HG--
branch : 7.0
2025-03-26 18:09:18 +01:00
Cédric Krier 955d9c1e90 Convert empty string to None for match value
It is not possible from the clients to force to store None value instead of
empty string.

Closes #13890
(grafted from f7b12ada27377ec42a05b539791855e6f64c497f)

--HG--
branch : 7.0
2025-02-26 23:51:39 +01:00
Cédric Krier 0cb50865bd Do not use instanceof on value of Date and DateTime of Dict field
Instead we must use the attributes isDate and isDateTime.

Closes #13845
(grafted from c5b215bb328104a51f8d26d1f3e9e50f588d6568)

--HG--
branch : 7.0
2025-03-10 11:06:00 +01:00
Cédric Krier be3de61310 Convert list/tuple value to list of IDs only if it contains records
The Modify Header set the start value from the sale or purchase values but when
it is a list or a tuple, it should also ensure it contains records before
converting to a list of ids.

Closes #13915
(grafted from 35fc6e3d271b4eeb7ef123f58085836fdab77228)

--HG--
branch : 7.0
2025-03-10 23:26:14 +01:00
Cédric Krier 8b8ba3decc Increase version number
--HG--
branch : 7.0
2025-03-15 23:21:42 +01:00
Cédric Krier 438589585f Add tag account_payment-7.0.4
--HG--
branch : 7.0
2025-03-15 23:21:35 +01:00
Cédric Krier 93b47e101b Prepare release account_payment-7.0.4
--HG--
branch : 7.0
2025-03-15 23:21:34 +01:00
Cédric Krier 3e4b56445b Increase version number
--HG--
branch : 7.0
2025-03-15 23:19:49 +01:00
Cédric Krier 3a5c4b3441 Add tag account_payment_sepa-7.0.3
--HG--
branch : 7.0
2025-03-15 23:19:41 +01:00