diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2015-12-11 16:03:00 +0100 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2015-12-11 16:37:38 +0100 |
| commit | 426172bb95d1ba82a431982940bb661cc9531330 (patch) | |
| tree | 2c19e28ab84becbd58167c19063ea8346657c48b /addons/project_issue/project_issue.py | |
| parent | 9ebbceeb658b15ba3f7ba0dc098b01baabe0624c (diff) | |
[FIX] project_issue: don't reset partner on project change
If an issue project is changed, depending if the destination project has
a set partner ("Customer") or not:
- if set, the project issue partner will be set accordingly
- otherway the potentially set partner will be conserved
Since 3fe06da if the project had not partner, the partner was unset
which is undesired.
Diffstat (limited to 'addons/project_issue/project_issue.py')
| -rw-r--r-- | addons/project_issue/project_issue.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/project_issue/project_issue.py b/addons/project_issue/project_issue.py index 21d1a8595e9..8e6ab3375ee 100644 --- a/addons/project_issue/project_issue.py +++ b/addons/project_issue/project_issue.py @@ -124,7 +124,7 @@ class project_issue(osv.Model): project = self.pool.get('project.project').browse(cr, uid, project_id, context=context) if project and project.partner_id: return {'value': {'partner_id': project.partner_id.id}} - return {'value': {'partner_id': False}} + return {} _columns = { 'id': fields.integer('ID', readonly=True), |
