Hide add action (system generated) based on the value of a field in another table


I’m referencing a table “A”, on another table “B”, so that when looking at a record from table “B” i also get the corresponding information from table “A”, as shown in figure 1. I’m interested in making the add button highlighted in red (see picture above) not visible based on the value of a certain field “X” in table “B” (For example: the status field highlighted in red in figure 2).

Note: both figures are part of the same view of a single record of table “B”.

Thank you.