[IMP] better planline view

bzr revid: mat@openerp.com-20130405154437-y52cq4vqy7fxcgah
This commit is contained in:
Martin Trigaux
2013-04-05 17:44:37 +02:00
parent 9ae0fc2f38
commit b6437a010c
2 changed files with 6 additions and 6 deletions
+3
View File
@@ -585,4 +585,7 @@ class gamification_goal_planline(osv.Model):
store={
'gamification.goal.type': (_get_planline_types, ['sequence'], 10),
}),
'type_condition': fields.related('type_id', 'condition', type="selection",
readonly=True, string="Condition", selection=[('lower', '<='), ('higher', '>=')]),
'type_unit': fields.related('type_id', 'unit', type="char", readonly=True, string="Unit"),
}
+3 -6
View File
@@ -99,12 +99,7 @@
</group>
<group string="Goals">
<field name="planline_ids" nolabel="1" colspan="4">
<tree string="Planline List" version="7.0" editable="bottom" >
<field name="type_id"/>
<field name="target_goal"/>
</tree>
</field>
<field name="planline_ids" nolabel="1" colspan="4" />
<label for="visibility_mode" colspan="1"/>
<div>
<field name="visibility_mode" widget="radio" colspan="1" />
@@ -158,7 +153,9 @@
<field name="arch" type="xml">
<tree string="planline list" >
<field name="type_id"/>
<field name="type_condition"/>
<field name="target_goal"/>
<field name="type_unit"/>
</tree>
</field>
</record>