diff options
| author | Gaurav Panchal <gan@openerp.com> | 2014-08-20 10:48:06 +0530 |
|---|---|---|
| committer | Richard Mathot <rim@odoo.com> | 2015-05-08 11:20:54 +0200 |
| commit | 3fe06da63409d8015f739b6f601e976862370d33 (patch) | |
| tree | 8fe0146e113e222293694c4532f0285b90a87a00 /addons/project_issue/project_issue.py | |
| parent | 42316d5aa58eb0528e44896cabb30ab4b3738e4a (diff) | |
[IMP] project,project_issue,sale: display the current contract state on some various objects like issues or tasks.
Implements a dynamic widget for selection fields to display this state with color codes.
Diffstat (limited to 'addons/project_issue/project_issue.py')
| -rw-r--r-- | addons/project_issue/project_issue.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/addons/project_issue/project_issue.py b/addons/project_issue/project_issue.py index 2f505b9d2e7..6240b4b3016 100644 --- a/addons/project_issue/project_issue.py +++ b/addons/project_issue/project_issue.py @@ -171,7 +171,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 {} + return {'value': {'partner_id': False}} _columns = { 'id': fields.integer('ID', readonly=True), @@ -292,11 +292,10 @@ class project_issue(osv.Model): """ This function returns value of partner email address based on partner :param part: Partner's id """ - result = {} if partner_id: partner = self.pool['res.partner'].browse(cr, uid, partner_id, context) - result['email_from'] = partner.email - return {'value': result} + return {'value': {'email_from': partner.email}} + return {'value': {'email_from': False}} def get_empty_list_help(self, cr, uid, help, context=None): context = dict(context or {}) |
