[IMP]:color of notes , and notes restrict to group hr/employee
authorajay javiya (OpenERP) <aja@tinyerp.com>
Thu, 19 Sep 2013 13:38:29 +0000 (19:08 +0530)
committerajay javiya (OpenERP) <aja@tinyerp.com>
Thu, 19 Sep 2013 13:38:29 +0000 (19:08 +0530)
bzr revid: aja@tinyerp.com-20130919133829-bthuzij8g78v72cv

addons/mail/security/mail_security.xml
addons/mail/static/src/css/mail.css

index 5384e2a..6268924 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <openerp>
-    <data noupdate="1">
+    <data>
 
         <!-- RULES -->
         <record id="mail_group_public_and_joined" model="ir.rule">
             <field name="perm_unlink" eval="False"/>
         </record>
 
+        <record id="mail_message_internal_note_employee" model="ir.rule">
+            <field name="name">mail.message</field>
+            <field name="model_id" ref="model_mail_message"/>
+            <field name="groups" eval="[(4, ref('base.group_user'))]"/>
+            <field name="domain_force">[('type', '=', 'comment')]</field>
+            <field name="perm_create" eval="False"/>
+            <field name="perm_unlink" eval="False"/>
+        </record>
+
         <!--
         This rule can not be uncommented, because we have a more wide method in mail.message. When we implement a many2one_variable field, we will be able to uncomment this.
         <record id="mail_message_read_partner_or_author" model="ir.rule">
index e4b7f92..eb11a96 100644 (file)
@@ -68,7 +68,7 @@
     border: solid 1px rgba(0,0,0,0.03);
 }
 .openerp .oe_mail .oe_msg.oe_msg_nobody{
-    background: #F8F8F8;
+    background: #D3D3D3;
 }
 .openerp .oe_mail .oe_msg.oe_msg_notification{
     background: #F8F8F8;