[FIX] remove 'portal' visibility stuff

also put the 'company's news' view in 'inline' mode

bzr revid: abo@openerp.com-20120709091943-kpgfc4vw51pbzsd8
This commit is contained in:
Antonin Bourguignon 2012-07-09 11:19:43 +02:00
parent 38493e42be
commit 40531c4f54
4 changed files with 2 additions and 14 deletions

View File

@ -11,6 +11,7 @@
<field name="res_model">mail.group</field>
<field name="res_id" ref="company_news_feed"/>
<field name="view_mode">form</field>
<field name="target">inline</field>
</record>
<!-- default portal menu structure -->

View File

@ -33,7 +33,6 @@ portal_crm (which creates the contact page) are installed.
'depends': ['hr','portal_crm'],
'data': [
'portal_hr_employee_view.xml',
'security/portal_crm_security.xml',
'security/ir.model.access.csv',
],
'installable': True,
@ -42,9 +41,6 @@ portal_crm (which creates the contact page) are installed.
'css': [
'static/src/css/portal_hr_employees.css',
],
'js': [
'static/src/js/portal_hr_employees.js',
],
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -46,11 +46,10 @@ class hr_employee(osv.osv):
"""
``visibility``: defines if the employee appears on the portal's contact page
- 'public' means the employee will appear for everyone (anonymous)
- 'portal' means the employee will appear for portal users only
- 'private' means the employee won't appear
"""
_columns = {
'visibility': fields.selection([('public', 'Public'),('portal', 'Portal'),('private', 'Private')],
'visibility': fields.selection([('public', 'Public'),('private', 'Private')],
string='Visibility', help='Employee\'s visibility in the portal\'s contact page'),
}
_defaults = {

View File

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="1">
<!-- Employees with a visibility == 'portal' can't be seen by anonymous -->
</data>
</openerp>