[FIX] sale_stock: tour dependency on sale_management
[FIX] sale_stock: tour dependency on sale_management

Creating a new database with only sale_stock installed will lead the
boot_tests.js test to fail.

That's because commit 033608eb11cff4b983038388e9cba5dd3e02ffac
introduces an implicit dependency on a sale_management tour. This seems
to be a mistake since sale_stock does not depend on sale_management.

The tour only makes sense if both sale_stock and sale_management are
installed though. That's why the additional steps will be run
conditionally.

After this commit, the extra steps will only be run when sale_management
is installed.

Technically, this is done by checking whether odoo._modules contains
sale_management.

opw-1964469
closes #33275

Signed-off-by: Christophe Simonis <0e117f2b429bfa19751522a564765b352cb7b946@odoo.com>
ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo