document_change: add the button in view

bzr revid: sbh@tinyerp.com-20100121122634-de60g8cmqsc0gokw
This commit is contained in:
sbh (Open ERP)
2010-01-21 17:56:34 +05:30
parent dcb40908ef
commit caf7b1d5d3
2 changed files with 6 additions and 2 deletions
+4 -2
View File
@@ -84,8 +84,7 @@ class document_change_process_model(osv.osv):
'name': fields.char("Changed Process Model", size=64,required=True),
'sequence': fields.integer('Sequence'),
'phase_type_ids':fields.many2many('document.change.process.phase.type','phase_type_rel','phase_id','phase_model_id','Process Type', required=True),
}
}
document_change_process_model()
@@ -98,6 +97,9 @@ class document_file(osv.osv):
'target_document_id': fields.many2one('document.directory', 'Target Document'),
'target':fields.binary('Target'),
}
_defaults = {
'state': lambda *a: 'validate',
}
document_file()
class document_change_process_type(osv.osv):
@@ -193,6 +193,8 @@
</group>
<separator string="Change Control" colspan="4"/>
<field name="state"/>
<button name="button_cft" string="cfr Document Workflow" type="object" />
<button name="button_request" string="Request Modification" type="object" />
<newline/>
<field name="target_document_id"/>
<field name="target"/>