7.0 refactor account_partner_required

refactor account_partner_required:
* add extension points for policies
* use constraints for readbility and robustness
* slightly adapt the test to work around an issue in account_constraints (which allows the simplification of the travis configuration)
They say that you don't need the double method. Inheritance is caught properly. I didn't try.