bzr revid: fp@tinyerp.com-20100317062116-odz1ombttmkgb68x
This commit is contained in:
Fabien Pinckaers
2010-03-17 07:21:16 +01:00
parent f318384603
commit 4f77a10054
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -156,6 +156,7 @@ class crm_case_stage(osv.osv):
'object_id': fields.many2one('ir.model','Object Name'),
'probability': fields.float('Probability (%)', required=True),
'on_change': fields.boolean('Change Probability Automatically',help="Change Probability on next and previous stages."),
'requirements': fields.text('Requirements')
}
def _find_object_id(self, cr, uid, context=None):
object_id = context and context.get('object_id', False) or False
+3 -1
View File
@@ -71,13 +71,15 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Stage">
<separator string="Stage Definition" colspan="4"/>
<field name="name" select="1"/>
<field name="section_id" select="1" widget="selection"/>
<field name="object_id" invisible="1" />
<field name="sequence"/>
<field name="probability"/>
<field name="on_change"/>
<separator string="Requirements" colspan="4"/>
<field name="requirements" nolabel="1" colspan="4"/>
</form>
</field>
</record>