changeset b33b6e913b27 in modules/account_invoice:default
details: 
https://hg.tryton.org/modules/account_invoice?cmd=changeset&node=b33b6e913b27
description:
        Allow using debt accounts on supplier invoices

        issue10164
        review357341003
diffstat:

 CHANGELOG  |  1 +
 invoice.py |  5 ++++-
 2 files changed, 5 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 59093c3932e2 -r b33b6e913b27 CHANGELOG
--- a/CHANGELOG Sun Apr 11 18:11:05 2021 +0200
+++ b/CHANGELOG Sun Apr 11 20:52:21 2021 +0200
@@ -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 -r 59093c3932e2 -r b33b6e913b27 invoice.py
--- a/invoice.py        Sun Apr 11 18:11:05 2021 +0200
+++ b/invoice.py        Sun Apr 11 20:52:21 2021 +0200
@@ -1881,7 +1881,10 @@
         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):

Reply via email to