← Back to team overview

openerp-dev-web team mailing list archive

[Merge] lp:~openerp-dev/openobject-addons/sbh-dev-addons1 into lp:~openerp-dev/openobject-addons/trunk-dev-addons1

 

Bhumika (OpenERP) has proposed merging lp:~openerp-dev/openobject-addons/sbh-dev-addons1 into lp:~openerp-dev/openobject-addons/trunk-dev-addons1.

Requested reviews:
  OpenERP R&D Team (openerp-dev)
Related bugs:
  #644398 Resource : there is no menu entry to configure resource.calendar
  https://bugs.launchpad.net/bugs/644398
  #671360 [RC1] base_report_designer can't push report to db
  https://bugs.launchpad.net/bugs/671360
  #680121 Partner : History tab should be invisible by default,must be available on request of concerned modules.
  https://bugs.launchpad.net/bugs/680121
  #684791 troubles with recurency in calendar
  https://bugs.launchpad.net/bugs/684791
  #689574 Not possible to create a Inbound call from the history tab of the partner form
  https://bugs.launchpad.net/bugs/689574
  #691006 cannot save new lead after have duplicated it.
  https://bugs.launchpad.net/bugs/691006
  #691640 Required field customer in project empty after customer delete
  https://bugs.launchpad.net/bugs/691640
  #692971 Sign in / Sign out by project : shouldn't be available if the project module isn't installed
  https://bugs.launchpad.net/bugs/692971
  #697066 Encoding problem in OpenOffice Plugin
  https://bugs.launchpad.net/bugs/697066
  #710650 Link User to Sales Team
  https://bugs.launchpad.net/bugs/710650

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/sbh-dev-addons1/+merge/48139

Bug fixes lp:710650
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/sbh-dev-addons1/+merge/48139
Your team OpenERP R&D Team is requested to review the proposed merge of lp:~openerp-dev/openobject-addons/sbh-dev-addons1 into lp:~openerp-dev/openobject-addons/trunk-dev-addons1.
=== modified file 'crm/crm.py'
--- crm/crm.py	2011-01-14 00:11:01 +0000
+++ crm/crm.py	2011-02-01 11:39:59 +0000
@@ -742,6 +742,13 @@
     _columns = {
         'context_section_id': fields.many2one('crm.case.section', 'Sales Team'),
     }
+    def write(self, cr, uid, ids, vals, context=None):
+        res = super(users, self).write(cr, uid, ids, vals, context=context)
+        section_obj=self.pool.get('crm.case.section')
+        for user in self.browse(cr, uid, ids, context):
+            if user.context_section_id:
+               section_obj.write(cr, uid, [user.context_section_id.id], {'member_ids':[(4, user.id)]},context)
+        return res    
 users()
 
 


Follow ups