[IMP] change subtype close
authorForam Katharotiya (OpenERP) <fka@tinyerp.com>
Fri, 31 Aug 2012 12:52:01 +0000 (18:22 +0530)
committerForam Katharotiya (OpenERP) <fka@tinyerp.com>
Fri, 31 Aug 2012 12:52:01 +0000 (18:22 +0530)
bzr revid: fka@tinyerp.com-20120831125201-gomz1f0hy8wid1rh

addons/stock/stock.py
addons/stock/stock_data.xml

index 3011fc6..0bc455a 100644 (file)
@@ -1394,7 +1394,7 @@ class stock_picking(osv.osv):
                 'internal': 'moved',
         }
         for obj in self.browse(cr, uid, ids, context=context):
-            self.message_post(cr, uid, [obj.id], body=_("Products have been <b>%s</b>.") % (type_dict.get(obj.type, 'move done')), subtype="close", context=context)
+            self.message_post(cr, uid, [obj.id], body=_("Products have been <b>%s</b>.") % (type_dict.get(obj.type, 'move done')), subtype="closed", context=context)
 
     def ship_cancel_send_note(self, cr, uid, ids, context=None):
         for obj in self.browse(cr, uid, ids, context=context):
index 976c89a..a7e2ffd 100644 (file)
@@ -177,8 +177,8 @@ watch your stock valuation, and track production lots upstream and downstream (b
             <field name="name">moved</field>
             <field name="model_ids" eval="[(4,ref('stock.model_stock_picking'))]"/>
         </record>
-        <record id="mail.mail_subtype_close" model="mail.message.subtype">
-            <field name="name">close</field>
+        <record id="mail.mail_subtype_closed" model="mail.message.subtype">
+            <field name="name">closed</field>
             <field name="model_ids" eval="[(4,ref('stock.model_stock_picking'))]"/>
         </record>
         <record id="mail.mail_subtype_cancelled" model="mail.message.subtype">