Previous fix f056254d1c5153467b10d9581214ff6d1348be76 didn't take the situation when production location has its own valuation accounts into consideration. Fix it in this commit. opw-2476417 closes odoo/odoo#71064 X-original-commit: 60e83f03b871605b7aa281503269f66ac3ea940b Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com> Signed-off-by: Yuchen Huang <yhu-odoo@users.noreply.github.com>