Make bom, inputs and outputs readonly if no warehouse or location

issue4088
review6441002

--HG--
extra : rebase_source : ac368d42c929033206e7136ee1bfc2ec95f0c68a
extra : histedit_source : cade117decb3c3b500035ae94cac6b5ecccba6f8