Add test environment on quality test line
This commit is contained in:
parent
c4fd75da42
commit
76cf2b706f
|
@ -15,4 +15,5 @@ def register():
|
|||
QualityTest,
|
||||
QualitativeLine,
|
||||
QuantitativeLine,
|
||||
TestLine,
|
||||
module='quality_control_stress_test', type_='model')
|
||||
|
|
|
@ -138,6 +138,10 @@ msgctxt "field:quality.test,stress_tests:"
|
|||
msgid "Stress Tests"
|
||||
msgstr "Prova d'estrès"
|
||||
|
||||
msgctxt "field:quality.test.line,stress_test:"
|
||||
msgid "Stress Environment"
|
||||
msgstr "Entorn d'estrès"
|
||||
|
||||
msgctxt "model:ir.action,name:act_quality_stress_environment"
|
||||
msgid "Stress Environment"
|
||||
msgstr "Entorn d'estrès"
|
||||
|
|
|
@ -138,6 +138,10 @@ msgctxt "field:quality.test,stress_tests:"
|
|||
msgid "Stress Tests"
|
||||
msgstr "Pruebas de estres"
|
||||
|
||||
msgctxt "field:quality.test.line,stress_test:"
|
||||
msgid "Stress Environment"
|
||||
msgstr "Entorno de estres"
|
||||
|
||||
msgctxt "model:ir.action,name:act_quality_stress_environment"
|
||||
msgid "Stress Environment"
|
||||
msgstr "Entorno de estres"
|
||||
|
|
|
@ -7,7 +7,7 @@ from trytond.modules.quality_control.quality import _STATES
|
|||
|
||||
__all__ = ['Environment', 'Template', 'QualitativeTemplateLine',
|
||||
'QuantitativeTemplateLine', 'TemplateLine', 'QualityTest', 'StressTest',
|
||||
'QualitativeLine', 'QuantitativeLine']
|
||||
'QualitativeLine', 'QuantitativeLine', 'TestLine']
|
||||
__metaclass__ = PoolMeta
|
||||
|
||||
|
||||
|
@ -105,3 +105,7 @@ class QualitativeLine:
|
|||
|
||||
class QuantitativeLine(QualitativeLine):
|
||||
__name__ = 'quality.quantitative.test.line'
|
||||
|
||||
|
||||
class TestLine(QualitativeLine):
|
||||
__name__ = 'quality.test.line'
|
||||
|
|
14
quality.xml
14
quality.xml
|
@ -202,5 +202,19 @@
|
|||
<field name="inherit"
|
||||
ref="quality_control.quality_quantitative_test_line_tree_view"/>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="quality_test_line_form_view">
|
||||
<field name="model">quality.test.line</field>
|
||||
<field name="name">quality_test_line_form</field>
|
||||
<field name="inherit"
|
||||
ref="quality_control.quality_test_line_form_view"/>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="quality_test_line_tree_view">
|
||||
<field name="model">quality.test.line</field>
|
||||
<field name="name">quality_test_line_tree</field>
|
||||
<field name="inherit"
|
||||
ref="quality_control.quality_test_line_tree_view"/>
|
||||
</record>
|
||||
</data>
|
||||
</tryton>
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0"?>
|
||||
<!--The COPYRIGHT file at the top level of this repository
|
||||
contains the full copyright notices and license terms. -->
|
||||
<data>
|
||||
<xpath expr="/form/field[@name='method']" position="after">
|
||||
<label name="stress_test"/>
|
||||
<field name="stress_test"/>
|
||||
<newline/>
|
||||
</xpath>
|
||||
</data>
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0"?>
|
||||
<!--The COPYRIGHT file at the top level of this repository
|
||||
contains the full copyright notices and license terms. -->
|
||||
<data>
|
||||
<xpath expr="/tree/field[@name='method']" position="after">
|
||||
<field name="stress_test"/>
|
||||
</xpath>
|
||||
</data>
|
Loading…
Reference in New Issue