[REF] project_long_term: Clean the views

bzr revid: stw@openerp.com-20120615143922-5oq815a5rs1sop1l
This commit is contained in:
Stephane Wirtel 2012-06-15 16:39:22 +02:00
parent 16f5816731
commit 34891cff99
2 changed files with 2 additions and 3 deletions

View File

@ -28,7 +28,7 @@ class project_compute_phases(osv.osv_memory):
'target_project': fields.selection([
('all', 'Compute All My Projects'),
('one', 'Compute a Single Project'),
], 'Schedule', required=True),
], 'Action', required=True),
'project_id': fields.many2one('project.project', 'Project')
}
_defaults = {

View File

@ -10,9 +10,8 @@
<form string="Schedule Phases" version="7.0">
<header>
<button icon="gtk-ok" name="check_selection" string="C_ompute" type="object"/>
<button icon="gtk-cancel" special="cancel" string="_Cancel"/>
</header>
<group string="Schedule Phases">
<group>
<field name="target_project"/>
<field name="project_id" attrs="{'invisible':[('target_project','=','all')], 'required':[('target_project','!=','all')]}"/>
</group>