summaryrefslogtreecommitdiff
path: root/addons/website/models
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2021-02-25 12:46:46 +0000
committerDenis Ledoux <dle@odoo.com>2021-02-25 15:43:34 +0000
commit1b729171c5deac4fadebcff013aa061a96860b09 (patch)
tree8a41c42e43f07e7fee1935a7743df3166fe25e03 /addons/website/models
parent3d401a30ee7d673776c129b27dd3b298a4c7a3fe (diff)
[FIX] purchase_stock: `on_time_rate` in multi companies
Because of the weird behavior of the ORM regarding related field pointing to computed fields, `on_time_rate` was taking account of all companies when asking it through `purchase.order.on_time_rate` but it was single-company when asked through `res.partner.on_time_rate`. It was observed during an upgrade request issue analysis, and in that case the problem was not even the fact it was miscomputed, but the fact this computed field, computed as sudo, leaded to fill the cache for `purchase.order.line.move_ids` with `stock.move` belonging to other companies than the user one, and then when attempting to read values from these stock moves a multi-company access error was raised. upg-8106 closes odoo/odoo#66840 Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
Diffstat (limited to 'addons/website/models')
0 files changed, 0 insertions, 0 deletions