Add date_stop, date_start and state for the res.contact.job

bzr revid: stephane@tinyerp.com-20081020131706-uaklguc4v6uuoc8z
This commit is contained in:
Stephane Wirtel 2008-10-20 15:17:06 +02:00
parent bc07a30a08
commit 63be12114d
2 changed files with 11 additions and 3 deletions

View File

@ -133,10 +133,14 @@ class res_partner_job(osv.osv):
'sequence_partner':fields.integer('Sequence (Partner)',help='order of importance of this function in the list of functions of the linked partner'),
'email': fields.char('E-Mail', size=240),
'phone': fields.char('Phone', size=64),
'date_start' : fields.date('Date Start'),
'date_stop' : fields.date('Date Stop'),
'state' : fields.selection([('past', 'Past'),('current', 'Current')], 'State', required=True),
}
_defaults = {
'sequence_contact' : lambda *a: 0,
'state' : lambda *a: 'past',
}
res_partner_job()

View File

@ -23,10 +23,10 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Partner Contact">
<notebook>
<field name="name" select="1"/>
<field name="first_name" select="1"/>
<notebook colspan="4" >
<page string="General">
<field name="name" select="1"/>
<field name="first_name" select="1"/>
<newline/>
<separator string="General Information" colspan="4"/>
<field name="mobile" select="2"/>
@ -43,6 +43,9 @@
<field name="address_id"/>
<field name="phone"/>
<field name="email"/>
<field name="date_start" />
<field name="date_stop" />
<field name="state" />
</form>
<tree string="Functions">
<field name="sequence_contact"/>
@ -51,6 +54,7 @@
<field name="address_id"/>
<field name="phone"/>
<field name="email"/>
<field name="state" />
</tree>
</field>
</page>