Remove account_delete_reconcilation.diff
This commit is contained in:
parent
85b7351c6b
commit
6d04d3a50f
|
@ -1,23 +0,0 @@
|
|||
diff --git a/account.py b/account.py
|
||||
--- a/trytond/trytond/modules/account_invoice/account.py
|
||||
+++ b/trytond/trytond/modules/account_invoice/account.py
|
||||
@@ -292,11 +292,19 @@ class Reconciliation(metaclass=PoolMeta):
|
||||
def delete(cls, reconciliations):
|
||||
Invoice = Pool().get('account.invoice')
|
||||
|
||||
- move_ids = set(l.move.id for r in reconciliations for l in r.lines)
|
||||
+ to_remove = []
|
||||
+ move_ids = ()
|
||||
+ for r in reconciliations:
|
||||
+ for l in r.lines:
|
||||
+ if l.invoice_payments:
|
||||
+ to_remove.append(l)
|
||||
+ move_ids = move_ids + (l.move.id,)
|
||||
+
|
||||
invoices = Invoice.search([
|
||||
('move', 'in', list(move_ids)),
|
||||
])
|
||||
super(Reconciliation, cls).delete(reconciliations)
|
||||
+ Invoice.remove_payment_lines(to_remove)
|
||||
Invoice.process(invoices)
|
||||
|
2
series
2
series
|
@ -58,6 +58,4 @@ issue9519.diff # [sale + purchase] Use search context for product field on line
|
|||
|
||||
issue9814.diff #[product] Product template search bar showing non serchable product.product function fields as recomendation
|
||||
|
||||
account_delete_reconcilation.diff # [account_invoice] Delete the link between account_invoice and account move when the reconciliation is deleted
|
||||
|
||||
rule_account_journal_period.diff # [account] Add missing rule for account.journal.period
|
||||
|
|
Loading…
Reference in New Issue