Name: 17.0

State: Killed

PR State: closed

PR Author: David Tran

PR Author Email:

PR: #1155

Committer: Arnold Moyaux

Committer Email: arm@odoo.com

Commit: 834dd75d154ac695343aab20b4f6d603d4880c9c

Description:

                                            [FIX] stock: Allow to install demo data outside US company

Currently in the `_merge_move_itemgetter` the system call
`self.company_id.currency_id.decimal_places`. However the demo data
of stock create a database with US currency and some `stock.move`
in it. If we have an existing database with EUR for example. The
upper call will return a `currency_id.decimal_places` since we have
multiple currency.

The best solution, would be to split `_action_confirm` to do a loop
by company. But it would need a small refactoring and we will do a
minimal diff to fix this issue. Using the smallest currency among all
the company is not always correct but it's a super edge case and we
should probably remove this code since it went to far.

Close #230965, #234078

closes odoo/odoo#239273

Signed-off-by: William Henrotin (whe) <whe@odoo.com>
                                            

Branch: 17.0

Instance ID: 0

Age: Not started

Up-time: Not finished