document_change: fix the field document_change
bzr revid: sbh@tinyerp.com-20100121094501-qrvcuw01b6elfa5h
This commit is contained in:
@@ -50,14 +50,16 @@ class doucment_change_process_phase_type(osv.osv):
|
||||
}
|
||||
doucment_change_process_phase_type()
|
||||
|
||||
|
||||
class doucment_change_process(osv.osv):
|
||||
_name = "document.change.process"
|
||||
doucment_change_process()
|
||||
|
||||
class doucment_change_process_phase(osv.osv):
|
||||
_name = "document.change.process.phase"
|
||||
_description = "Document Change Process Phase"
|
||||
_columns = {
|
||||
'name': fields.char("Name", size=64),
|
||||
'process_id':fields.many2one('document.change.process'),
|
||||
'process_id':fields.many2one('document.change.process','Process Change'),
|
||||
'sequence': fields.integer('Sequence'),
|
||||
'update_document': fields.selection([('at_endPhase', 'At EndPhase'),('at_endprocess', 'At EndPorcess')], 'Update Document', required=True),
|
||||
'type': fields.selection([('required', 'Control Required'),('no_control', 'Control')], 'Type', required=True),
|
||||
@@ -110,12 +112,12 @@ class doucment_change_process(osv.osv):
|
||||
_columns = {
|
||||
'name': fields.char("Process Change", size=64),
|
||||
'sequence': fields.integer('Sequence'),
|
||||
'process_type_id' :fields.many2one('change.process.type','Type Change'),
|
||||
'process_type_id' :fields.many2one('document.change.process.type','Type Change'),
|
||||
'description': fields.char("Small Description", size=64),
|
||||
'change_description':fields.text('Changed Description'),
|
||||
'structure_id' :fields.many2one('document.directory','Structure ID'),
|
||||
'process_model_id':fields.many2one('document.change.process.model','Process Model'),
|
||||
'user_id':field.many2one('res.users','Change Owner'),
|
||||
'user_id':fields.many2one('res.users','Change Owner'),
|
||||
'create_date':fields.datetime('Creation'),
|
||||
'latest_modified_date':fields.function(_latestmodification, method=True, type='date', string="Lastest Modification"), #TODO no year!
|
||||
'date_expected':fields.datetime('Expected Production'),
|
||||
|
||||
@@ -224,7 +224,7 @@
|
||||
<field name="arch" type="xml">
|
||||
<form string="Phases">
|
||||
<field name="name" select="1"/>
|
||||
<!--<field name="" string="Process Change"/>-->
|
||||
<field name="process_id" string="Process Change"/>
|
||||
<field name="sequence"/>
|
||||
<field name="update_document" string="Update documents"/>
|
||||
<field name="type" string="Type"/>
|
||||
@@ -258,7 +258,7 @@
|
||||
</record>
|
||||
<menuitem action="action_process_phase_form" id="menu_phases_form" parent="menu_document_process_changes"/>
|
||||
|
||||
<!--
|
||||
<!--
|
||||
Process Change
|
||||
|
||||
<record model="ir.ui.view" id="view_process_form">
|
||||
@@ -272,7 +272,7 @@
|
||||
<page string="Process Definition">
|
||||
</page>
|
||||
<page string="Phases">
|
||||
editable o2m
|
||||
<field name="process_id"/>
|
||||
</page>
|
||||
<page string="Documents">
|
||||
m2m
|
||||
|
||||
Reference in New Issue
Block a user