diff options
| author | William Henrotin <whe@odoo.com> | 2020-10-08 09:32:37 +0000 |
|---|---|---|
| committer | William Henrotin <whe@odoo.com> | 2020-10-08 11:13:43 +0000 |
| commit | 3d592649970df3d755ccb57d68c074acdff67894 (patch) | |
| tree | 4ead3f6ec0b82404720166e6117b042d2d0df3fa /addons/web/tests/test_base_document_layout.py | |
| parent | 5bc6eb9b387112138ac118726ff746bad6d00f8d (diff) | |
[FIX] purchase(_stock): track qty_received changes
Commit 0f80e69b8d260c0ed4bbbbad2d0c1e88ab054bf5 tracked all changes on
qty_received on the purchase order. But did that wrongly by calling
`write` inside a compute.
Commit b7cc3b068f685d1339f9fe7e47d0c564de1708e7 fixed this `write`
by an `=` to avoid error when the compute is called on virtual records.
This fix result on forgetting to track the quantity delivered.
This commit sends a message to post in `write` AND in the
`compute_qty_received` to be sure it is posted. This way, we do not call
write in compute anymore.
closes odoo/odoo#59482
Signed-off-by: William Henrotin <Whenrow@users.noreply.github.com>
Diffstat (limited to 'addons/web/tests/test_base_document_layout.py')
0 files changed, 0 insertions, 0 deletions
