When executing the product2bom method it is possible that an active_test context is present in self. However, the method should not consider archived BoMs. closes odoo/odoo#104919 X-original-commit: a5f923859fad37e1fc52a3a4bcce5cce4cf69c87 Signed-off-by: William Henrotin (whe) <whe@odoo.com>