Thibault Delavallée (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-rename-threadview-widget-tde-2 into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-rename-threadview-widget-tde-2/+merge/113212

Rename ThreadView widget to mail_thread to more closely match the OpenERP 
guidelines. Also add some footers where they had been forgotten.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-rename-threadview-widget-tde-2/+merge/113212
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-rename-threadview-widget-tde-2.
=== modified file 'account/account_invoice_view.xml'
--- account/account_invoice_view.xml	2012-07-02 13:38:21 +0000
+++ account/account_invoice_view.xml	2012-07-03 13:47:23 +0000
@@ -270,7 +270,7 @@
                     </notebook>
                 </sheet>
                 <footer>
-                    <field name="message_ids" widget="ThreadView"/>
+                    <field name="message_ids" widget="mail_thread"/>
                 </footer>
                 </form>
             </field>
@@ -405,7 +405,7 @@
                     </notebook>
                 </sheet>
                 <footer>
-                    <field name="message_ids" colspan="4" widget="ThreadView" nolabel="1"/>
+                    <field name="message_ids" colspan="4" widget="mail_thread" nolabel="1"/>
                 </footer>
                 </form>
             </field>

=== modified file 'account_voucher/account_voucher_view.xml'
--- account_voucher/account_voucher_view.xml	2012-06-27 11:40:52 +0000
+++ account_voucher/account_voucher_view.xml	2012-07-03 13:47:23 +0000
@@ -112,7 +112,7 @@
                     </notebook>
                   </sheet>
                     <footer>
-                        <field name="message_ids" widget="ThreadView"/>
+                        <field name="message_ids" widget="mail_thread"/>
                     </footer>
                 </form>
             </field>

=== modified file 'account_voucher/voucher_payment_receipt_view.xml'
--- account_voucher/voucher_payment_receipt_view.xml	2012-06-28 15:05:19 +0000
+++ account_voucher/voucher_payment_receipt_view.xml	2012-07-03 13:47:23 +0000
@@ -258,7 +258,7 @@
                     </notebook>
                     </sheet>
                     <footer>
-                        <field name="message_ids" widget="ThreadView"/>
+                        <field name="message_ids" widget="mail_thread"/>
                     </footer>
                 </form>
             </field>
@@ -431,7 +431,7 @@
                     </notebook>
                     </sheet>
                     <footer>
-                        <field name="message_ids" widget="ThreadView"/>
+                        <field name="message_ids" widget="mail_thread"/>
                     </footer>
                 </form>
             </field>

=== modified file 'account_voucher/voucher_sales_purchase_view.xml'
--- account_voucher/voucher_sales_purchase_view.xml	2012-06-29 12:36:18 +0000
+++ account_voucher/voucher_sales_purchase_view.xml	2012-07-03 13:47:23 +0000
@@ -168,7 +168,7 @@
                     </notebook>
                     </sheet>
                     <footer>
-                        <field name="message_ids" widget="ThreadView"/>
+                        <field name="message_ids" widget="mail_thread"/>
                     </footer>
                 </form>
             </field>
@@ -321,7 +321,7 @@
                     </notebook>
                     </sheet>
                     <footer>
-                        <field name="message_ids" widget="ThreadView"/>
+                        <field name="message_ids" widget="mail_thread"/>
                     </footer>
                 </form>
             </field>

=== modified file 'analytic/analytic_view.xml'
--- analytic/analytic_view.xml	2012-06-26 11:02:35 +0000
+++ analytic/analytic_view.xml	2012-07-03 13:47:23 +0000
@@ -44,7 +44,7 @@
                         </notebook>
                     </sheet>
                     <footer>
-                        <field name="message_ids" widget="ThreadView"/>
+                        <field name="message_ids" widget="mail_thread"/>
                     </footer>
                 </form>
             </field>

=== modified file 'crm/crm_lead_view.xml'
--- crm/crm_lead_view.xml	2012-07-03 08:13:42 +0000
+++ crm/crm_lead_view.xml	2012-07-03 13:47:23 +0000
@@ -213,7 +213,7 @@
                     </notebook>
                 </sheet>
                 <footer>
-                    <field name="message_ids" widget="ThreadView"/>
+                    <field name="message_ids" widget="mail_thread"/>
                 </footer>
             </form>
         </field>
@@ -569,7 +569,7 @@
                     </notebook>
                 </sheet>
                 <footer>
-                    <field name="message_ids" widget="ThreadView"/>
+                    <field name="message_ids" widget="mail_thread"/>
                 </footer>
             </form>
         </field>

=== modified file 'crm/crm_meeting_view.xml'
--- crm/crm_meeting_view.xml	2012-07-02 17:08:54 +0000
+++ crm/crm_meeting_view.xml	2012-07-03 13:47:23 +0000
@@ -258,7 +258,7 @@
                 </notebook>
                 </sheet>
                 <footer>
-                    <field name="message_ids" widget="ThreadView"/>
+                    <field name="message_ids" widget="mail_thread"/>
                 </footer>
             </form>
         </field>

=== modified file 'crm/crm_phonecall_view.xml'
--- crm/crm_phonecall_view.xml	2012-07-02 16:29:01 +0000
+++ crm/crm_phonecall_view.xml	2012-07-03 13:47:23 +0000
@@ -146,7 +146,7 @@
                 <field name="description" placeholder="Description..." />
             </sheet>
             <footer>
-                <field name="message_ids" widget="ThreadView"/>
+                <field name="message_ids" widget="mail_thread"/>
             </footer>
             </form>
         </field>

=== modified file 'crm_claim/crm_claim_view.xml'
--- crm_claim/crm_claim_view.xml	2012-06-29 12:36:18 +0000
+++ crm_claim/crm_claim_view.xml	2012-07-03 13:47:23 +0000
@@ -168,9 +168,9 @@
                         </notebook>
                     </group>
                 </sheet>
-                <div class="oe_sheet_width">
-                    <field name="message_ids" colspan="4" widget="ThreadView" nolabel="1"/>
-                </div>
+                <footer>
+                    <field name="message_ids" colspan="4" widget="mail_thread" nolabel="1"/>
+                </footer>
                 </form>
             </field>
         </record>

=== modified file 'crm_fundraising/crm_fundraising_view.xml'
--- crm_fundraising/crm_fundraising_view.xml	2012-07-02 11:27:50 +0000
+++ crm_fundraising/crm_fundraising_view.xml	2012-07-03 13:47:23 +0000
@@ -129,7 +129,7 @@
                     </notebook>
                 </sheet>
                 <footer>
-                    <field name="message_ids" colspan="4" widget="ThreadView" nolabel="1"/>
+                    <field name="message_ids" colspan="4" widget="mail_thread" nolabel="1"/>
                 </footer>
                 </form>
             </field>

=== modified file 'crm_helpdesk/crm_helpdesk_view.xml'
--- crm_helpdesk/crm_helpdesk_view.xml	2012-06-29 12:36:18 +0000
+++ crm_helpdesk/crm_helpdesk_view.xml	2012-07-03 13:47:23 +0000
@@ -100,7 +100,7 @@
                     </notebook>
                 </sheet>
                 <footer>
-                    <field name="message_ids" widget="ThreadView"/>
+                    <field name="message_ids" widget="mail_thread"/>
                 </footer>
                 </form>
             </field>

=== modified file 'event/event_view.xml'
--- event/event_view.xml	2012-07-02 16:29:01 +0000
+++ event/event_view.xml	2012-07-03 13:47:23 +0000
@@ -167,9 +167,9 @@
                     </page>
                     </notebook>
                     </sheet>
-                    <div class="oe_sheet_width">
-                        <field name="message_ids" colspan="4" widget="ThreadView" nolabel="1"/>
-                    </div>
+                    <footer>
+                        <field name="message_ids" colspan="4" widget="mail_thread" nolabel="1"/>
+                    </footer>
             </form>
             </field>
         </record>
@@ -468,19 +468,6 @@
                             </group>
                         </page>
                         <page string="Emails">
-<!--
-                            <field name="message_ids" colspan="4" nolabel="1" mode="tree">
-                                <tree string="History">
-                                    <field name="display_text" string="History Information"/>
-                                    <field name="reply_to" invisible="1"/>
-                                    <button
-                                        string="Reply" attrs="{'invisible': [('reply_to', '=', False)]}"
-                                        name="%(mail.action_email_compose_message_wizard)d"
-                                        context="{'mail.compose.message.mode':'reply', 'message_id':active_id}"
-                                        icon="terp-mail-replied" type="action" />
-                                </tree>
-                            </field>
--->
                             <button string="Send New Email"
                                 name="%(mail.action_email_compose_message_wizard)d"
                                 icon="terp-mail-message-new" context= '{"default_email_to":email}' type="action"/>
@@ -488,9 +475,9 @@
 
                     </notebook>
                     </sheet>
-                    <div class="oe_sheet_width">
-                        <field name="message_ids" colspan="4" widget="ThreadView" nolabel="1"/>
-                    </div>
+                    <footer>
+                        <field name="message_ids" colspan="4" widget="mail_thread" nolabel="1"/>
+                    </footer>
                 </form>
             </field>
         </record>

=== modified file 'hr_holidays/hr_holidays_view.xml'
--- hr_holidays/hr_holidays_view.xml	2012-07-02 13:08:24 +0000
+++ hr_holidays/hr_holidays_view.xml	2012-07-03 13:47:23 +0000
@@ -136,9 +136,9 @@
                         </page>
                     </notebook>
                 </sheet>
-                <div class="oe_sheet_width">
-                    <field name="message_ids" colspan="4" widget="ThreadView" nolabel="1"/>
-                </div>
+                <footer>
+                    <field name="message_ids" colspan="4" widget="mail_thread" nolabel="1"/>
+                </footer>
                 </form>
             </field>
         </record>
@@ -179,11 +179,11 @@
                         <field name="notes"/>
                     </page>
                 </notebook>
-            </sheet>
-            <div class="oe_sheet_width">
-                <field name="message_ids" colspan="4" widget="ThreadView" nolabel="1"/>
-            </div>
-            </form>
+                </sheet>
+                <footer>
+                    <field name="message_ids" colspan="4" widget="mail_thread" nolabel="1"/>
+                </footer>
+                </form>
             </field>
         </record>
 

=== modified file 'hr_recruitment/hr_recruitment_view.xml'
--- hr_recruitment/hr_recruitment_view.xml	2012-07-02 13:08:24 +0000
+++ hr_recruitment/hr_recruitment_view.xml	2012-07-03 13:47:23 +0000
@@ -204,7 +204,7 @@
                 </notebook>
             </sheet>
             <footer>
-                <field name="message_ids" widget="ThreadView"/>
+                <field name="message_ids" widget="mail_thread"/>
             </footer>
           </form>
         </field>

=== modified file 'idea/idea_view.xml'
--- idea/idea_view.xml	2012-06-25 04:19:34 +0000
+++ idea/idea_view.xml	2012-07-03 13:47:23 +0000
@@ -78,7 +78,7 @@
                     <h2><field name="category_ids"/></h2>
                     <field name="description"/>
                 <footer>
-                    <field name="message_ids" widget="ThreadView"/>
+                    <field name="message_ids" widget="mail_thread"/>
                 </footer>
             </form>
         </field>

=== modified file 'mail/doc/mail_openchatter_howto.rst'
--- mail/doc/mail_openchatter_howto.rst	2012-04-20 11:26:05 +0000
+++ mail/doc/mail_openchatter_howto.rst	2012-07-03 13:47:23 +0000
@@ -38,7 +38,7 @@
     # inherit from mail.thread allows the use of OpenChatter
     _inherit = ['mail.thread']
 
-Use the thread viewer widget inside your form view by using the ThreadView widget on the message_ids field inherited from mail.thread.
+Use the thread viewer widget inside your form view by using the mail_thread widget on the message_ids field inherited from mail.thread.
 
 ::
 
@@ -50,7 +50,7 @@
     <field name="arch" type="xml">
       <form>
       [...]
-      <field name="message_ids" colspan="4" widget="ThreadView" nolabel="1"/>
+      <field name="message_ids" colspan="4" widget="mail_thread" nolabel="1"/>
       </form>
     </field>
   </record>
@@ -131,7 +131,7 @@
 Messages display management
 ++++++++++++++++++++++++++++
 
-By default, the ThreadView widget shows all messages related to the current document beside the document, in the History and comments section. However, you may want to display other messages in the widget. For example, the OpenChatter on res.users model shows
+By default, the mail_thread widget shows all messages related to the current document beside the document, in the History and comments section. However, you may want to display other messages in the widget. For example, the OpenChatter on res.users model shows
 
  - messages related to the user, as usual (messages with ``model = res.users, res_id = current_document_id``)
  - messages directly pushed to this user (containing @login)

=== modified file 'mail/mail_group_view.xml'
--- mail/mail_group_view.xml	2012-06-29 08:57:03 +0000
+++ mail/mail_group_view.xml	2012-07-03 13:47:23 +0000
@@ -73,7 +73,7 @@
                         </group>
                     </sheet>
                     <footer class="openerp_mail_group_footer">
-                        <field name="message_ids" widget="ThreadView"
+                        <field name="message_ids" widget="mail_thread"
                                 options='{"thread_level": 1}'/>
                     </footer>
                 </form>

=== modified file 'mail/res_partner_view.xml'
--- mail/res_partner_view.xml	2012-06-13 09:06:57 +0000
+++ mail/res_partner_view.xml	2012-07-03 13:47:23 +0000
@@ -10,7 +10,7 @@
             <field name="arch" type="xml">
                 <xpath expr="//sheet" position="after">
                     <footer>
-                    <field name="message_ids" widget="ThreadView" 
+                    <field name="message_ids" widget="mail_thread" 
                             options='{"thread_level": 1}'/>
                     </footer>
                 </xpath>

=== modified file 'mail/res_users_view.xml'
--- mail/res_users_view.xml	2012-06-19 08:56:18 +0000
+++ mail/res_users_view.xml	2012-07-03 13:47:23 +0000
@@ -28,7 +28,7 @@
                 </field>
                 <xpath expr="/form/sheet" position="after">
                     <div class="oe_bottom">
-                        <field name="message_ids" colspan="4" widget="ThreadView" nolabel="1"/>
+                        <field name="message_ids" colspan="4" widget="mail_thread" nolabel="1"/>
                     </div>
                 </xpath>
             </data>

=== modified file 'mail/static/src/js/mail.js'
--- mail/static/src/js/mail.js	2012-07-02 15:55:05 +0000
+++ mail/static/src/js/mail.js	2012-07-03 13:47:23 +0000
@@ -497,7 +497,7 @@
     });
     session.web.form.widgets.add( 'Thread', 'openerp.mail.Thread');
 
-    /** ThreadView widget: thread of comments */
+    /** mail_thread widget: thread of comments */
     mail.RecordThread = session.web.form.AbstractField.extend({
         template: 'mail.RecordThread',
 
@@ -598,7 +598,7 @@
             return this.session.prefix + '/web/binary/image?session_id=' + this.session.session_id + '&model=' + model + '&field=' + field + '&id=' + (id || '');
         },
     });
-    session.web.form.widgets.add( 'ThreadView', 'openerp.mail.RecordThread');
+    session.web.form.widgets.add( 'mail_thread', 'openerp.mail.RecordThread');
 
     /** WallView widget: a wall of messages */
     mail.WallView = session.web.Widget.extend({

=== modified file 'mrp/mrp_view.xml'
--- mrp/mrp_view.xml	2012-06-28 13:12:10 +0000
+++ mrp/mrp_view.xml	2012-07-03 13:47:23 +0000
@@ -796,7 +796,7 @@
                     </notebook>
                 </sheet>
                 <footer>
-                    <field name="message_ids" widget="ThreadView"/>
+                    <field name="message_ids" widget="mail_thread"/>
                 </footer>
                 </form>
             </field>

=== modified file 'mrp_operations/mrp_operations_view.xml'
--- mrp_operations/mrp_operations_view.xml	2012-06-29 09:32:56 +0000
+++ mrp_operations/mrp_operations_view.xml	2012-07-03 13:47:23 +0000
@@ -112,7 +112,7 @@
                 </notebook>
                 </sheet>
                 <footer>
-                    <field name="message_ids" widget="ThreadView"/>
+                    <field name="message_ids" widget="mail_thread"/>
                 </footer>
             </form>
         </field>

=== modified file 'procurement/procurement_view.xml'
--- procurement/procurement_view.xml	2012-06-28 13:12:10 +0000
+++ procurement/procurement_view.xml	2012-07-03 13:47:23 +0000
@@ -94,7 +94,7 @@
                     </notebook>
                     </sheet>
                     <footer>
-                        <field name="message_ids" widget="ThreadView"/>
+                        <field name="message_ids" widget="mail_thread"/>
                     </footer>
                 </form>
             </field>

=== modified file 'product/product_view.xml'
--- product/product_view.xml	2012-07-02 16:38:30 +0000
+++ product/product_view.xml	2012-07-03 13:47:23 +0000
@@ -184,7 +184,7 @@
                         </notebook>
                     </sheet>
                     <footer>
-                        <field name="message_ids" widget="ThreadView"/>
+                        <field name="message_ids" widget="mail_thread"/>
                     </footer>
                 </form>
             </field>

=== modified file 'project/project_view.xml'
--- project/project_view.xml	2012-07-02 13:08:24 +0000
+++ project/project_view.xml	2012-07-03 13:47:23 +0000
@@ -148,7 +148,7 @@
                     </notebook>
                 </sheet>
                 <footer>
-                    <field name="message_ids" widget="ThreadView"/>
+                    <field name="message_ids" widget="mail_thread"/>
                 </footer>
                 </form>
             </field>
@@ -496,7 +496,7 @@
                     </notebook>
                     </sheet>
                     <footer>
-                        <field name="message_ids" widget="ThreadView"/>
+                        <field name="message_ids" widget="mail_thread"/>
                     </footer>
                 </form>
             </field>

=== modified file 'project_issue/project_issue_view.xml'
--- project_issue/project_issue_view.xml	2012-07-02 13:08:24 +0000
+++ project_issue/project_issue_view.xml	2012-07-03 13:47:23 +0000
@@ -157,7 +157,7 @@
                     </notebook>
                 </sheet>
                 <footer>
-                    <field name="message_ids" widget="ThreadView"/>
+                    <field name="message_ids" widget="mail_thread"/>
                 </footer>
                 </form>
             </field>

=== modified file 'purchase/purchase_view.xml'
--- purchase/purchase_view.xml	2012-07-02 15:55:05 +0000
+++ purchase/purchase_view.xml	2012-07-03 13:47:23 +0000
@@ -257,7 +257,7 @@
                     </notebook>
                 </sheet>
                 <footer>
-                   <field name="message_ids" widget="ThreadView"/>
+                   <field name="message_ids" widget="mail_thread"/>
                 </footer>
                 </form>
             </field>

=== modified file 'purchase_requisition/purchase_requisition_view.xml'
--- purchase_requisition/purchase_requisition_view.xml	2012-06-29 12:42:11 +0000
+++ purchase_requisition/purchase_requisition_view.xml	2012-07-03 13:47:23 +0000
@@ -105,7 +105,7 @@
                 </notebook>
             </sheet>
             <footer>
-                  <field name="message_ids" widget="ThreadView"/>
+                  <field name="message_ids" widget="mail_thread"/>
             </footer> 
             </form>
         </field>

=== modified file 'sale/sale_view.xml'
--- sale/sale_view.xml	2012-07-03 08:13:42 +0000
+++ sale/sale_view.xml	2012-07-03 13:47:23 +0000
@@ -321,7 +321,7 @@
                     </notebook>
                 </sheet>
                 <footer>
-                    <field name="message_ids" widget="ThreadView"/>
+                    <field name="message_ids" widget="mail_thread"/>
                 </footer>
                 </form>
             </field>

=== modified file 'stock/stock_view.xml'
--- stock/stock_view.xml	2012-07-02 16:38:30 +0000
+++ stock/stock_view.xml	2012-07-03 13:47:23 +0000
@@ -978,7 +978,7 @@
                     </xpath>
                     <xpath expr="/form/sheet" position="after">
                         <footer>
-                            <field name="message_ids" colspan="4" widget="ThreadView" nolabel="1"/>
+                            <field name="message_ids" colspan="4" widget="mail_thread" nolabel="1"/>
                         </footer>
                     </xpath>
                 </data>
@@ -1090,9 +1090,9 @@
                         <field name="partner_id" on_change="onchange_partner_in(partner_id)"  colspan="4" string="Supplier"/>
                     </xpath>
                     <xpath expr="/form/sheet" position="after">
-                        <div class="oe_bottom">
-                            <field name="message_ids" colspan="4" widget="ThreadView" nolabel="1"/>
-                        </div>
+                        <footer>
+                            <field name="message_ids" colspan="4" widget="mail_thread" nolabel="1"/>
+                        </footer>
                     </xpath>
                 </data>
             </field>

_______________________________________________
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