updates for Tryton 6.0

This commit is contained in:
Frederik Jaeckel 2024-01-13 15:47:46 +01:00
parent 98377024d2
commit ad18161c31
2 changed files with 6 additions and 5 deletions

View file

@ -10,6 +10,7 @@ from trytond.pool import Pool
from trytond.transaction import Transaction from trytond.transaction import Transaction
from trytond.exceptions import UserError from trytond.exceptions import UserError
from trytond.i18n import gettext from trytond.i18n import gettext
from trytond.modules.cashbook_investment.tests.test_module import \
CashbookInvestmentTestCase CashbookInvestmentTestCase
from trytond.modules.cashbook_report.templates import ( from trytond.modules.cashbook_report.templates import (
cashbook_types, category_types, booktype_types, currency_types) cashbook_types, category_types, booktype_types, currency_types)
@ -523,7 +524,7 @@ class ReportTestCase(CashbookInvestmentTestCase):
self.assertRaisesRegex( self.assertRaisesRegex(
UserError, UserError,
'The value "types" for field "Data type 2" in ' + 'The value "types" for field "Data type 2" in ' +
'"Evaluation 1" of "Evaluation" is not one of the ' + '"Evaluation" is not one of the ' +
'allowed options.', 'allowed options.',
Evaluation.write, Evaluation.write,
*[ *[

View file

@ -5,10 +5,10 @@ full copyright notices and license terms. -->
<tree keyword_open="1" sequence="sequence"> <tree keyword_open="1" sequence="sequence">
<field name="name"/> <field name="name"/>
<field name="dtype1"/> <field name="dtype1"/>
<field name="dtype2" optional="0"/> <field name="dtype2"/>
<field name="dtype3" optional="1"/> <field name="dtype3"/>
<field name="dtype4" optional="1"/> <field name="dtype4"/>
<field name="dtype5" optional="1"/> <field name="dtype5"/>
<field name="chart"/> <field name="chart"/>
<field name="legend"/> <field name="legend"/>
<field name="maincolor"/> <field name="maincolor"/>