Here it's my scenario.
I have a postgis layer with a primary key and one column of type integer. I am connecting to that layer through WFS. If I try to add a feature to the layer I get a message that layer it's read-only. If I take out that column (integer) I can add features to the layer.