Allow using debt accounts on supplier invoices

issue10164
review357341003
This commit is contained in:
Sergi Almacellas Abellana committed 2021-04-11 20:52:21 +02:00
1 parent 913130c04f
commit b4fc821f8b
2 files changed
+5 -1

No files matched your search

+1
View File
@@ -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
+4 -1
View File
@@ -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):