From 79f36c31c6aeb82926c7627bd101e7df1d84d2f7 Mon Sep 17 00:00:00 2001 From: william Date: Mon, 30 Mar 2020 07:12:28 +0000 Subject: [PATCH] [FIX] account: allow showing draft invoice from partner view There is a default filter on Posted, no need to add it in the domain. This prevented seeing draft invoices. closes odoo/odoo#48635 X-original-commit: ca67c83e8d36ececaf97a7579c3ff2529b3e227c Signed-off-by: Laurent Smet Signed-off-by: Quentin De Paoli (qdp) --- addons/account/models/partner.py | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/account/models/partner.py b/addons/account/models/partner.py index f772c76ed73..3a125ad6c6d 100644 --- a/addons/account/models/partner.py +++ b/addons/account/models/partner.py @@ -477,7 +477,6 @@ class ResPartner(models.Model): action = self.env.ref('account.action_move_out_invoice_type').read()[0] action['domain'] = [ ('move_type', 'in', ('out_invoice', 'out_refund')), - ('state', '=', 'posted'), ('partner_id', 'child_of', self.id), ] action['context'] = {'default_move_type':'out_invoice', 'move_type':'out_invoice', 'journal_type': 'sale', 'search_default_unpaid': 1}