splitline: add-2nd-unit-values extendable, new field 'feature'

This commit is contained in:
Frederik Jaeckel 2023-01-15 17:21:34 +01:00
parent 11d6183d65
commit 82ae7d7bca
6 changed files with 36 additions and 8 deletions

View file

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# This file is part of the cashbook-module from m-ds for Tryton.
# This file is part of the cashbook-module from m-ds.de for Tryton.
# The COPYRIGHT file at the top level of this repository contains the
# full copyright notices and license terms.
@ -84,6 +84,7 @@ class SplitLineTestCase(ModuleTestCase):
self.assertEqual(books[0].lines[0].splitlines[1].rec_name,
'Rev/Sp|6.00 usd|from cashbook [Book 2 | 0.00 usd | Open]')
self.assertEqual(len(books[1].lines), 0)
self.assertEqual(books[0].lines[0].splitlines[0].feature, 'gen')
# wf: edit -> check
Line.wfcheck(books[0].lines)