Node types: Car, Part
Entity reference field parts on car.
Inline entity form (Multiple) "Parts" on "Car"
Flag "Working" on Car.
When adding a Part at the Car form, node type is required, otherwise the following error will appear:
Notice: Undefined index: type in flag_field_attach_form() (line 727 of flag.module).