From b4fc821f8b287d8689acd188ec7cf2f081adf6e9 Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Sun, 11 Apr 2021 20:52:21 +0200 Subject: [PATCH] Allow using debt accounts on supplier invoices issue10164 review357341003 --- CHANGELOG | 1 + invoice.py | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 7e3e5ca36e..657a0abad5 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,4 @@ +* Allow using debt accounts on supplier invoices * Add deductible rate of taxes to supplier invoice * Add method to post invoices by batch * Add payment term date in invoice diff --git a/invoice.py b/invoice.py index b9a3de6ba1..20b4c5dbdb 100644 --- a/invoice.py +++ b/invoice.py @@ -1881,7 +1881,10 @@ class InvoiceLine(sequence_ordered(), ModelSQL, ModelView, TaxableMixin): if type_ == 'out': return ['OR', ('type.revenue', '=', True)] elif type_ == 'in': - return ['OR', ('type.expense', '=', True)] + return ['OR', + ('type.expense', '=', True), + ('type.debt', '=', True), + ] @classmethod def __register__(cls, module_name):