Commit Graph
51547 Commits
Author SHA1 Message Date
Cédric Krier 36aa3a5aed Discard disconnected connection from the pool
When a connection in the pool is disconnected, it stays in the pool and it may
still be served.
Using such connection raise an OperationalError and so the request is retried
but before that the connection is put back to the pool. So we may get it back
again.
It is not possible to distinct between an OperationalError due to a
disconnection or due to a isolation error for example.
So with the current design of Transaction API, an OperationalError always put
back the connection to the pool.
This main that we can only ensure that the connections served are still
connected by executing a simple query. And close connections that are failing.

Closes #12452
(grafted from f8aaf62a0c7508e3f3398e47dc2b86e6f8f06cc0)

--HG--
branch : 6.0
2023-08-04 15:59:35 +02:00
Cédric Krier 0861096f67 Use only stock move with cost price for product cost price history
The cost price on stock move is only required by validation so we can not
ensure over time that all the stock moves selected have a cost price.

Closes #12468
(grafted from adea1ec5dd32ec8f1a353a6f3105b82707485914)

--HG--
branch : 6.0
2023-08-12 20:10:06 +02:00
Cédric Krier 696e8095cc Try to post only clearing move of journals from the contextual company
Closes #12453
(grafted from b71b06a871a7fb67a202f1ae242a04185078c614)

--HG--
branch : 6.0
2023-08-05 00:27:11 +02:00
Cédric Krier b2b1163812 Generate invoices and consumptions only for contextual company
Closes #12345
(grafted from 9ca33a199252180c7875438b2f5c241d8e5b6829)

--HG--
branch : 6.0
2023-07-24 23:51:00 +02:00
Cédric Krier 66a8a828eb Call the same search method in super call when extending for components
Closes #12434
(grafted from 502f57a1d2929ff336c6acbd5a6c3d4628f4d689)

--HG--
branch : 6.0
2023-07-25 11:02:09 +02:00
Adrià Tarroja Caubet 5af2b59359 Reuse cumulate per party from context as default value for general ledger line
Closes #12367
(grafted from 5a95256398af9136cab85c1ca4c4d84ae23b70ec)

--HG--
branch : 6.0
2023-07-05 16:32:56 +02:00
Cédric Krier a66ece3d4d Skip promotion based on categories if line has no product
Closes #12351
(grafted from ca27ba40eda89e3933e595810eab24fe25504ef7)

--HG--
branch : 6.0
2023-08-02 19:09:51 +02:00
Cédric Krier 944afc59ff Add .readthedocs.yaml configuration [skip ci]
This is required by Read the Docs service:
https://blog.readthedocs.com/migrate-configuration-v2/

Closes #12344
(grafted from ffef63a3959b55756c395ebfd3ee1224f4dc7611)

--HG--
branch : 6.0
2023-08-06 19:31:44 +02:00
Cédric Krier 628b3bb336 Require lines when paying invoice with write-off or overpayment
This is needed ensure that at least one line to pay of the invoice is
reconciled.
The lines and payment lines are also shown for overpayment.

Closes #12403
(grafted from 72345bf646caff0e1aa9c373a68906270fe7b688)

--HG--
branch : 6.0
2023-07-14 11:59:19 +02:00
Maxime Richez 8474358027 Sync secondary unit on supplier and internal shipments
When synchronize the outgoing or incoming move, the secondary unit must be
copied from the template.

Closes #12301
(grafted from b190ea97bd1a2040686ed6c9565ac20c45c529f4)

--HG--
branch : 6.0
2023-08-02 19:28:47 +02:00
Cédric Krier 7f28654b30 Increase version number
--HG--
branch : 6.0
2023-08-01 21:55:49 +02:00
Cédric Krier abba6de0df Add tag marketing_email-6.0.2
--HG--
branch : 6.0
2023-08-01 21:55:41 +02:00
Cédric Krier c3b0bc00d3 Prepare release marketing_email-6.0.2
--HG--
branch : 6.0
2023-08-01 21:55:39 +02:00
Cédric Krier a08d15bfd9 Increase version number
--HG--
branch : 6.0
2023-08-01 21:41:05 +02:00
Cédric Krier 4eccf41cc6 Add tag tryton-6.0.28
--HG--
branch : 6.0
2023-08-01 21:40:53 +02:00
Cédric Krier 592d1bdde1 Prepare release tryton-6.0.28
--HG--
branch : 6.0
2023-08-01 21:40:51 +02:00
Cédric Krier 824186cedf Increase version number
--HG--
branch : 6.0
2023-07-31 19:17:05 +02:00
Cédric Krier af45d020b5 Add tag party-6.0.4
--HG--
branch : 6.0
2023-07-31 19:16:56 +02:00
Cédric Krier acb9c74943 Prepare release party-6.0.4
--HG--
branch : 6.0
2023-07-31 19:16:55 +02:00
Cédric Krier 76ebbe7370 Increase version number
--HG--
branch : 6.0
2023-07-31 19:16:16 +02:00
Cédric Krier ffbc070f89 Add tag account_invoice_stock-6.0.2
--HG--
branch : 6.0
2023-07-31 19:16:08 +02:00
Cédric Krier 9e7d3943b8 Prepare release account_invoice_stock-6.0.2
--HG--
branch : 6.0
2023-07-31 19:16:07 +02:00
Cédric Krier cb850dd05b Increase version number
--HG--
branch : 6.0
2023-07-31 17:08:14 +02:00
Cédric Krier 0a3b8dc218 Add tag trytond-6.0.34
--HG--
branch : 6.0
2023-07-31 17:08:00 +02:00
Cédric Krier c5999897d1 Prepare release trytond-6.0.34
--HG--
branch : 6.0
2023-07-31 17:07:59 +02:00
Cédric Krier 88abcdddd1 Read ids from the table even without columns if a rule domain exists
The rule must be enforced also when only non SQL type fields are read.

Closes #12428
(grafted from bd69f1025bca6648fd9ff11f585a60214d2bbf6e)

--HG--
branch : 6.0
2023-07-23 10:18:04 +02:00
Cédric Krier f9908ca812 Do not fail on ValueError when formatting message with gettext
If wrong variables are used to call gettext, the formatting may raise a
ValueError. It is better to not fail for such minor error when not testing.

Closes #12371
(grafted from 47809a507263c47b927c318750f22499adecd036)

--HG--
branch : 6.0
2023-07-15 00:40:59 +02:00
Nicolas Évrard 751292ea1d Clear caches after commit when installing modules
A call to clear_all is required after the commit in order to ensure that the
transaction uses an empty cache from this point. clear_all is not required to
prevent the deadlock on ir.cache because the rollback ensures that nothing
changed from the point of view of this transaction.

Close #12343
(grafted from 48396d9cfed6caccb3fca6d981fec5016a1f6ca2)

--HG--
branch : 6.0
2023-07-14 18:50:44 +02:00
Cédric Krier 91e438b490 Use proper module prefix for unique constraint on marketing email list
(grafted from aab3b5c86e721c457b2a08ba8d6440f744a45a2c)

--HG--
branch : 6.0
2023-07-10 23:40:23 +02:00
Cédric Krier c38f44dc10 Document on_change methods under ModelView instead of Model
(grafted from a379ef0e1567383579001994c4c11f9cd711ad62)

--HG--
branch : 6.0
2023-07-04 18:39:28 +02:00
Cédric Krier 90eac45ba9 Skip child position of exported data based on field names
When exporting data of a xxx2Many field, the column to skip should be based on
the child field names instead of the exported value (which can be 0 for
example).

Closes #12316
(grafted from a91e1a9f95ca2b22d4ce5372b1753999d03aa8af)

--HG--
branch : 6.0
2023-06-08 18:42:07 +02:00
Cédric Krier 4bfd3bf0d7 Add missing show and hide method to email no modal windows
Closes #12368
(grafted from 45d9d6fc9bdf6dfe7575bbbdb1df55479b37b407)

--HG--
branch : 6.0
2023-07-03 19:52:15 +02:00
Cédric Krier 5264c5745d Prevent None value in selection of MultiSelection
Closes #12313
(grafted from 470a28314f49c5c02112d17fa95f0ef5941626c0)

--HG--
branch : 6.0
2023-06-30 00:18:00 +02:00
Cédric Krier 12f00603b4 Ensure to get a different email token for each marketing email
The default methods are called only once.

Closes #12349
(grafted from 7dc93a9a99f951def83888364ff9a7dd03f66498)

--HG--
branch : 6.0
2023-06-25 12:03:52 +02:00
Cédric Krier 9f24d454f3 Do not try to assign shipments that do not need to be assigned
Closes #12311
(grafted from 2fdb477b01dd5cdd9a23f831edabef123f86b12a)

--HG--
branch : 6.0
2023-06-07 16:53:24 +02:00
Nicolas Évrard a0beb58bb9 Do not reset view when switching to a tabbed wizard form
Closes #12317
(grafted from 688198fbf4432175968378219f6c049cdd338868)

--HG--
branch : 6.0
2023-05-11 15:39:34 +02:00
Nicolas Évrard 9f3fe80d14 Do not set previous record in selection changed callback when it is destroyed
Closes #12357
(grafted from cc4b93be0eeb71875b9db93093ffade0c2669727)

--HG--
branch : 6.0
2023-06-27 14:59:33 +02:00
Cédric Krier 17d1629087 Use proper module prefix for msg_dict_schema_help_selection_help
(grafted from d223f6f40c6aac3b47a26b90e70a8ca526ad1ee1)

--HG--
branch : 6.0
2023-06-13 15:52:27 +02:00
Cédric Krier 3bddd2e5c9 Always disable scroll-event and prevent move-active on readonly time and datetime
The time and datetime widgets were missing from 7a55ecca7a59 of #7076
(grafted from cc50b693f196c5e75a4f5d635341d0805794dab8)

--HG--
branch : 6.0
2023-05-30 18:26:16 +02:00
Cédric Krier 34751fe8d4 Set value on focus out and changed signal for datetime widget
The focus out of child widgets must call focus out method.
And we need to connect to the datetime-changed event as DateTime does not call
the __init__ method of Date.

Closes #12020
(grafted from 62934f0e75525d65719bcc83f750d5e9070e4632)

--HG--
branch : 6.0
2023-05-30 18:15:43 +02:00
Cédric Krier fe1972a93b Increase version number
--HG--
branch : 6.0
2023-06-21 19:18:01 +02:00
Cédric Krier 5f3a793dc8 Add tag currency-6.0.5
--HG--
branch : 6.0
2023-06-21 19:17:53 +02:00
Cédric Krier 2eb391f328 Prepare release currency-6.0.5
--HG--
branch : 6.0
2023-06-21 19:17:52 +02:00
Cédric Krier 76200811fd Increase version number
--HG--
branch : 6.0
2023-06-21 19:13:18 +02:00
Cédric Krier 91c2e0ee6e Add tag stock-6.0.20
--HG--
branch : 6.0
2023-06-21 19:13:06 +02:00
Cédric Krier c1f7579550 Prepare release stock-6.0.20
--HG--
branch : 6.0
2023-06-21 19:13:05 +02:00
Cédric Krier 50d1d63e3e Increase version number
--HG--
branch : 6.0
2023-06-21 19:11:32 +02:00
Cédric Krier 70b00dd852 Add tag trytond-6.0.33
--HG--
branch : 6.0
2023-06-21 19:11:17 +02:00
Cédric Krier cec8fd81e0 Prepare release trytond-6.0.33
--HG--
branch : 6.0
2023-06-21 19:11:15 +02:00
Cédric Krier 96a48f4910 Do not try to login if Authorization has no username
User application request has an Authorization header so an Authorization
instance is returned but it can not be used for login.

Closes #12312
(grafted from 0a4e13728c0a9bb24536cb1033d95ca6749a2b9d)

--HG--
branch : 6.0
2023-06-09 08:17:20 +02:00