Skip to Content

[FIX] stock_account: date a valued move without accounting rights

Succeed 264m open
PR
#1371
PR Author
Roy Le
Committer
Roy Le
Commit
97324d3c3b93
Branch
20.0
Age
Up-time
Commit message
[FIX] stock_account: date a valued move without accounting rights

Moving the date of a valued move replays the valuation of its products
from the earlier date, and since 501a537426e7 the replay posts correction
entries. They were created with the rights of the user who moved the
date, who may hold no accounting right:

- a stock user applying a count at a past counting date (the Apply
  dialog dates the count moves after they are done);
- a manufacturing user marking an order done: core dates the done moves
  of the order again with the clock, which is a second later than their
  completion on a loaded server (mrp_account
  test_mrp_user_with_timesheet_permissions_can_produce_mo fails at random
  on the runbot).

Both got "You are not allowed to create 'Journal Entry' (account.move)
records". The valuation of a move being done runs as superuser
(_action_done); the replay a new date triggers now does too.
Build Log
Date Level Message
11/30/2026 09:39:19 AM INFO
Running on the master, build containers taken: office1 11/12, the master 60/36, office2 23/12; office1 cannot take it: CPU 88%
11/30/2026 09:39:19 AM INFO
Updated repository Viindoo-tvtmaaddons
11/30/2026 09:39:19 AM INFO
Updated repository Viindoo-erponline-enterprise
11/30/2026 09:39:19 AM INFO
Updated repository Viindoo-branding
11/30/2026 09:39:19 AM INFO
Cloned repository Viindoo-odoo
11/30/2026 09:39:19 AM INFO
At install tests: this pull request changes no frontend file, so it runs without hoot, /web:HootSuite.test_hoot, /im_livechat:ExternalTestSuite.test_external_livechat
11/30/2026 09:39:19 AM INFO
At install tests: this pull request changes nothing installed before stock_account, so it runs without the at install tests of the 243 modules installed before it
11/30/2026 09:39:19 AM INFO
Post install tests: this pull request changes no frontend file, so it runs without hoot, /web:HootSuite.test_hoot, /im_livechat:ExternalTestSuite.test_external_livechat
11/30/2026 09:39:19 AM INFO
Post install tests: 9 parallel builds balanced by the test time measured on 20.0, the longest about 60 minutes of tests
11/30/2026 10:00:10 AM INFO
Post install tests: no parallel build added, a build waits to start
11/30/2026 09:40:20 AM WARNING
Subbuild #444395: Not loading server-wide module(s) to_erponline_utility: not installable on the addons path of this build (their repository is left out, e.g. it has no 20.0 branch, or they are not ported to it yet)
11/30/2026 09:40:21 AM WARNING
Subbuild #444396: Not loading server-wide module(s) to_erponline_utility: not installable on the addons path of this build (their repository is left out, e.g. it has no 20.0 branch, or they are not ported to it yet)
11/30/2026 11:20:25 AM WARNING
Subbuild #444397: Not loading server-wide module(s) to_erponline_utility: not installable on the addons path of this build (their repository is left out, e.g. it has no 20.0 branch, or they are not ported to it yet)
11/30/2026 11:20:30 AM WARNING
Subbuild #444398: Not loading server-wide module(s) to_erponline_utility: not installable on the addons path of this build (their repository is left out, e.g. it has no 20.0 branch, or they are not ported to it yet)
11/30/2026 11:20:32 AM WARNING
Subbuild #444399: Not loading server-wide module(s) to_erponline_utility: not installable on the addons path of this build (their repository is left out, e.g. it has no 20.0 branch, or they are not ported to it yet)
11/30/2026 11:20:34 AM WARNING
Subbuild #444400: Not loading server-wide module(s) to_erponline_utility: not installable on the addons path of this build (their repository is left out, e.g. it has no 20.0 branch, or they are not ported to it yet)
11/30/2026 11:45:17 AM WARNING
Subbuild #444401: Not loading server-wide module(s) to_erponline_utility: not installable on the addons path of this build (their repository is left out, e.g. it has no 20.0 branch, or they are not ported to it yet)
11/30/2026 11:45:21 AM WARNING
Subbuild #444402: Not loading server-wide module(s) to_erponline_utility: not installable on the addons path of this build (their repository is left out, e.g. it has no 20.0 branch, or they are not ported to it yet)
11/30/2026 11:45:23 AM WARNING
Subbuild #444403: Not loading server-wide module(s) to_erponline_utility: not installable on the addons path of this build (their repository is left out, e.g. it has no 20.0 branch, or they are not ported to it yet)
11/30/2026 11:48:21 AM WARNING
Subbuild #444404: Not loading server-wide module(s) to_erponline_utility: not installable on the addons path of this build (their repository is left out, e.g. it has no 20.0 branch, or they are not ported to it yet)
11/30/2026 11:48:24 AM WARNING
Subbuild #444405: Not loading server-wide module(s) to_erponline_utility: not installable on the addons path of this build (their repository is left out, e.g. it has no 20.0 branch, or they are not ported to it yet)