mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[IMP] Exclude proforma2 state for draft invoice check on account_invoice_constraint_chronology
This commit is contained in:
committed by
Francesco Apruzzese
parent
6aca29bfff
commit
d79ccf16de
@@ -41,7 +41,8 @@ class account_invoice(models.Model):
|
||||
if inv.journal_id.check_chronology:
|
||||
invoices = \
|
||||
self.search([('state', 'not in',
|
||||
['open', 'paid', 'cancel', 'proforma']),
|
||||
['open', 'paid', 'cancel', 'proforma',
|
||||
'proforma2']),
|
||||
('date_invoice', '!=', False),
|
||||
('date_invoice', '<', inv.date_invoice),
|
||||
('journal_id', '=', inv.journal_id.id)])
|
||||
|
||||
Reference in New Issue
Block a user