Skip to Content

[FIX] stock_account: keep the manual value of a move in onchange

Killed 267m merged
PR
#1376
PR Author
David Tran
Committer
David Tran
Commit
a19d28679c00
Branch
19.0
Age
Up-time
Commit message
[FIX] stock_account: keep the manual value of a move in onchange

The manual value of a move is searched with the id of the move. In an
onchange, as when the cost of a sale order line is recomputed in its
form, the move is a new record whose id is a NewId: the domain logs
"Domains don't support NewId" and matches nothing, so the move is valued
as if its value had never been set manually.

The manual value is now searched with the id of the original move.

(cherry picked from commit 5b0fc0c6ab0c94fcb105aaa88902abca3d7ece94)
Build Log
Date Level Message
12/02/2026 12:13:03 PM INFO
Running on build host office1, the most idle machine, build containers taken: office1 10/12, the master 61/36, office2 25/12
12/02/2026 12:13:03 PM INFO
Updated repository Viindoo-tvtmaaddons
12/02/2026 12:13:03 PM INFO
Updated repository Viindoo-erponline-enterprise
12/02/2026 12:13:03 PM INFO
Updated repository Viindoo-branding
12/02/2026 12:13:03 PM INFO
Cloned repository Viindoo-odoo
12/02/2026 12:13:03 PM INFO
At install tests: this pull request changes no frontend file, so it runs without /web:WebSuite.test_unit_desktop, /web:WebSuite.test_hoot, /web:WebSuite.test_qunit_desktop, /web:MobileWebSuite.test_unit_mobile, /im_livechat:ExternalTestSuite.test_external_livechat
12/02/2026 12:13:03 PM INFO
At install tests: this pull request changes nothing installed before stock_account, so it runs without the at install tests of the 381 modules installed before it
12/02/2026 12:13:03 PM INFO
Post install tests: this pull request changes no frontend file, so it runs without /web:WebSuite.test_unit_desktop, /web:WebSuite.test_hoot, /web:WebSuite.test_qunit_desktop, /web:MobileWebSuite.test_unit_mobile, /im_livechat:ExternalTestSuite.test_external_livechat
12/02/2026 12:13:03 PM INFO
Post install tests: 9 parallel builds balanced by the test time measured on 19.0, the longest about 198 minutes of tests
12/02/2026 12:36:19 PM INFO
Post install tests: no parallel build added, build host office1 has 18 of its 12 build containers taken