[FIX] account.invoice: payments can never be shown to portal users, but residual...
authorOlivier Dony <odo@openerp.com>
Wed, 13 Aug 2014 10:38:38 +0000 (12:38 +0200)
committerOlivier Dony <odo@openerp.com>
Wed, 13 Aug 2014 10:38:38 +0000 (12:38 +0200)
commit6b8af73179d40b1df7f229ff03e791514b3b45bb
treed5938f57fbcd3cad48e225ced270856a91c1e96e
parentf2788afe92ebe3f823e2a2cfa58ccb68bc9d3eea
[FIX] account.invoice: payments can never be shown to portal users, but residual might be needed

The residual amount is typically needed to render the
online payment forms (payment acquirers).

Payments on the other hand rely on account.move.line,
something that portal users should never be allowed to read.
Removing the field from the view by setting a model-level
group permission ensures they will not see an error.
addons/account/account_invoice.py