Forgot to remove a usecase of debit_denied

Add ACL
This commit is contained in:
Alexis de Lattre
2015-10-19 17:50:53 +02:00
committed by Pedro M. Baeza
parent dda5e1ccb5
commit 7b62566b29
2 changed files with 2 additions and 4 deletions

View File

@@ -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

View File

@@ -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
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_payment_mode_read Read access on payment.mode to Employees account_payment.model_payment_mode base.group_user 1 0 0 0
3 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