[MERGE] bug fix 719859
bzr revid: tfr@openerp.com-20110218154015-aycasqulr3mizxvs
This commit is contained in:
commit
e2905d2e3c
|
@ -412,6 +412,17 @@ class crm_lead(crm_case, osv.osv):
|
|||
@param **args: Return Dictionary of Keyword Value
|
||||
"""
|
||||
return True
|
||||
|
||||
def on_chnage_optin(self, cr, uid, ids, optin):
|
||||
if optin:
|
||||
return {'value':{'optin':optin,'optout':False}}
|
||||
return {}
|
||||
|
||||
def on_chnage_optout(self, cr, uid, ids, optout):
|
||||
if optout:
|
||||
return {'value':{'optout':optout,'optin':False}}
|
||||
return {}
|
||||
|
||||
crm_lead()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -151,8 +151,8 @@
|
|||
</group>
|
||||
<group colspan="2" col="2">
|
||||
<separator string="Mailings" colspan="2" col="2"/>
|
||||
<field name="optin"/>
|
||||
<field name="optout"/>
|
||||
<field name="optin" on_change="on_chnage_optin(optin)"/>
|
||||
<field name="optout" on_change="on_chnage_optout(optout)"/>
|
||||
</group>
|
||||
<group colspan="2" col="2">
|
||||
<separator string="Statistics" colspan="2" col="2"/>
|
||||
|
|
Loading…
Reference in New Issue