Help me with this Master Detail problem

I have problem with master detail form.

The fields in the table is almost same. In mySQL, I use auto increment for primary key.
But in PostgreSQL, I use UUID for primary key (see image).

When I use mySQL database and I add new record on master and save them then the detail is display directly so I can add detail record (see video).

But when I user PostgreSQL database and I add new record on master and save them then the master data starts with new record. I have to go back and click edit on the data and the details are displayed (see video).

Any suggestion for this problem ?


The tables are like this.