[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) <vfe@odoo.com>
This commit is contained in:
committed by
Antoine Vandevenne (anv)
parent
fe59754c52
commit
0a9bec8f18
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user