diff --git a/addons/account/models/account_invoice.py b/addons/account/models/account_invoice.py index a3aadfe7fa7..164f79bfa2a 100644 --- a/addons/account/models/account_invoice.py +++ b/addons/account/models/account_invoice.py @@ -875,10 +875,11 @@ class AccountInvoice(models.Model): def _notification_recipients(self, message, groups): groups = super(AccountInvoice, self)._notification_recipients(message, groups) - for group_name, group_method, group_data in groups: - if group_name == 'customer': - continue - group_data['has_button_access'] = True + if self.state not in ('draft', 'cancel'): + for group_name, group_method, group_data in groups: + if group_name == 'customer': + continue + group_data['has_button_access'] = True return groups