I have created tables in MySQL Workbench as shown below :
ORDRE table:
CREATE TABLE Ordre (
OrdreID INT NOT NULL,
OrdreDato DA
You are getting this constraint check because Ordre table does not have reference OrdreID provided in insert command.
To insert value in Ordrelinje, you first have to enter value in Ordre table and use same OrdreID in Orderlinje table.
Or you can remove not null constraint and insert a NULL value in it.