adapt to suport work_center_category

This commit is contained in:
?ngel ?lvarez 2014-01-04 19:36:34 +01:00
parent 11a07886b4
commit 140400e38c
7 changed files with 21 additions and 16 deletions

View File

@ -1,10 +1,9 @@
#The COPYRIGHT file at the top level of this repository contains the full
#copyright notices and license terms.
# The COPYRIGHT file at the top level of this repository contains the full
# copyright notices and license terms.
from trytond.pool import Pool
from .operation import *
def register():
Pool.register(
Operation,

View File

@ -21,6 +21,8 @@ class Operation(Workflow, ModelSQL, ModelView):
production = fields.Many2One('production', 'Production', required=True,
states=STATES, depends=DEPENDS)
sequence = fields.Integer('Sequence', states=STATES, depends=DEPENDS)
work_center_category = fields.Many2One('production.work_center.category',
'Work Center Category', states=STATES, depends=DEPENDS)
work_center = fields.Many2One('production.work_center', 'Work Center',
states=STATES, depends=DEPENDS)
route_operation = fields.Many2One('production.route.operation',

View File

@ -8,6 +8,8 @@
<field name="production"/>
<label name="work_center"/>
<field name="work_center"/>
<label name="work_center_category"/>
<field name="work_center_category"/>
<label name="sequence"/>
<field name="sequence"/>
<field name="lines" colspan="4"/>

View File

@ -1,9 +0,0 @@
<?xml version="1.0"?>
<!-- The COPYRIGHT file at the top level of this repository contains the full
copyright notices and license terms. -->
<form string="Operation Tracking" col="4">
<label name="quantity"/>
<field name="quantity"/>
<label name="uom"/>
<field name="uom"/>
</form>

View File

@ -5,5 +5,6 @@
<field name="production"/>
<field name="operation_type"/>
<field name="work_center"/>
<field name="work_center_category"/>
<field name="state"/>
</tree>

View File

@ -0,0 +1,9 @@
<?xml version="1.0"?><!-- The COPYRIGHT file at the top level of this repository contains the full
copyright notices and license terms. -->
<form string="Operation Tracking" col="4">
<label name="quantity"/>
<field name="quantity"/>
<label name="uom"/>
<field name="uom"/>
</form>

View File

@ -1,8 +1,9 @@
<?xml version="1.0"?>
<!-- The COPYRIGHT file at the top level of this repository contains the full
copyright notices and license terms. -->
<tree string="Operation Tracking">
<field name="operation"/>
<field name="quantity"/>
<field name="uom"/>
</tree>
<field name="operation"/>
<field name="quantity"/>
<field name="uom"/>
</tree>