Add test environment on quality test line

This commit is contained in:
Sergi Almacellas Abellana 2016-02-10 14:36:03 +01:00
parent c4fd75da42
commit 76cf2b706f
7 changed files with 46 additions and 1 deletions

View File

@ -15,4 +15,5 @@ def register():
QualityTest,
QualitativeLine,
QuantitativeLine,
TestLine,
module='quality_control_stress_test', type_='model')

View File

@ -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"

View File

@ -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"

View File

@ -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'

View File

@ -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>

View File

@ -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>

View File

@ -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>