[MERGE] trunk-dev-addons1
bzr revid: jam@tinyerp.com-20110202051638-0f0qy2bnyfi76t1b
This commit is contained in:
@@ -742,6 +742,13 @@ class users(osv.osv):
|
||||
_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()
|
||||
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
<record id="project_plannning_1" model="report_account_analytic.planning">
|
||||
<field name="name">Project_Planning</field>
|
||||
<field name="business_days">20</field>
|
||||
<field name="date_from" eval="time.strftime('%Y-%m-01 10:00:00')"/>
|
||||
<field name="date_to" eval="time.strftime('%Y-%m-30 15:23:00')"/>
|
||||
<field name="date_from" eval="time.strftime('%Y-%m-01')"/>
|
||||
<field name="date_to" eval="time.strftime('%Y-%m-30')"/>
|
||||
<field name="state">open</field>
|
||||
<field name="user_id" ref="project.res_users_project_manager"/>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user