[ADD] do not allow to unlink barcode.scan if it has a parent set

Merged Gabriel Davini requested to merge 11.0-barcode_unlink_states into 11.0-stage

Merge request reports