From d6ba13a3945b5829972031c49a6ab623742e040d Mon Sep 17 00:00:00 2001 From: "vta vta@openerp.com" <> Date: Fri, 16 Nov 2012 08:53:05 +0100 Subject: [PATCH 01/31] [IMP] Minor improvements in portal views, such as contact and employees. Improved menus and string on empty views. Send the password when a partner is invited to portal via sidebar menu. bzr revid: vta@openerp.com-20121116075305-4d0olu5zlvwsxeq8 --- addons/portal/portal_view.xml | 29 +++++--- addons/portal/wizard/portal_wizard.py | 5 +- addons/portal_crm/wizard/contact.py | 9 ++- addons/portal_crm/wizard/contact_view.xml | 60 +++++++--------- addons/portal_event/portal_event_view.xml | 4 +- .../portal_hr_employees/hr_employee_view.xml | 69 +++++++++++-------- .../portal_project_issue_view.xml | 4 +- addons/portal_sale/portal_sale_view.xml | 31 +++------ 8 files changed, 105 insertions(+), 106 deletions(-) diff --git a/addons/portal/portal_view.xml b/addons/portal/portal_view.xml index 5b39ea89525..45fa2a4dacb 100644 --- a/addons/portal/portal_view.xml +++ b/addons/portal/portal_view.xml @@ -8,18 +8,18 @@ groups="base.group_no_one,portal.group_portal" sequence="20"/> - - - + + + + - - - - - + + + + @@ -47,5 +47,12 @@ + + + + diff --git a/addons/portal/wizard/portal_wizard.py b/addons/portal/wizard/portal_wizard.py index bf8353c92c1..545b771e762 100644 --- a/addons/portal/wizard/portal_wizard.py +++ b/addons/portal/wizard/portal_wizard.py @@ -39,6 +39,7 @@ You have been given access to %(portal)s. Your login account data is: Database: %(db)s Username: %(login)s +Password: %(password)s In order to complete the signin process, click on the following url: %(url)s @@ -210,6 +211,7 @@ class wizard_user(osv.osv_memory): 'name': user.name, 'login': user.login, 'url': user.signup_url, + 'password': user.password, } mail_mail = self.pool.get('mail.mail') mail_values = { @@ -219,6 +221,7 @@ class wizard_user(osv.osv_memory): 'body_html': '
%s
' % (_(WELCOME_EMAIL_BODY) % data), 'state': 'outgoing', } - return mail_mail.create(cr, uid, mail_values, context=this_context) + mail_id = mail_mail.create(cr, uid, mail_values, context=this_context) + return mail_mail.send(cr, uid, [mail_id], context=this_context) # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/portal_crm/wizard/contact.py b/addons/portal_crm/wizard/contact.py index a0f0d952a66..65de0c96226 100644 --- a/addons/portal_crm/wizard/contact.py +++ b/addons/portal_crm/wizard/contact.py @@ -28,6 +28,8 @@ class crm_contact_us(osv.TransientModel): _description = 'Contact form for the portal' _inherit = 'crm.lead' _columns = { + 'subject' : fields.char('Subject', required=True), + 'body' : fields.text('Content', required=True), 'company_ids' : fields.many2many('res.company', string='Companies', readonly=True), } @@ -95,7 +97,10 @@ class crm_contact_us(osv.TransientModel): it is quite complicated to set proper rights for this object. Therefore, user SUPERUSER_ID will perform the creation. """ - values['contact_name'] = values['name'] + print values + values['name'] = values['subject'] + values['contact_name'] = values['partner_name'] + values['description'] = values['body'] crm_lead.create(cr, SUPERUSER_ID, dict(values,user_id=False), context) """ @@ -114,7 +119,7 @@ class crm_contact_us(osv.TransientModel): 'res_model': self._name, 'res_id': ids[0], 'view_id': self.pool.get('ir.model.data').get_object_reference(cr, uid, 'portal_crm', 'wizard_contact_form_view_thanks')[1], - 'target': 'inline', + 'target': 'new', } def _needaction_domain_get(self, cr, uid, context=None): diff --git a/addons/portal_crm/wizard/contact_view.xml b/addons/portal_crm/wizard/contact_view.xml index 778e7f9562e..70f87fe1ff8 100644 --- a/addons/portal_crm/wizard/contact_view.xml +++ b/addons/portal_crm/wizard/contact_view.xml @@ -2,31 +2,25 @@ - - + Wizard form view portal_crm.crm_contact_us
-
+

Contact us

- - - - - - - - -
-
- - - - - - + + + + + + + +
-
-
- + + + @@ -59,18 +53,13 @@ -
-
-
- -
-
-
+ + + + +
@@ -88,15 +77,14 @@ otherwise the orm will try to select all the model's records and this will result in a permission denied error --> - +
- - - Contact + + Contact Us portal_crm.crm_contact_us form inline @@ -104,7 +92,7 @@ + parent="portal.portal_company" action="action_contact_us" sequence="40"/>
diff --git a/addons/portal_event/portal_event_view.xml b/addons/portal_event/portal_event_view.xml index 5d2397f6148..0a0f59d7857 100755 --- a/addons/portal_event/portal_event_view.xml +++ b/addons/portal_event/portal_event_view.xml @@ -10,14 +10,14 @@ Events ir.actions.act_window event.event - kanban,calendar,tree,form,graph + kanban,calendar,tree,form {"search_default_upcoming":1} There are no public events. + action="action_event_view" sequence="30"/> diff --git a/addons/portal_hr_employees/hr_employee_view.xml b/addons/portal_hr_employees/hr_employee_view.xml index 4e133061da6..6af4abb7b7f 100644 --- a/addons/portal_hr_employees/hr_employee_view.xml +++ b/addons/portal_hr_employees/hr_employee_view.xml @@ -1,6 +1,6 @@ - + @@ -15,42 +15,51 @@ - - portal_hr_employees.employees_list + + portal_hr_employees_view portal_crm.crm_contact_us - - -

Meet the team

+
- - - - - -
-
- -
-
-

- () -

-
    -
  • -
  • Tel:
  • -
  • Mobile:
  • -
  • -
-
+ + + + +
+
+
- - - +
+

+ () +

+
    +
  • +
  • Tel:
  • +
  • Mobile:
  • +
  • +
+
+
+
+
+
- + + + Meet the team + portal_crm.crm_contact_us + + form + form + Here you can see our employees' public profile, if any + + + + diff --git a/addons/portal_project_issue/portal_project_issue_view.xml b/addons/portal_project_issue/portal_project_issue_view.xml index 6502d92b4dc..5a88e54a00b 100644 --- a/addons/portal_project_issue/portal_project_issue_view.xml +++ b/addons/portal_project_issue/portal_project_issue_view.xml @@ -75,8 +75,8 @@

Click to create an issue.

- OpenERP's kanban view will help you track easily your current - pipeline of issues to fix. + You can track your claims from this menu and the action we + will take.

diff --git a/addons/portal_sale/portal_sale_view.xml b/addons/portal_sale/portal_sale_view.xml index b46175f7feb..216cc828835 100644 --- a/addons/portal_sale/portal_sale_view.xml +++ b/addons/portal_sale/portal_sale_view.xml @@ -13,7 +13,7 @@ tree,form,calendar,graph {"search_default_draft":1} - You don't have any quotation. + We haven't sent you any quotation. @@ -23,7 +23,7 @@ tree,form,calendar,graph {"search_default_sales":1} - You don't have any sale order. + We haven't sent you any sale order. @@ -34,18 +34,7 @@ [('type','=','out')] {'default_type': 'out', 'contact_display': 'partner_address'} - You don't have any delivery order. - - - - Products - ir.actions.act_window - product.product - form - kanban,tree,form - - - There are no public products. + We haven't sent you any delivery order. @@ -55,7 +44,7 @@ [('type','=','out_invoice')] {'default_type':'out_invoice', 'type':'out_invoice', 'journal_type': 'sale'} - You don't have any invoice. + We haven't sent you any invoice. @@ -65,7 +54,7 @@ {'type':'receipt'} current - You don't have any refunds or payments. + We haven't sent you any credit note. - - - + + From e92a31e2bb365a1453d555bbf8d18069ed94299a Mon Sep 17 00:00:00 2001 From: "vta vta@openerp.com" <> Date: Fri, 16 Nov 2012 08:57:44 +0100 Subject: [PATCH 02/31] [IMP] Now portal users can subscribe to public content. bzr revid: vta@openerp.com-20121116075744-tclpsjxi1ut6wvh8 --- addons/mail/mail_thread.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/addons/mail/mail_thread.py b/addons/mail/mail_thread.py index ee1a015396b..4f7871ca961 100644 --- a/addons/mail/mail_thread.py +++ b/addons/mail/mail_thread.py @@ -796,11 +796,12 @@ class mail_thread(osv.AbstractModel): def message_subscribe(self, cr, uid, ids, partner_ids, subtype_ids=None, context=None): """ Add partners to the records followers. """ - self.write(cr, uid, ids, {'message_follower_ids': [(4, pid) for pid in partner_ids]}, context=context) + self.check_access_rights(cr, uid, 'read') + self.write(cr, SUPERUSER_ID, ids, {'message_follower_ids': [(4, pid) for pid in partner_ids]}, context=context) # if subtypes are not specified (and not set to a void list), fetch default ones if subtype_ids is None: subtype_obj = self.pool.get('mail.message.subtype') - subtype_ids = subtype_obj.search(cr, uid, [('default', '=', True), '|', ('res_model', '=', self._name), ('res_model', '=', False)], context=context) + subtype_ids = subtype_obj.search(cr, SUPERUSER_ID, [('default', '=', True), '|', ('res_model', '=', self._name), ('res_model', '=', False)], context=context) # update the subscriptions fol_obj = self.pool.get('mail.followers') fol_ids = fol_obj.search(cr, SUPERUSER_ID, [('res_model', '=', self._name), ('res_id', 'in', ids), ('partner_id', 'in', partner_ids)], context=context) From ed3c46aa6f973f65d6df0db295ec529789e927e4 Mon Sep 17 00:00:00 2001 From: "vta vta@openerp.com" <> Date: Fri, 16 Nov 2012 11:30:48 +0100 Subject: [PATCH 03/31] [FIX] Move required to the view. bzr revid: vta@openerp.com-20121116103048-0ervln9ekqly89qx --- addons/portal_crm/wizard/contact.py | 4 ++-- addons/portal_crm/wizard/contact_view.xml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/portal_crm/wizard/contact.py b/addons/portal_crm/wizard/contact.py index 65de0c96226..09605257a5a 100644 --- a/addons/portal_crm/wizard/contact.py +++ b/addons/portal_crm/wizard/contact.py @@ -28,8 +28,8 @@ class crm_contact_us(osv.TransientModel): _description = 'Contact form for the portal' _inherit = 'crm.lead' _columns = { - 'subject' : fields.char('Subject', required=True), - 'body' : fields.text('Content', required=True), + 'subject' : fields.char('Subject'), + 'body' : fields.text('Content'), 'company_ids' : fields.many2many('res.company', string='Companies', readonly=True), } diff --git a/addons/portal_crm/wizard/contact_view.xml b/addons/portal_crm/wizard/contact_view.xml index 70f87fe1ff8..dce8e18a69b 100644 --- a/addons/portal_crm/wizard/contact_view.xml +++ b/addons/portal_crm/wizard/contact_view.xml @@ -15,8 +15,8 @@ - - + + -
-
- -
+ +
+ +
+
+ +
+
+
+

Followers

+ Invite others +
+
-
-

Followers

- Invite others -
-
- portal_hr_employees.employee.form + portal_hr_employees_form hr.employee @@ -17,7 +17,7 @@ portal_hr_employees_view - portal_crm.crm_contact_us + crm.team @@ -51,11 +51,11 @@ Meet the team - portal_crm.crm_contact_us + crm.team - form form - Here you can see our employees' public profile, if any + inline + Here you can see our employees' public profile, if any. Date: Tue, 20 Nov 2012 14:08:24 +0100 Subject: [PATCH 14/31] [IMP] General improvements to issues and claims. bzr revid: vta@openerp.com-20121120130824-zmx5yhaalwf3potd --- addons/base_status/base_stage.py | 6 +- addons/crm_claim/crm_claim_view.xml | 12 +-- addons/portal_claim/portal_claim_view.xml | 74 ++++++++++++++++++- .../portal_claim/security/ir.model.access.csv | 2 +- .../portal_claim/security/portal_security.xml | 2 +- addons/portal_project_issue/__init__.py | 1 - .../portal_project_issue_view.xml | 63 ++++++++-------- .../security/ir.model.access.csv | 2 +- .../portal_sale/security/ir.model.access.csv | 1 + addons/project/project_view.xml | 2 +- addons/project_issue/project_issue_view.xml | 14 ++-- 11 files changed, 122 insertions(+), 57 deletions(-) diff --git a/addons/base_status/base_stage.py b/addons/base_status/base_stage.py index 867b2207a99..98b32402788 100644 --- a/addons/base_status/base_stage.py +++ b/addons/base_status/base_stage.py @@ -41,9 +41,11 @@ class base_stage(object): """ if context is None: context = {} - if not context or not context.get('portal'): + if not context: return False user = self.pool.get('res.users').browse(cr, uid, uid, context=context) + if context.get('portal'): + return user.partner_id.id if hasattr(user, 'partner_address_id') and user.partner_address_id: return user.partner_address_id return user.company_id.partner_id.id @@ -65,7 +67,7 @@ class base_stage(object): """ if context is None: context = {} - if not context or not context.get('portal'): + if not context or context.get('portal'): return False return uid diff --git a/addons/crm_claim/crm_claim_view.xml b/addons/crm_claim/crm_claim_view.xml index 85507a32c0f..f56ee73f908 100644 --- a/addons/crm_claim/crm_claim_view.xml +++ b/addons/crm_claim/crm_claim_view.xml @@ -104,7 +104,7 @@
@@ -113,9 +113,9 @@ - + - + @@ -130,17 +130,17 @@ - + - + - + diff --git a/addons/portal_claim/portal_claim_view.xml b/addons/portal_claim/portal_claim_view.xml index e08b39e476b..0e3a2006bc3 100644 --- a/addons/portal_claim/portal_claim_view.xml +++ b/addons/portal_claim/portal_claim_view.xml @@ -1,14 +1,80 @@ - + + + + CRM Claim Kanban + crm.claim + 20 + + + + + + + + + + + +
+
+
+

+
+
+

+
+ +
+
+
+ Creation: + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+
+
+
+ + + + + Claims crm.claim form - tree,calendar,form - - {"search_default_user_id":'', "stage_type":'claim'} + tree,form,kanban,calendar + + {"search_default_user_id":'', "stage_type":'claim', "portal":'True'}

diff --git a/addons/portal_claim/security/ir.model.access.csv b/addons/portal_claim/security/ir.model.access.csv index ab2a2f66770..4fcfd0f947f 100644 --- a/addons/portal_claim/security/ir.model.access.csv +++ b/addons/portal_claim/security/ir.model.access.csv @@ -1,3 +1,3 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink -access_crm_claim,crm.claim,crm_claim.model_crm_claim,portal.group_portal,1,0,0,0 +access_crm_claim,crm.claim,crm_claim.model_crm_claim,portal.group_portal,1,0,1,0 access_crm_claim_stage,crm.claim.stage,crm_claim.model_crm_claim_stage,portal.group_portal,1,0,0,0 diff --git a/addons/portal_claim/security/portal_security.xml b/addons/portal_claim/security/portal_security.xml index 3742765f795..7227e6511ac 100644 --- a/addons/portal_claim/security/portal_security.xml +++ b/addons/portal_claim/security/portal_security.xml @@ -10,7 +10,7 @@ - + diff --git a/addons/portal_project_issue/__init__.py b/addons/portal_project_issue/__init__.py index 26c654db9dd..45de899ed49 100644 --- a/addons/portal_project_issue/__init__.py +++ b/addons/portal_project_issue/__init__.py @@ -18,4 +18,3 @@ # along with this program. If not, see . # ############################################################################## - diff --git a/addons/portal_project_issue/portal_project_issue_view.xml b/addons/portal_project_issue/portal_project_issue_view.xml index 76ffbe3d1fd..9054445c8ad 100644 --- a/addons/portal_project_issue/portal_project_issue_view.xml +++ b/addons/portal_project_issue/portal_project_issue_view.xml @@ -20,42 +20,39 @@

-
- -
-
+
From e9e80c80e8b0512a774cd12de991a5f00d2aef78 Mon Sep 17 00:00:00 2001 From: "vta vta@openerp.com" <> Date: Wed, 21 Nov 2012 08:47:58 +0100 Subject: [PATCH 18/31] [FIX] Hide message_followers widget in claims. bzr revid: vta@openerp.com-20121121074758-z0f7gy8jdlqqnv8f --- addons/crm_claim/crm_claim_view.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/crm_claim/crm_claim_view.xml b/addons/crm_claim/crm_claim_view.xml index f56ee73f908..8b6217b97e1 100644 --- a/addons/crm_claim/crm_claim_view.xml +++ b/addons/crm_claim/crm_claim_view.xml @@ -167,7 +167,7 @@
- +
From 6dd29bcdff247fdb219861b40e575fae392878da Mon Sep 17 00:00:00 2001 From: "vta vta@openerp.com" <> Date: Wed, 21 Nov 2012 10:05:21 +0100 Subject: [PATCH 19/31] [FIX] Fixed names and view modes. bzr revid: vta@openerp.com-20121121090521-z2a0e4mqo5k5ttl4 --- addons/portal_claim/security/portal_security.xml | 2 +- addons/portal_sale/portal_sale_view.xml | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/addons/portal_claim/security/portal_security.xml b/addons/portal_claim/security/portal_security.xml index 7227e6511ac..6a04ca9747e 100644 --- a/addons/portal_claim/security/portal_security.xml +++ b/addons/portal_claim/security/portal_security.xml @@ -2,7 +2,7 @@ - + Portal Personal Claims [('message_follower_ids','in', [user.partner_id.id])] diff --git a/addons/portal_sale/portal_sale_view.xml b/addons/portal_sale/portal_sale_view.xml index 4c93d03f43e..e989282a1a8 100644 --- a/addons/portal_sale/portal_sale_view.xml +++ b/addons/portal_sale/portal_sale_view.xml @@ -10,7 +10,7 @@ Quotations ir.actions.act_window sale.order - tree,form,calendar,graph + tree,form {"search_default_draft":1} We haven't sent you any quotation. @@ -20,7 +20,7 @@ Sales Orders ir.actions.act_window sale.order - tree,form,calendar,graph + tree,form {"search_default_sales":1} We haven't sent you any sale order. @@ -29,16 +29,17 @@ Customer Invoices account.invoice - tree,form,calendar,graph + tree,form [('type','=','out_invoice')] {'type':'out_invoice', 'journal_type': 'sale'} We haven't sent you any invoice. - + Customer Refunds account.invoice + tree,form [('type','=','out_refund')] {'type':'out_refund'} @@ -52,7 +53,7 @@ + action="action_invoice_tree2" sequence="40"/> From 132f052e178f53d2e7cffefebf7a3f8ec7196208 Mon Sep 17 00:00:00 2001 From: "vta vta@openerp.com" <> Date: Wed, 21 Nov 2012 13:33:46 +0100 Subject: [PATCH 20/31] [FIX] Security rules, and conflicts after merging trunk. bzr revid: vta@openerp.com-20121121123346-5wi4ko1e5ny57ki0 --- addons/mail/static/src/xml/mail_followers.xml | 34 +++++++++---------- addons/portal/portal_view.xml | 4 --- .../portal_claim/security/portal_security.xml | 2 +- .../security/portal_security.xml | 2 +- addons/portal_sale/portal_sale_view.xml | 6 ++-- 5 files changed, 21 insertions(+), 27 deletions(-) diff --git a/addons/mail/static/src/xml/mail_followers.xml b/addons/mail/static/src/xml/mail_followers.xml index 5fde087a660..11698c1fb62 100644 --- a/addons/mail/static/src/xml/mail_followers.xml +++ b/addons/mail/static/src/xml/mail_followers.xml @@ -5,25 +5,23 @@ followers main template Template used to display the followers, the actions and the subtypes in a record. --> -
- -
- -
-
- -
-
-
-

Followers

- Invite others -
-
+
+
+ +
+
+ +
+
+

Followers

+ Invite others +
+
@@ -21,11 +38,29 @@ public - + Jobs - mail.group + mail.wall + mail.message - form + + +

+ Youd don't have unread job offers. +

+
diff --git a/addons/portal/portal_view.xml b/addons/portal/portal_view.xml index 1f291bb920e..313eb1e35af 100644 --- a/addons/portal/portal_view.xml +++ b/addons/portal/portal_view.xml @@ -9,7 +9,7 @@ sequence="20"/> - + @@ -17,9 +17,9 @@ Create menu items that we'll leave empty for now - they'll be filled up by other portal modules. --> - - - + + + @@ -47,7 +47,37 @@ - + Inbox + mail.wall + mail.message + { + 'default_model': 'res.users', + 'default_res_id': uid, + } + + +

+ Good Job! Your inbox is empty. +

+ Your inbox contains private messages or emails sent to you + as well as information related to documents or people you + follow. +

+
+
+ + diff --git a/addons/portal_claim/portal_claim_view.xml b/addons/portal_claim/portal_claim_view.xml index c7be419b889..cd0e4941286 100644 --- a/addons/portal_claim/portal_claim_view.xml +++ b/addons/portal_claim/portal_claim_view.xml @@ -1,79 +1,13 @@ - - - - CRM Claim Kanban - crm.claim - 20 - - - - - - - - - - - -
-
-
-

- - -
- -
-
-
-

-
-
-
-
- Creation: - - - - - - - - - - - - - - - - - - - - - -
-
-
-
-
- - - - - + Claims crm.claim form - tree,form,kanban,calendar - + tree,form,calendar + {"search_default_user_id":'', "stage_type":'claim', "portal":'True'} current diff --git a/addons/portal_crm/contact.py b/addons/portal_crm/contact.py index c4d4e1d7f8c..132f4db34d5 100644 --- a/addons/portal_crm/contact.py +++ b/addons/portal_crm/contact.py @@ -95,7 +95,6 @@ class crm_contact_us(osv.TransientModel): it is quite complicated to set proper rights for this object. Therefore, user SUPERUSER_ID will perform the creation. """ - print values values['contact_name'] = values['partner_name'] crm_lead.create(cr, SUPERUSER_ID, dict(values,user_id=False), context) diff --git a/addons/portal_crm/contact_view.xml b/addons/portal_crm/contact_view.xml index 0241259a82a..8fa839dda8a 100644 --- a/addons/portal_crm/contact_view.xml +++ b/addons/portal_crm/contact_view.xml @@ -6,57 +6,60 @@ Contact form portal_crm.crm_contact_us -
- -

Contact us

- - - - - - - - -
@@ -68,7 +71,7 @@ 99 -
+
diff --git a/addons/portal_crm/static/src/css/portal_crm.css b/addons/portal_crm/static/src/css/portal_crm.css index 0589eb92e71..e322f1cb9da 100644 --- a/addons/portal_crm/static/src/css/portal_crm.css +++ b/addons/portal_crm/static/src/css/portal_crm.css @@ -1,8 +1,6 @@ /* Root container */ .openerp .oe_portal_crm_contact { - width: 800px; - margin: auto; - padding: 8px 0 0 0; + min-width: 960px; } /* Contact form section */ diff --git a/addons/portal_hr_employees/hr_employee.py b/addons/portal_hr_employees/hr_employee.py index bebcc450b01..94acea8c4aa 100644 --- a/addons/portal_hr_employees/hr_employee.py +++ b/addons/portal_hr_employees/hr_employee.py @@ -21,9 +21,9 @@ from osv import osv, fields -class crm_team(osv.TransientModel): +class crm_contact_us(osv.TransientModel): """ Add employees list to the portal's contact page """ - _name = 'crm.team' + _inherit = 'portal_crm.crm_contact_us' _description = 'Contact form for the portal' _columns = { 'employee_ids' : fields.many2many('hr.employee', string='Employees', readonly=True), @@ -51,6 +51,7 @@ class hr_employee(osv.osv): _columns = { 'visibility': fields.selection([('public', 'Public'),('private', 'Private')], string='Visibility', help='Employee\'s visibility in the portal\'s contact page'), + 'public_info': fields.text(), } _defaults = { 'visibility': 'private', diff --git a/addons/portal_hr_employees/hr_employee_view.xml b/addons/portal_hr_employees/hr_employee_view.xml index f9e69dba71b..0584b6b8a4b 100644 --- a/addons/portal_hr_employees/hr_employee_view.xml +++ b/addons/portal_hr_employees/hr_employee_view.xml @@ -8,8 +8,9 @@ hr.employee - + + @@ -17,7 +18,7 @@ portal_hr_employees_view - crm.team + portal_crm.crm_contact_us
@@ -31,13 +32,14 @@

- () + ()

  • Tel:
  • Mobile:
  • +
@@ -51,15 +53,24 @@ Meet the team - crm.team + portal_crm.crm_contact_us form + tree inline - Here you can see our employees' public profile, if any. - + + crm_contact_us + portal_crm.crm_contact_us + + + + Meet the team + + + +
diff --git a/addons/portal_hr_employees/static/src/css/portal_hr_employees.css b/addons/portal_hr_employees/static/src/css/portal_hr_employees.css index 5fa658de8c1..da511eaf2c0 100644 --- a/addons/portal_hr_employees/static/src/css/portal_hr_employees.css +++ b/addons/portal_hr_employees/static/src/css/portal_hr_employees.css @@ -3,14 +3,13 @@ width: 100%; } .openerp .oe_portal_crm_contact .oe_portal_crm_team { - padding: 8px 0 0 0; + margin-top: 30px; + padding-top: 30px; } .openerp .oe_portal_crm_contact .oe_portal_crm_team .oe_employee_details { width: 170px; } .openerp .oe_portal_crm_contact .oe_portal_crm_team .oe_employee_image { - width: 65px; - height: 65px; } .openerp .oe_employee_vignette ul, .openerp .oe_employee_vignette li { diff --git a/addons/portal_project/portal_project_view.xml b/addons/portal_project/portal_project_view.xml index cfdaa4a602d..b7f3568545b 100644 --- a/addons/portal_project/portal_project_view.xml +++ b/addons/portal_project/portal_project_view.xml @@ -2,8 +2,24 @@ + + Projects + project.project + form + [] + kanban,gantt + + + {} + +

+ Click to start a new project. +

+
+
+ + action="open_view_project" sequence="10"/>
diff --git a/addons/portal_project_issue/portal_project_issue_view.xml b/addons/portal_project_issue/portal_project_issue_view.xml index 52fb2866e59..3de7f1f903e 100644 --- a/addons/portal_project_issue/portal_project_issue_view.xml +++ b/addons/portal_project_issue/portal_project_issue_view.xml @@ -76,14 +76,11 @@

Click to create an issue.

- You can track your claims from this menu and the action we + You can track your issues from this menu and the action we will take.

- -
diff --git a/addons/portal_project_issue/security/ir.model.access.csv b/addons/portal_project_issue/security/ir.model.access.csv index 1669c217f54..80a38366b51 100644 --- a/addons/portal_project_issue/security/ir.model.access.csv +++ b/addons/portal_project_issue/security/ir.model.access.csv @@ -1,3 +1,3 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink -access_issues,project_issue,project_issue.model_project_issue,portal.group_portal,1,0,1,0 +access_issues,project_issue,project_issue.model_project_issue,portal.group_portal,1,0,0,0 access_case_section,crm_case_section,crm.model_crm_case_section,portal.group_portal,1,0,0,0 diff --git a/addons/project/project_view.xml b/addons/project/project_view.xml index 49a285ec8ae..a3cf6c4e4c0 100644 --- a/addons/project/project_view.xml +++ b/addons/project/project_view.xml @@ -227,7 +227,7 @@
-
+
í