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):