openerp-dev-web team mailing list archive
-
openerp-dev-web team
-
Mailing list archive
-
Message #03217
[Merge] lp:~openerp-dev/openobject-addons/trunk-bug-719859-jam into lp:openobject-addons
Jigar Amin - OpenERP has proposed merging lp:~openerp-dev/openobject-addons/trunk-bug-719859-jam into lp:openobject-addons.
Requested reviews:
tfr (Openerp) (tfr)
Related bugs:
#719859 [PS] Lead : opt-in opt-out
https://bugs.launchpad.net/bugs/719859
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-719859-jam/+merge/50322
Hello,
Changes Proposed for Merging:
+ lp:719859 [PS] Lead : opt-in opt-out
Kindly Review this.
Thank You
Proposed Improvement has been fixed
Kindly Recheck the Proposal
Thank You
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-719859-jam/+merge/50322
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/trunk-bug-719859-jam.
=== modified file 'crm/crm_lead.py'
--- crm/crm_lead.py 2011-01-27 12:58:29 +0000
+++ crm/crm_lead.py 2011-02-18 12:27:58 +0000
@@ -412,6 +412,17 @@
@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:
=== modified file 'crm/crm_lead_view.xml'
--- crm/crm_lead_view.xml 2011-01-14 00:11:01 +0000
+++ crm/crm_lead_view.xml 2011-02-18 12:27:58 +0000
@@ -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"/>
Follow ups