Add test on context of company multivalue target fields
issue10067 review333851026
This commit is contained in:
1 parent
807fe81fb4
commit
80b42ebd48
2 files changed
+8
-2
No files matched your search
+5
-1
@@ -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)),
|
||||
|
||||
@@ -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'
|
||||
|
||||
|
||||
Reference in new issue
Block a user