Can anyone tell me how 'not posted' button can become visible
when 'complete' button is pressed in invoice(customer) window?
in which file is the code?
You should check the Column Definition of your button in Read-only Logic
check that the role has Show accounting checked
In Tools/Preferences make sure that show accounting tabs selected