Some demo data bill of material have workorder operation. Trying to use them without the workorder setting activated will give an error on some fields not instantiated. This commit activate/deactivate the operations depending on the workorder setting. opw - 3229621 closes odoo/odoo#119254 X-original-commit: aaba4eb4deb3f9e10fd611924c5a24680d633537 Related: odoo/enterprise#40092 Signed-off-by: William Henrotin (whe) <whe@odoo.com>