I want to hide the edit button when a invoice\' state is paid, just like the image below.
Try replacing fields through inheritance and adding attrs to it. Using attrs, you can set the field invisible when state is paid like this,