Nimesh Contractor(Open ERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-open-chatter-part-4-atp-add_more_items-nco
 into lp:~openerp-dev/openobject-addons/trunk-open-chatter-part-4-atp.

Requested reviews:
  Atul Patel(OpenERP) (atp-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-open-chatter-part-4-atp-add_more_items-nco/+merge/113194

Hello sir,

          When cursor focus on last text box then add more item is visible.
          When click on add more item focus goes to new text box.
          I have add the attachment link and image.
          adjust the alignment and position of the check-list.

Thanks,
 NCO.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-open-chatter-part-4-atp-add_more_items-nco/+merge/113194
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-open-chatter-part-4-atp.
=== modified file 'mail/static/src/css/mail.css'
--- mail/static/src/css/mail.css	2012-07-02 14:31:53 +0000
+++ mail/static/src/css/mail.css	2012-07-03 10:40:27 +0000
@@ -149,6 +149,24 @@
     padding: 5px;
 }
 
+.openerp .oe_wall_actions{
+    margin-top:10px;
+    margin-left: 50px;
+    height: 25px;
+}
+.openerp .oe_thread_actions{
+    padding:5px;
+    height: 20px;
+}
+.openerp .oe_attach{
+    cursor:pointer;
+    padding: 5px;
+    margin-top: 2px;
+}
+.openerp .oe_attach_icon{
+    height: 15px;
+    width: 20px;
+}
 /* ------------------------------ */
 /* ThreadDisplay                  */
 /* ------------------------------ */

=== added file 'mail/static/src/img/attach.png'
Binary files mail/static/src/img/attach.png	1970-01-01 00:00:00 +0000 and mail/static/src/img/attach.png	2012-07-03 10:40:27 +0000 differ
=== modified file 'mail/static/src/xml/mail.xml'
--- mail/static/src/xml/mail.xml	2012-07-03 01:47:57 +0000
+++ mail/static/src/xml/mail.xml	2012-07-03 10:40:27 +0000
@@ -23,7 +23,13 @@
             <div class="oe_mail_wall_action">
                 <img class="oe_mail_msg_image oe_left" alt="User img"/>
                 <textarea class="oe_mail oe_mail_wall_action_textarea" placeholder="What are you working on?"/>
-                <button class="oe_right oe_mail_wall_button_comment" type="button">Post comment</button>
+                <div class="oe_wall_actions">
+                    <button class="oe_left oe_mail_wall_button_comment" type="button">Post comment</button>
+                    <a class="oe_attach oe_right" title="Add Attachments">
+                        <img t-att-src='_s + "/mail/static/src/img/attach.png"' class="oe_attach_icon"/>
+                        <span>Attachment</span>
+                    </a>
+                </div>
             </div>
             <div class="oe_clear"></div>
             <ul class="oe_mail_wall_threads">
@@ -58,7 +64,13 @@
             <img class="oe_mail_msg_image oe_left" alt="User img"/>
             <div class="oe_mail_msg_content">
                 <textarea class="oe_mail oe_mail_action_textarea" placeholder="Add your comment here..." onfocus="this.value = '';"/>
-                <button class="oe_right oe_mail_wall_button_comment" type="button">Post comment</button>
+                <div class="oe_thread_actions">
+                    <button class="oe_left oe_mail_wall_button_comment" type="button">Post comment</button>
+                    <a class="oe_attach oe_right" >
+                        <img t-att-src='_s + "/mail/static/src/img/attach.png"' class="oe_attach_icon"/>
+                        <span title="Add Attachments">Attachment</span>
+                    </a>
+                </div>
             </div>
         </div>
         <div class="oe_mail_thread_display"></div>
@@ -95,7 +107,7 @@
                         <t t-raw="record.body"/>
                     </div>
                     <ul class="oe_mail_msg_footer">
-                      <li><span t-att-title="record.date"><t t-raw="record.timerelative"/></span></li>
+                      <li class="oe_comment_time_info"><span t-att-title="record.date"><t t-raw="record.timerelative"/></span></li>
                       <li t-if="display['show_reply']"><a href="#" class="oe_mail_msg_reply">Reply</a></li>
                       <!-- uncomment when merging vote
                       <li><a href="#">Like</a></li>

=== modified file 'mail_extra/static/src/css/mail_extra.css'
--- mail_extra/static/src/css/mail_extra.css	2012-06-29 05:52:06 +0000
+++ mail_extra/static/src/css/mail_extra.css	2012-07-03 10:40:27 +0000
@@ -2,32 +2,37 @@
     margin-top:10px;
     padding-left: 50px;
 }
-.openerp .oe_button_position{
-	padding-left: 5px;
-}
 .openerp .oe_checklist_item{
-	padding : 9px;
-	cursor:pointer;
+    padding : 9px;
+    cursor:pointer;
+    display: none;
 }
 .openerp .oe_checklist_wall{
-	cursor:pointer;
+    cursor:pointer;
+    padding: 5px;
+    margin-left:100px;
+    margin-top: 2px;
+}
+.openerp .oe_checklist_thread{
+    cursor:pointer;
+    padding: 5px;
+    padding-left:20px;
+    margin-top: 2px;
 }
 
 .openerp .oe_checklist{
-	padding: 9px;
-	cursor:pointer;
+    padding: 5px;
+    cursor:pointer;
 }
 .openerp div.oe_mail_thread_subthread .oe_checklist_icon {
     width: 18px;
     height: 18px;
 }
 .openerp .oe_checklist_icon{
-	height: 15px;
-	width: 20px;
-}
-.openerp .oe_checklist_thread{
-	cursor:pointer;
-}
+    height: 15px;
+    width: 20px;
+}
+
 .openerp div.oe_mail_thread_subthread a.oe_checklist_item
 {
     padding : 9px;
@@ -43,9 +48,9 @@
 }
 
 .openerp .oe_progressbar {
-	background-color:white;
-	width:220px;
-	height:4px;
+    background-color:white;
+    width:220px;
+    height:4px;
 }
 
 button.oe_mail_msg_vote_like{

=== modified file 'mail_extra/static/src/js/mail_extra.js'
--- mail_extra/static/src/js/mail_extra.js	2012-06-22 11:55:12 +0000
+++ mail_extra/static/src/js/mail_extra.js	2012-07-03 10:40:27 +0000
@@ -3,104 +3,111 @@
     var _t = session.web._t;
     
     session.mail_extra.CheckListItem = session.web.Widget.extend({
-    	render_new_checklist_item: function(element){
-    		var parent_element = $(element).find('.oe_checklist_item');
-     		var new_item = $(QWeb.render("AddChecklist", {}));
-     		$(parent_element).before(new_item);
-    	},
+        render_new_checklist_item: function(element){
+            var parent_element = $(element).find('.oe_checklist_item');
+            var new_item = $(QWeb.render("AddChecklist", {}));
+            $(parent_element).before(new_item);
+            $(element).find('input[type=text]:visible:last').focus();
+        },
         render_default_checklist_item: function(element){
-        	for(i=0; i<3; i++){
-    			this.render_new_checklist_item(element);
-    		}
+            for(i=0; i<3; i++){
+                this.render_new_checklist_item(element);
+            }
         },
         
         focus_on_checklist: function(mail_element){
-        	// set focus on first textbox
-    		$(mail_element).find('input[type=text]:visible:first').focus();
-    		// On enter focus on next textbox.
-    		$(mail_element).find('input[type=text]').keyup(function (event) {
-	    		var charCode = (event.which) ? event.which : window.event.keyCode;
-			    if (charCode == 13)
-			    {
-			      var nextIndex = $('input[type=text]').index(this) + 1;
-			      $(":input[type=text]:eq(" + nextIndex + ")").focus();
-	    		}
-	    	});
+            // set focus on first textbox
+            $(mail_element).find('input[type=text]:visible:first').focus();
+            // On enter focus on next textbox.
+            $(mail_element).find('input[type=text]').keyup(function (event) {
+               var charCode = (event.which) ? event.which : window.event.keyCode;
+               if (charCode == 13)
+                {
+                  var nextIndex = $('input[type=text]').index(this) + 1;
+                  $(":input[type=text]:eq(" + nextIndex + ")").focus();
+               }
+           });
         },
         
         add_checklist_items_list: function(checklist_items){
-        	check_items = []
-        	text_items = $(checklist_items).find('input[type=text]');
-     		_(text_items).each(function(item){
-     			item_value = $(item).val();
-     			if (item_value != ""){
-     				check_items.push(item_value);
-     			}
-     			$(item).val('');
-     		});        	
-        	return check_items
+            check_items = []
+            text_items = $(checklist_items).find('input[type=text]');
+            _(text_items).each(function(item){
+                item_value = $(item).val();
+                if (item_value != ""){
+                    check_items.push(item_value);
+                }
+                $(item).val('');
+            });        	
+            return check_items
         },
         remove_check_list: function(checklist_items){
-     		items_to_remove = $(checklist_items).find('input');
-     		_(items_to_remove).each(function(item){
-     			$(item).remove();
-     		})
-        	
+            items_to_remove = $(checklist_items).find('input');
+            _(items_to_remove).each(function(item){
+                $(item).remove();
+            })
         },
         
     });
     session.mail.WallView.include({
-		add_event_handlers: function () {
-    		res = this._super();
-    		var self = this;
-    		var main_wall = this.$element.find('.oe_mail_wall_action');
-    		//Call CheckListItem widgets
-    		var chklst_item= new session.mail_extra.CheckListItem();
-    		chklst_item.render_default_checklist_item(main_wall)
-    		// Set focus on checklist item.
-    		chklst_item.focus_on_checklist(main_wall);
-    		$(main_wall).find(".oe_checklist_item").click(function(){
-        		// to do add more items.
-    			chklst_item.render_new_checklist_item(main_wall);
-        	});
-        	$(main_wall).find(".oe_checklist_wall").click(function(){
-        		//toggle the checklist items
-        		$(main_wall).find(".oe_wall_checklist_item").toggle();
-        	});
+        add_event_handlers: function () {
+            res = this._super();
+            var self = this;
+            var main_wall = this.$element.find('.oe_mail_wall_action');
+            //Call CheckListItem widgets
+            var chklst_item= new session.mail_extra.CheckListItem();
+            chklst_item.render_default_checklist_item(main_wall)
+            // Set focus on checklist item.
+            chklst_item.focus_on_checklist(main_wall);
+            $(main_wall).find(".oe_checklist_item").click(function(){
+                // to do add more items.
+                chklst_item.render_new_checklist_item(main_wall);
+            });
+            $(main_wall).find(".oe_checklist_wall").click(function(){
+                //toggle the checklist items
+               $(main_wall).find(".oe_wall_checklist_item").toggle();
+            });
+            $(main_wall).find("input[type=text]:last").focus(function(){
+               $('.oe_checklist_item').css({'display':'block'})
+           });
+
         },
         do_comment: function () {
-        	self = this;
-        	check_items = false;
-        	var comment_node = this.$element.find('textarea.oe_mail_wall_action_textarea');
+            self = this;
+            check_items = false;
+            var comment_node = this.$element.find('textarea.oe_mail_wall_action_textarea');
             var body_text = comment_node.val();
             var chklst_item= new session.mail_extra.CheckListItem();
             comment_node.val('');
-        	var wall_checklist_items = this.$element.find('.oe_mail_wall_action');
-        	check_items = chklst_item.add_checklist_items_list(wall_checklist_items);
-     		var call_done = this.ds_users.call('message_append_note_checklist', [[this.session.uid], 'Tweet', body_text, false, 'comment', 'html', check_items]).then(this.proxy('init_and_fetch_comments'));
-			// after posting comment this will remove the items added by the Add more item link 
-			// and render the defalt 3 items in the wall
-     		chklst_item.remove_check_list(wall_checklist_items);
-     		chklst_item.render_default_checklist_item(wall_checklist_items);
+            var wall_checklist_items = this.$element.find('.oe_mail_wall_action');
+            check_items = chklst_item.add_checklist_items_list(wall_checklist_items);
+            var call_done = this.ds_users.call('message_append_note_checklist', [[this.session.uid], 'Tweet', body_text, false, 'comment', 'html', check_items]).then(this.proxy('init_and_fetch_comments'));
+            // after posting comment this will remove the items added by the Add more item link 
+            // and render the defalt 3 items in the wall
+            chklst_item.remove_check_list(wall_checklist_items);
+            chklst_item.render_default_checklist_item(wall_checklist_items);
         },
     });
     
     session.mail.Thread.include({
-    	
+
         add_events: function() {
-        	res = this._super();
-    		var self = this;
-    		var main_thread = this.$element.find('.oe_mail_thread_action');
-    		var chklst_item = new session.mail_extra.CheckListItem();
-    		chklst_item.render_default_checklist_item(main_thread);
-    		$(main_thread).find(".oe_checklist_item").click(function(){
-        		// to do add more items.
-    			chklst_item.render_new_checklist_item(main_thread);
-        	});
-        	$(main_thread).find(".oe_checklist_thread").click(function(){
-        		//toggle the check items
-        		$(main_thread).find(".oe_thread_checklist_item").toggle();
-        	});
+            res = this._super();
+            var self = this;
+            var main_thread = this.$element.find('.oe_mail_thread_action');
+            var chklst_item = new session.mail_extra.CheckListItem();
+            chklst_item.render_default_checklist_item(main_thread);
+            $(main_thread).find(".oe_checklist_item").click(function(){
+                // to do add more items.
+                chklst_item.render_new_checklist_item(main_thread);
+            });
+            $(main_thread).find(".oe_checklist_thread").click(function(){
+                //toggle the check items
+                $(main_thread).find(".oe_thread_checklist_item").toggle();
+            });
+            $(main_thread).find("input[type=text]:last").focus(function(){
+                $('.oe_checklist_item').css({'display':'block'})
+            });
         },
         add_vote_event: function(element){
             vote_img = element.find('.oe_mail_msg_vote_like');
@@ -113,16 +120,16 @@
         },
         
         render_vote: function(message_id){
-        	var self = this;
-        	this.mail_message = new session.web.DataSet(this, 'mail.message');
- 	        this.mail_message.call('get_votes',[parseInt(message_id)]).then(function(result){
- 	        	if (result){
- 	        		parent_element = self.find_parent_element(".oe_mail_msg_vote", message_id);
- 	        		vote_element = QWeb.render('VoteDisplay', result);
- 	        		$(parent_element).html(vote_element);
- 	        		self.add_vote_event($(parent_element));
- 	        	}
- 	        });
+            var self = this;
+            this.mail_message = new session.web.DataSet(this, 'mail.message');
+            this.mail_message.call('get_votes',[parseInt(message_id)]).then(function(result){
+                if (result){
+                    parent_element = self.find_parent_element(".oe_mail_msg_vote", message_id);
+                    vote_element = QWeb.render('VoteDisplay', result);
+                    $(parent_element).html(vote_element);
+                    self.add_vote_event($(parent_element));
+                }
+            });
         },
         
         subscribe_vote: function(message_id){
@@ -138,12 +145,12 @@
             var self = this;
             var main_thread = this.$element.find('.oe_mail_thread_action');
             var chklst_item = new session.mail_extra.CheckListItem();
-    		// set focus on  checklist item 
+            // set focus on  checklist item 
             chklst_item.focus_on_checklist(main_thread);
-        	_.each(records, function(record){
-        		self.render_vote(record.id);
-        		self.render_checklist_items(record.id);
-        	});
+            _.each(records, function(record){
+                self.render_vote(record.id);
+                self.render_checklist_items(record.id);
+            });
         },
         
         do_comment: function () {
@@ -155,77 +162,77 @@
 
             var chklst_item= new session.mail_extra.CheckListItem();
             check_items = chklst_item.add_checklist_items_list(thread_checklist_items);
-     		// after posting comment this will remove the items added by the Add more item link 
-			// and render the defalt 3 items in the wall
-        	chklst_item.remove_check_list(thread_checklist_items);
-        	chklst_item.render_default_checklist_item(thread_checklist_items);
+            // after posting comment this will remove the items added by the Add more item link 
+            // and render the defalt 3 items in the wall
+            chklst_item.remove_check_list(thread_checklist_items);
+            chklst_item.render_default_checklist_item(thread_checklist_items);
             return this.ds.call('message_append_note_checklist', [[this.params.res_id], 'Reply', body_text, this.params.parent_id, 'comment', 'html', check_items]).then(
                 this.proxy('init_comments'));
         },
         
         do_display_checklist: function (message_id) {
-         	var self=this;
-         	parent_element = self.find_parent_element(".oe_mail_msg_checklist", message_id);
-         	var new_item = $(QWeb.render("AddChecklist", {}));
-         	$(parent_element).after(new_item);
+            var self=this;
+            parent_element = self.find_parent_element(".oe_mail_msg_checklist", message_id);
+            var new_item = $(QWeb.render("AddChecklist", {}));
+            $(parent_element).after(new_item);
         },
          
         find_parent_element: function(name, message_id){
-        	 parent_element = false;
-          	_.each($(name), function(element){
-     			if ($(element).attr("data-id") == message_id){
-     				parent_element = element;
-     			}
-     		});
-          	return parent_element;
+            parent_element = false;
+            _.each($(name), function(element){
+                if ($(element).attr("data-id") == message_id){
+                    parent_element = element;
+                }
+            });
+            return parent_element;
          },
          
          calculate_checklist_progress: function(items){
-        	if (items.length == 0) return 0;
-        	total_checklist_items = items.length;
-        	done_checklist_items = 0;
-        	checklist_progress = 0;
-        	_.each(items, function(record){
-        		if (record.done == true)
-        			done_checklist_items+=1;
-        	});
-        	checklist_progress = Math.round((done_checklist_items *100)/total_checklist_items);
-        	return checklist_progress;
+            if (items.length == 0) return 0;
+            total_checklist_items = items.length;
+            done_checklist_items = 0;
+            checklist_progress = 0;
+            _.each(items, function(record){
+                if (record.done == true)
+                    done_checklist_items+=1;
+            });
+            checklist_progress = Math.round((done_checklist_items *100)/total_checklist_items);
+            return checklist_progress;
          },
          
          render_checklist_items: function(message_id){
-         	var self = this;
- 	        this.mail_message = new session.web.DataSet(this, 'mail.message');
- 	        this.mail_message.call('get_checklist_items',[parseInt(message_id)]).then(function(result){
- 	        	if (result.length){
- 	        		checklist_progress = self.calculate_checklist_progress(result);
- 	        		parent_element = self.find_parent_element(".oe_mail_msg_checklist", message_id);
- 	        		checklist_element = QWeb.render('ChecklistItem', {'msg_id': message_id, 'checklist_progress':checklist_progress, 'checklist_items': result});
- 	        		$(parent_element).html(checklist_element);
- 	        		$(parent_element).find(".oe_mail_msg_checklist_item").click(function(){
- 	        			self.do_strike_checkbox_item(message_id, $(this));
- 	        		});
- 	        	}
- 	        });
+            var self = this;
+            this.mail_message = new session.web.DataSet(this, 'mail.message');
+            this.mail_message.call('get_checklist_items',[parseInt(message_id)]).then(function(result){
+                if (result.length){
+                   checklist_progress = self.calculate_checklist_progress(result);
+                   parent_element = self.find_parent_element(".oe_mail_msg_checklist", message_id);
+                    checklist_element = QWeb.render('ChecklistItem', {'msg_id': message_id, 'checklist_progress':checklist_progress, 'checklist_items': result});
+                    $(parent_element).html(checklist_element);
+                    $(parent_element).find(".oe_mail_msg_checklist_item").click(function(){
+                      self.do_strike_checkbox_item(message_id, $(this));
+                    });
+                }
+            });
          },
          
- 		 // Strike and unstrike the checklist item.
+         // Strike and unstrike the checklist item.
          do_strike_checkbox_item: function(message_id, item){
-        	check_item_id = item.attr("data-id");
-        	parent = item.parent();
-        	checked  = item.attr("checked");
-        	self = this;
-         	mail_checklist_item = new session.web.DataSet(this, 'mail.checklist.item');
-			mail_checklist_item.call('action_done', [parseInt(check_item_id), checked]).then(function (result) {
-				checklist_progress = self.calculate_checklist_progress(result);
-				progresselement = $(self.find_parent_element(".oe_mail_msg_checklist_progress", message_id));
-				progresselement.find('.oe_mail_msg_checklist_progress_value').html(checklist_progress + "%");
-				progresselement.find('.oe_progressbar').attr("value", checklist_progress);
-				if (checked == "checked"){
-					parent.addClass('oe_strike_checkbox');
-				}else
-					parent.removeClass('oe_strike_checkbox');
-			});
+            check_item_id = item.attr("data-id");
+            parent = item.parent();
+            checked  = item.attr("checked");
+            self = this;
+            mail_checklist_item = new session.web.DataSet(this, 'mail.checklist.item');
+            mail_checklist_item.call('action_done', [parseInt(check_item_id), checked]).then(function (result) {
+              checklist_progress = self.calculate_checklist_progress(result);
+                progresselement = $(self.find_parent_element(".oe_mail_msg_checklist_progress", message_id));
+                progresselement.find('.oe_mail_msg_checklist_progress_value').html(checklist_progress + "%");
+                progresselement.find('.oe_progressbar').attr("value", checklist_progress);
+                if (checked == "checked"){
+                    parent.addClass('oe_strike_checkbox');
+                }else
+                    parent.removeClass('oe_strike_checkbox');
+            });
          },
     });
 }

=== modified file 'mail_extra/static/src/xml/mail_extra.xml'
--- mail_extra/static/src/xml/mail_extra.xml	2012-06-29 05:52:06 +0000
+++ mail_extra/static/src/xml/mail_extra.xml	2012-07-03 10:40:27 +0000
@@ -5,15 +5,17 @@
     <!-- FOR ADD CHECKLIST ITEMS IN FEEDS(WALL) -->
     <t t-extend="mail.Wall">
         <t t-jquery="textarea.oe_mail_wall_action_textarea" t-operation="after">
-        	<t t-name = "AddChecklist_wall">
-        		<div class="oe_wall_checklist_item">
-					<a class="oe_checklist_item" title="Add one more item.">Add More Items</a>
-				</div>
-				<a class="oe_checklist_wall oe_right" title="Hide and show checklist Items">
-					<img t-att-src='_s + "/mail_extra/static/src/img/checklist.png"' class="oe_checklist_icon"/>
-					<span>Checklist</span>
-				</a>
-			</t>
+            <t t-name = "AddChecklist_wall">
+                <div class="oe_wall_checklist_item">
+                    <a class="oe_checklist_item" title="Add one more item.">Add More Items</a>
+                </div>
+            </t>
+        </t>
+        <t t-jquery="a.oe_attach" t-operation="append">
+            <a class="oe_checklist_wall oe_right">
+                <img t-att-src='_s + "/mail_extra/static/src/img/checklist.png"' class="oe_checklist_icon"/>
+                <span title="Hide and show checklist Items">Checklist</span>
+            </a>
         </t>
     </t>
     
@@ -21,27 +23,29 @@
     
     <t t-extend="mail.Thread">
         <t t-jquery=".oe_mail_action_textarea" t-operation="after">
-        	<t t-name = "AddChecklist_thread">
-        		<div class="oe_thread_checklist_item">
-					<a class="oe_checklist_item" title="Add one more item.">Add More Items</a>
-				</div>
-				<a class="oe_checklist_thread oe_right" title="Hide and show checklist Items">
-					<img t-att-src='_s + "/mail_extra/static/src/img/checklist.png"' class="oe_checklist_icon"/>
-					<span>Checklist</span>
-				</a>
-			</t>
+            <t t-name = "AddChecklist_thread">
+                <div class="oe_thread_checklist_item">
+                    <a class="oe_checklist_item" title="Add one more item.">Add More Items</a>
+                </div>
+            </t>
+        </t>
+        <t t-jquery="a.oe_attach" t-operation="append">
+            <a class="oe_checklist_thread oe_right">
+                <img t-att-src='_s + "/mail_extra/static/src/img/checklist.png"' class="oe_checklist_icon"/>
+                <span title="Hide and show checklist Items">Checklist</span>
+            </a>
         </t>
     </t>
     
     <t t-extend="mail.Thread.message">
-    	<t t-jquery=".oe_mail_msg_footer" t-operation="append">
-        	<t t-if="record.type == 'comment'">
-	            <span t-att-data-id="record.id" class="oe_mail_msg_vote"></span>
+        <t t-jquery=".oe_comment_time_info" t-operation="after">
+            <t t-if="record.type == 'comment'">
+                <span t-att-data-id="record.id" class="oe_mail_msg_vote"></span>
             </t>
         </t>
         <t t-jquery=".oe_mail_msg_body" t-operation="append">
-        	<div t-att-data-id="record.id" class="oe_mail_msg_checklist">
-        	</div>
+            <div t-att-data-id="record.id" class="oe_mail_msg_checklist">
+            </div>
         </t>
     </t>
     
@@ -64,31 +68,31 @@
     </t>
     
     <div t-name = "AddChecklist" class="oe_mail_msg_checklist_new">
-		<input type="checkbox" class="oe_mail_msg_checklist_item"/>
-		<input type="text" id = "txt_name" size = "20" placeholder="todo item.."></input>
+        <input type="checkbox" class="oe_mail_msg_checklist_item"/>
+        <input type="text" id = "txt_name" size = "20" placeholder="todo item.."></input>
     </div>
     
     <t t-name="ChecklistItem">
-		<t t-if="checklist_items.length != 0">
-		    <span class="oe_mail_msg_checklist_progress" t-att-data-id="msg_id">
-			    <progress t-att-value='checklist_progress' class="oe_progressbar" max="100"/> 
-	            <span class="oe_mail_msg_checklist_progress_value"><t t-esc = "checklist_progress"/>%</span> <br/>
+        <t t-if="checklist_items.length != 0">
+            <span class="oe_mail_msg_checklist_progress" t-att-data-id="msg_id">
+                <progress t-att-value='checklist_progress' class="oe_progressbar" max="100"/> 
+                <span class="oe_mail_msg_checklist_progress_value"><t t-esc = "checklist_progress"/>%</span> <br/>
             </span>
            
-			<t t-foreach="checklist_items" t-as="checklist_item">
-			    <t t-if="checklist_item.done == true">
-					<span class="oe_strike_checkbox">
+            <t t-foreach="checklist_items" t-as="checklist_item">
+                <t t-if="checklist_item.done == true">
+                    <span class="oe_strike_checkbox">
                         <input t-att-data-id='checklist_item.id' class="oe_mail_msg_checklist_item" type="checkbox" checked="checked" t-att-value="checklist_item.done" /><t t-esc="checklist_item.name" />
-					</span>
+                    </span>
                 </t>
-            
+
                 <t t-if="checklist_item.done == false">
-					<span>
-	                	<input t-att-data-id='checklist_item.id' type="checkbox" class="oe_mail_msg_checklist_item" t-att-value="checklist_item.done"/><t t-esc="checklist_item.name" />
-					</span>
-             	</t>
-             	<br/>
-			</t>
-	    </t>
+                    <span>
+                        <input t-att-data-id='checklist_item.id' type="checkbox" class="oe_mail_msg_checklist_item" t-att-value="checklist_item.done"/><t t-esc="checklist_item.name" />
+                    </span>
+                </t>
+                <br/>
+            </t>
+        </t>
     </t>
 </templates>

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to