diff --git a/addons/account/models/account_payment.py b/addons/account/models/account_payment.py index 70773401d7e..2b5d528637b 100644 --- a/addons/account/models/account_payment.py +++ b/addons/account/models/account_payment.py @@ -428,6 +428,7 @@ class account_payment(models.Model): 'views': [(self.env.ref('account.view_move_tree').id, 'tree'), (self.env.ref('account.view_move_form').id, 'form')], 'type': 'ir.actions.act_window', 'domain': [('id', 'in', [x.id for x in self.reconciled_invoice_ids])], + 'context': {'create': False}, } def unreconcile(self): diff --git a/addons/account/views/account_payment_view.xml b/addons/account/views/account_payment_view.xml index 58860ec464b..ea7ff8b48c3 100644 --- a/addons/account/views/account_payment_view.xml +++ b/addons/account/views/account_payment_view.xml @@ -135,7 +135,7 @@ groups="account.group_account_user" attrs="{'invisible':[('move_line_ids','=',[])]}" icon="fa-bars"/> -