[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 <smetl@users.noreply.github.com>
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
This commit is contained in:
william
2020-03-31 07:07:43 +00:00
parent 6dc2835814
commit 79f36c31c6
-1
View File
@@ -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}