changeset 3485bd651dbe in modules/sale:default
details: https://hg.tryton.org/modules/sale?cmd=changeset;node=3485bd651dbe
description:
        Merge account kind and account type

        issue4990
        review68401002
diffstat:

 tests/test_sale.py |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (17 lines):

diff -r a0abd76e2cd1 -r 3485bd651dbe tests/test_sale.py
--- a/tests/test_sale.py        Fri Mar 22 15:33:43 2019 +0100
+++ b/tests/test_sale.py        Sun Mar 24 18:00:01 2019 +0100
@@ -32,11 +32,11 @@
             create_chart(company)
 
             receivable, = Account.search([
-                    ('kind', '=', 'receivable'),
+                    ('type.receivable', '=', True),
                     ('company', '=', company.id),
                     ])
             payable, = Account.search([
-                    ('kind', '=', 'payable'),
+                    ('type.payable', '=', True),
                     ('company', '=', company.id),
                     ])
 

Reply via email to