diff --git a/account_direct_debit/wizard/payment_order_create.py b/account_direct_debit/wizard/payment_order_create.py index 61eea19ca..cd5ee9335 100644 --- a/account_direct_debit/wizard/payment_order_create.py +++ b/account_direct_debit/wizard/payment_order_create.py @@ -38,8 +38,5 @@ class PaymentOrderCreate(models.TransientModel): # invoices and payment lines linked to customer refunds # in order to debit the customer of the total of his # invoices minus his refunds - domain += ['|', - ('invoice', '=', False), - ('invoice.state', '!=', 'debit_denied'), - ('account_id.type', '=', 'receivable')] + domain += [('account_id.type', '=', 'receivable')] return True diff --git a/account_payment_partner/security/ir.model.access.csv b/account_payment_partner/security/ir.model.access.csv index b277f0229..ac6d96dfd 100644 --- a/account_payment_partner/security/ir.model.access.csv +++ b/account_payment_partner/security/ir.model.access.csv @@ -1,2 +1,3 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink access_payment_mode_read,Read access on payment.mode to Employees,account_payment.model_payment_mode,base.group_user,1,0,0,0 +access_payment_mode_type_read,Read access on payment.mode.type to Employees,account_banking_payment_export.model_payment_mode_type,base.group_user,1,0,0,0