[IMP] better planline view
bzr revid: mat@openerp.com-20130405154437-y52cq4vqy7fxcgah
This commit is contained in:
@@ -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"),
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user