Cédric Krier pushed to branch branch/6.8 at Tryton / Tryton


Commits:
439e262e by Cédric Krier at 2023-07-17T23:05:11+02:00
Set next party after next account only on initial filling of accounts

When the next account method is called from the while loop, the next party is
always called by the upper loop.
If next party is called also in next account then the first party is skipped.

Closes #12327
(grafted from d7c9a4c976b6bbcf7e2a9740e5cb951b0d207d6a)
- - - - -
a8ac65a6 by Cédric Krier at 2023-08-02T19:09:51+02:00
Skip promotion based on categories if line has no product

Closes #12351
(grafted from ca27ba40eda89e3933e595810eab24fe25504ef7)
- - - - -
a69c10e6 by Adrià Tarroja Caubet at 2023-07-05T16:32:56+02:00
Reuse cumulate per party from context as default value for general ledger line

Closes #12367
(grafted from 5a95256398af9136cab85c1ca4c4d84ae23b70ec)
- - - - -
f625197e by Sergi Almacellas Abellana at 2023-08-09T23:20:03+02:00
Use proper module for message when checking shipment cost for sale quotation

Closes #12458
(grafted from 102400a248a1ab65011b87721112adc018954f2e)
- - - - -
c00e0f84 by Cédric Krier at 2023-07-25T11:02:09+02:00
Call the same search method in super call when extending for components

Closes #12434
(grafted from 502f57a1d2929ff336c6acbd5a6c3d4628f4d689)
- - - - -
95af6ce4 by Cédric Krier at 2023-07-24T23:51:00+02:00
Generate invoices and consumptions only for contextual company

Closes #12345
(grafted from 9ca33a199252180c7875438b2f5c241d8e5b6829)
- - - - -
0f7bc4f0 by Cédric Krier at 2023-07-28T01:03:10+02:00
Drop notification email log table after migration

And use the configured table name if set.

Closes #12438
(grafted from 299ba0473de71a631d5f57d3d9c65096d395e89d)
- - - - -
09bda729 by Cédric Krier at 2023-07-29T16:21:33+02:00
Round and convert numeric value after applying factor

Closes #12381
(grafted from 3d8e4b66e96145b82c1e97942ea807e16be912cd)
- - - - -
f5866b68 by Nicolas Évrard at 2023-08-08T15:33:33+02:00
Move sleep loop introduced in a32b84d96649 to prevent deadlock to tests

In this changeset we fix an issue with testing.

When using the listener for cache invalidation it results into the database
lock used by the pool that is acquired twice. Once when calling Pool.init ;
once when the transaction is started which calls Cache.sync which in turn calls
Pool.refresh and finaly Pool.stop. It tries to acquire again the re-entrant
lock (but it cannot because it's another thread).

Closes #12457
(grafted from 3b618f310b354126e4dbb0f19ad139c5bf879b9e)
- - - - -
e5595690 by Cédric Krier at 2023-08-05T00:27:11+02:00
Try to post only clearing move of journals from the contextual company

Closes #12453
(grafted from b71b06a871a7fb67a202f1ae242a04185078c614)
- - - - -
9a274ead by Cédric Krier at 2023-08-12T20:10:06+02:00
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)
- - - - -
2080ee3a by Cédric Krier at 2023-08-26T17:19:00+02:00
Filter expressions for BTREE and GIN indexes

IndexMixin is calling the method _get_indexed_expressions instead of
_get_expressions.

Closes #12478
(grafted from a6d415a0cdb9e155ac8d8f82f776516ce9a688d8)
- - - - -
d5920b64 by Cédric Krier at 2023-08-16T21:53:32+02:00
Include Similarity in the indexed expression of BTREE

The Similarity expression increase the score and are supported in BTREE.

Closes #12479
(grafted from adc294d720b8095bf019b20d934afa2f707a3cbf)
- - - - -
50c22855 by Cédric Krier at 2023-08-10T13:55:00+02:00
Convert element joined domains into domain when searching for OR-ed domain

The content of joined domains can be a single clause, so it must be converted
into a domain before calling search_domain.

Closes #12460
(grafted from e80c22f1106e5928a429ed7d18215c3e1f2866c8)
- - - - -
5e69572c by Cédric Krier at 2023-08-04T15:59:35+02:00
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)
- - - - -
9009ceb6 by Cédric Krier at 2023-08-18T14:47:39+02:00
Store synchronized moves of customer shipment even when quantity is not updated

ed41959390ff added a synchronization on assign to prevent infinite warning
loop on pack if it creates new move without origin.
But 38e2a76db719 refactoring lost this behavior.

Closes #12503
(grafted from 903204d5d1728e818ec44bf5aa0a629c2efd1a65)
- - - - -
63f89c92 by Maxime Richez at 2023-08-25T16:34:06+02:00
Update origin of inventory moves for customer shipment

When synchronize inventory to outgoing moves, the origin of the inventory is
updated to point to the new corresponding outgoing move instead of the
original one.

Closes #12272
(grafted from 72fbac94b52006eaa854786b60aa1faf1a2c8d48)
- - - - -
7daf9cf1 by Cédric Krier at 2023-08-25T18:08:17+02:00
Update origin of outgoing moves for internal shipment

When synchronize moves, the origin of outgoing is updated to point the
new incoming move instead of the original one.

Closes #12272
(grafted from f36f6212c3596d5860722535adc80349496d07be)
- - - - -
47d8f277 by Sergi Almacellas Abellana at 2023-07-19T11:46:04+02:00
Add search context fields to sale line product depends

They should be added explicity because they are not included in display_depends
nor edition_depends

Closes #12407
(grafted from 97b64f835ef1d37d82ca7de34efed5c9ecfe13b7)
- - - - -
28ba86f1 by Sergi Almacellas Abellana at 2023-07-19T11:46:44+02:00
Add search context fields to purchase line product depends

They should be added explicity because they are not included in display_depends
nor edition_depends

Closes #12407
(grafted from d36dce59eb6ce2354d3e714eb76e6cf4474b6305)
- - - - -


23 changed files:

- modules/account/account.py
- modules/account/move.py
- modules/account_payment_clearing/payment.py
- modules/notification_email/ir.py
- modules/product_cost_history/product.py
- modules/product_kit/purchase.py
- modules/product_kit/sale.py
- modules/purchase/purchase.py
- modules/sale/sale.py
- modules/sale_promotion/sale.py
- modules/sale_shipment_cost/sale.py
- modules/sale_subscription/subscription.py
- modules/stock/shipment.py
- modules/stock/tests/scenario_stock_shipment_out.rst
- modules/stock_lot/tests/scenario_stock_lot_shipment_out.rst
- + modules/stock_lot/tests/scenario_stock_lot_shipment_out_internal.rst
- tryton/tryton/gui/window/view_form/model/field.py
- trytond/trytond/backend/postgresql/database.py
- trytond/trytond/backend/postgresql/table.py
- trytond/trytond/cache.py
- trytond/trytond/model/modelsql.py
- trytond/trytond/tests/test_cache.py
- trytond/trytond/tests/test_modelsql.py


View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/compare/481142a5985a94162105011a38ccf2d5608da743...28ba86f15530647921fb20735e64c12ac9bade7a

-- 
View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/compare/481142a5985a94162105011a38ccf2d5608da743...28ba86f15530647921fb20735e64c12ac9bade7a
You're receiving this email because of your account on foss.heptapod.net.


Reply via email to