Add test on context of company multivalue target fields
issue10067 review333851026
This commit is contained in:
1 parent
f6f0e8664b
commit
08bf2f96c1
2 files changed
+9
-2
No files matched your search
+6
-1
@@ -107,7 +107,12 @@ class Dunning(ModelSQL, ModelView):
|
||||
], 'State', readonly=True)
|
||||
active = fields.Function(fields.Boolean('Active'), 'get_active',
|
||||
searcher='search_active')
|
||||
party = fields.Function(fields.Many2One('party.party', 'Party'),
|
||||
party = fields.Function(fields.Many2One(
|
||||
'party.party', 'Party',
|
||||
context={
|
||||
'company': Eval('company', -1),
|
||||
},
|
||||
depends=['company']),
|
||||
'get_line_field', searcher='search_line_field')
|
||||
amount = fields.Function(fields.Numeric('Amount',
|
||||
digits=(16, Eval('currency_digits', 2)),
|
||||
|
||||
@@ -7,8 +7,10 @@ from trytond.tests.test_tryton import ModuleTestCase
|
||||
from trytond.tests.test_tryton import doctest_teardown
|
||||
from trytond.tests.test_tryton import doctest_checker
|
||||
|
||||
from trytond.modules.company.tests import CompanyMultiValueTestMixin
|
||||
|
||||
class AccountDunningTestCase(ModuleTestCase):
|
||||
|
||||
class AccountDunningTestCase(CompanyMultiValueTestMixin, ModuleTestCase):
|
||||
'Test AccountDunning module'
|
||||
module = 'account_dunning'
|
||||
|
||||
|
||||
Reference in new issue
Block a user