Add test on context of company multivalue target fields

issue10067
review333851026
This commit is contained in:
Cédric Krier committed 2021-03-05 15:49:19 +01:00
1 parent 807fe81fb4
commit 80b42ebd48
2 files changed
+8 -2

No files matched your search

+5 -1
View File
@@ -81,7 +81,11 @@ class Production(ShipmentAssignMixin, Workflow, ModelSQL, ModelView):
],
states={
'readonly': ~Eval('state').in_(['request', 'draft']),
})
},
context={
'company': Eval('company', -1),
},
depends=['company'])
bom = fields.Many2One('production.bom', 'BOM',
domain=[
('output_products', '=', Eval('product', 0)),
+3 -1
View File
@@ -10,8 +10,10 @@ from trytond.tests.test_tryton import doctest_teardown
from trytond.tests.test_tryton import doctest_checker
from trytond.pool import Pool
from trytond.modules.company.tests import CompanyMultiValueTestMixin
class ProductionTestCase(ModuleTestCase):
class ProductionTestCase(CompanyMultiValueTestMixin, ModuleTestCase):
'Test Production module'
module = 'production'