From d0f331f25ad26f8e72a50845992b6d527e9c2af0 Mon Sep 17 00:00:00 2001 From: "uco (OpenERP)" Date: Thu, 21 Jan 2010 16:28:48 +0530 Subject: [PATCH] [ADD] document_change: Added actions and menuitems for Change Control. Improved a field. bzr revid: uco@tinyerp.co.in-20100121105848-hfc6uz0k7bxgs8fj --- addons/document_change/document_change.py | 2 +- .../document_change/document_change_view.xml | 45 ++++++++++++++++++- 2 files changed, 44 insertions(+), 3 deletions(-) diff --git a/addons/document_change/document_change.py b/addons/document_change/document_change.py index 087ef600025..9cfb8950144 100644 --- a/addons/document_change/document_change.py +++ b/addons/document_change/document_change.py @@ -69,7 +69,7 @@ class doucment_change_process_phase(osv.osv): 'date_control': fields.date('Control Date', select=True), 'phase_ids':fields.many2one('document.change.process.phase','Phase Type'), 'state': fields.selection([('draft', 'Draft'),('started', 'Started'),('validate', 'To Validate'), ('end', 'End')], 'Status', readonly=True), - 'phase_document_ids':fields.many2many('ir.attachment','Document','phase_document_rel','phase_id','document_id','Phase Type'), + 'phase_document_ids':fields.many2many('ir.attachment','phase_document_rel','phase_id','document_id','Document'), } doucment_change_process_phase() diff --git a/addons/document_change/document_change_view.xml b/addons/document_change/document_change_view.xml index a8e5ce2e9f3..a3b0083f460 100644 --- a/addons/document_change/document_change_view.xml +++ b/addons/document_change/document_change_view.xml @@ -247,6 +247,28 @@ + + ir.actions.act_window + ir.attachment + Documents Without Type + form + tree,form + + [] + + + + + ir.actions.act_window + ir.attachment + Documents to Update + form + tree,form + + [] + + + @@ -293,7 +315,16 @@ tree,form - + + + ir.actions.act_window + document.change.process.phase + Phases to Validate + form + tree,form + [('state','=','draft')] + + @@ -337,7 +368,7 @@
- + @@ -411,5 +442,15 @@ tree,form,calendar,graph + + + ir.actions.act_window + document.change.process + Process Changes to Validate + form + tree,form + [('state','=','draft')] + + \ No newline at end of file