adapt to suport work_center_category
This commit is contained in:
parent
11a07886b4
commit
140400e38c
|
@ -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,
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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"/>
|
||||
|
|
|
@ -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>
|
|
@ -5,5 +5,6 @@
|
|||
<field name="production"/>
|
||||
<field name="operation_type"/>
|
||||
<field name="work_center"/>
|
||||
<field name="work_center_category"/>
|
||||
<field name="state"/>
|
||||
</tree>
|
||||
|
|
|
@ -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>
|
|
@ -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>
|
Loading…
Reference in New Issue