From 0a9bec8f18698ae48c618cb473323c4c6affdfc5 Mon Sep 17 00:00:00 2001 From: Ankita Raval Date: Tue, 30 Jul 2019 10:24:25 +0000 Subject: [PATCH] [FIX] account : fix statbutton of partner invoices Before Commit: The statbutton on partner form does not work properly. After Commit: we change the domain because use the wrong domain in filter so statbutton not work properly on partnerform. task-id : 2041822 closes odoo/odoo#35290 Signed-off-by: Victor Feyens (vfe) --- addons/account/models/partner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/partner.py b/addons/account/models/partner.py index 4661f48c6bb..213cc97abcc 100644 --- a/addons/account/models/partner.py +++ b/addons/account/models/partner.py @@ -439,7 +439,7 @@ class ResPartner(models.Model): action = self.env.ref('account.action_move_out_invoice_type').read()[0] action['domain'] = [ ('type', 'in', ('out_invoice', 'out_refund')), - ('type', '=', 'posted'), + ('state', '=', 'posted'), ('partner_id', 'child_of', self.id), ] return action