From a5bb69ec28bad2d86f5559d377862f0f77744f5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Tue, 7 May 2013 11:36:36 +0200 Subject: [PATCH] [IMP] project: improved privacy_visiliby options labels, improved form view according to new specs. bzr revid: tde@openerp.com-20130507093636-gk9k1rc52u3ats3a --- addons/mail/mail_alias.py | 2 +- addons/portal_project/project.py | 2 +- addons/project/project.py | 6 ++--- addons/project/project_view.xml | 38 +++++++++++++------------------- 4 files changed, 20 insertions(+), 28 deletions(-) diff --git a/addons/mail/mail_alias.py b/addons/mail/mail_alias.py index dbf5af057b5..4ecc41b6ee8 100644 --- a/addons/mail/mail_alias.py +++ b/addons/mail/mail_alias.py @@ -92,7 +92,7 @@ class mail_alias(osv.Model): ('everyone', 'Everyone'), ('partners', 'Authenticated Partners'), ('followers', 'Followers only'), - ], string='Contact policy', required=True, + ], string='Alias Contact Security', required=True, help="Policy to post a message on the document using the mailgateway.\n" "- everyone: everyone can post\n" "- partners: only authenticated partners\n" diff --git a/addons/portal_project/project.py b/addons/portal_project/project.py index fb783c8a531..71eb00914e0 100644 --- a/addons/portal_project/project.py +++ b/addons/portal_project/project.py @@ -30,7 +30,7 @@ class portal_project(osv.Model): """ Override to add portal option. """ selection = super(portal_project, self)._get_visibility_selection(cr, uid, context=context) idx = [item[0] for item in selection].index('public') - selection.insert((idx + 1), ('portal', 'Portal Users and Employees')) + selection.insert((idx + 1), ('portal', 'Customer related project: visible through portal')) return selection # return [('public', 'All Users'), # ('portal', 'Portal Users and Employees'), diff --git a/addons/project/project.py b/addons/project/project.py index c958470064e..5bc09fcfefe 100644 --- a/addons/project/project.py +++ b/addons/project/project.py @@ -210,9 +210,9 @@ class project(osv.osv): def _get_visibility_selection(self, cr, uid, context=None): """ Overriden in portal_project to offer more options """ - return [('public', 'All Users'), - ('employees', 'Employees Only'), - ('followers', 'Followers Only')] + return [('public', 'Public project'), + ('employees', 'Internal project: all employees can access'), + ('followers', 'Private project: followers Only')] def attachment_tree_view(self, cr, uid, ids, context): task_ids = self.pool.get('project.task').search(cr, uid, [('project_id', 'in', ids)]) diff --git a/addons/project/project_view.xml b/addons/project/project_view.xml index 2c03445b900..0363aa0a7c7 100644 --- a/addons/project/project_view.xml +++ b/addons/project/project_view.xml @@ -88,19 +88,6 @@

-
- - %% - - - - %% - @ - - V - -
- - - + + + + - - - -

- To invoice or setup invoicing and renewal options, go to the related contract: . -

-
+ +

+ To invoice or setup invoicing and renewal options, go to the related contract: . +