document_change:modfiy the reanme the field and modify the field of target_document
authorsbh (Open ERP) <sbh@tinyerp.com>
Mon, 25 Jan 2010 06:28:44 +0000 (11:58 +0530)
committersbh (Open ERP) <sbh@tinyerp.com>
Mon, 25 Jan 2010 06:28:44 +0000 (11:58 +0530)
bzr revid: sbh@tinyerp.com-20100125062844-y88fsqok6s80vumk

addons/document_change/document_change.py
addons/document_change/document_change_view.xml

index 990380e..1711a71 100644 (file)
@@ -36,7 +36,7 @@ class document_change_type(osv.osv):
     _columns = {
         'name': fields.char("Document Change Type", size=64,required=True),
         'phase_type_ids': fields.many2many('document.change.process.phase.type','document_type_phase_type_rel','document_type_id','phase_type_id','Phase Type'),
-        'directory_id' :fields.many2one('document.directory','Directory'),        
+        'directory_id' :fields.many2one('document.directory','Pending Directory'),        
         'template_document_id':fields.many2one('ir.attachment','Document')
     }
 document_change_type()
@@ -213,8 +213,8 @@ class document_file(osv.osv):
     _columns = {
         'change_type_id':fields.many2one('document.change.type','Document Type'),
         'state': fields.selection([('in_production', 'In Production'), ('change_request', 'Change Request'),('change_propose', 'Change Proposed'), ('to_update', 'To Update'), ('cancel', 'Cancel')], 'State'),
-        'target_directory_id': fields.many2one('document.directory', 'Target Document'),
-        'target_document_id':fields.binary('Target'),
+        'target_document_id': fields.many2one('ir.attachment', 'Target Document'),
+        'target':fields.binary('Target'),
         'process_phase_id' :fields.many2one('document.change.process.phase','Process Phase'),
         'progress': fields.float('Progress'), #TODO : functio field: calculate progress
         'change_process_id': fields.related('process_phase_id', 'process_id', type='many2one', relation='document.change.process', string='Change Process'),
index 8d1c825..1d1811e 100644 (file)
                                        <button name="button_cancel" states="change_request,change_propose" string="Cancel"  icon="gtk-cancel"/>
                 </group>
                 <newline/>
-                <field name="target_directory_id"/>
-                <field name="target_document_id"/>                
+                <field name="target_document_id"/>    
+                               <field name="target"/>                            
                 <newline/>
                 <separator string="Change Note" colspan="4"/>
                 <field colspan="4" name="description" nolabel="1"/>