[FIX] stock(_account): traceback with stock user on forecast report
backport of: https://github.com/odoo/odoo/pull/82053/commits/dcc300c51b7f9f5e9e6f1111344fef75eb097532 2 issues: - When going to the report forecast the value of the stock is computed. However the stock user should not be able to access the valuations - Since an access error is return the graph view is not instanciate and the javascript code try to amend an empty result to the DOM. It results with a traceback on top of 403 page opw-2725974 opw-2727384 closes odoo/odoo#82317 Signed-off-by:Arnold Moyaux <arm@odoo.com> Co-authored-by:
amoyaux <arm@odoo.com>
Showing
- addons/stock/static/src/js/report_stock_forecasted.js 3 additions, 0 deletionsaddons/stock/static/src/js/report_stock_forecasted.js
- addons/stock_account/report/report_stock_forecasted.py 2 additions, 0 deletionsaddons/stock_account/report/report_stock_forecasted.py
- addons/stock_account/report/report_stock_forecasted.xml 1 addition, 1 deletionaddons/stock_account/report/report_stock_forecasted.xml
Please register or sign in to comment