From 4b2106298d475aa80d2ec8f517cb591885e5c0cb Mon Sep 17 00:00:00 2001 From: Xavier ALT Date: Fri, 7 Jul 2023 14:44:40 +0000 Subject: [PATCH] [FIX] sale, account_payment: fix saleman payment transactions access error Since odoo/odoo@2b1e2abda3df user need at least 'Account / Billing' access to read payment.transaction, that not the case for most salesman. So for user that don't have 'Account / Billing', this commit do: - compute the 'amount_paid' as superuser (fixing "Generate Payment Link" wizard access errors) - hide "Payment Transaction" smart-button on invoice closes odoo/odoo#127835 X-original-commit: ad2c3a873a926ac8c94d014af24ed400b493493e Signed-off-by: Victor Feyens (vfe) Signed-off-by: Xavier Alt (xal) --- addons/account_payment/views/account_move_views.xml | 1 + addons/sale/models/sale_order.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/account_payment/views/account_move_views.xml b/addons/account_payment/views/account_move_views.xml index 0be75f55b79..333209f98e1 100644 --- a/addons/account_payment/views/account_move_views.xml +++ b/addons/account_payment/views/account_move_views.xml @@ -27,6 +27,7 @@