diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2015-04-22 10:57:49 +0200 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2015-05-08 12:59:30 +0200 |
| commit | f2b8144bccf4d7b61bccfc36a892ae38f3b7b2d9 (patch) | |
| tree | 63e717dd9f98dbbc3b46feda605fe280ab3ac98b /addons/project_issue/project_issue.py | |
| parent | a1fab0489466950a62f50925a1d3ad45f70a699a (diff) | |
[IMP] crm: set user partner team as default team
This fix sets the first sales team of the current user as the default sales
team if no other one is given.
For models: crm.lead, crm.phonecall, crm.claim, crm.helpdesk,
project.issue, sale.order, account.invoice
Existing methods are removed and new methods in sales team model
(crm.team) have to be called when needed.
closes #6438
opw-633562
Diffstat (limited to 'addons/project_issue/project_issue.py')
| -rw-r--r-- | addons/project_issue/project_issue.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/project_issue/project_issue.py b/addons/project_issue/project_issue.py index 7c836e7bb7d..52e97c42317 100644 --- a/addons/project_issue/project_issue.py +++ b/addons/project_issue/project_issue.py @@ -294,6 +294,7 @@ class project_issue(osv.Model): _defaults = { 'active': 1, + 'team_id': lambda s, cr, uid, c: s.pool['crm.team']._get_default_team_id(cr, uid, context=c), 'stage_id': lambda s, cr, uid, c: s._get_default_stage_id(cr, uid, c), 'company_id': lambda s, cr, uid, c: s.pool.get('res.company')._company_default_get(cr, uid, 'crm.helpdesk', context=c), 'priority': '0', |
