Foram Katharotiya (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-subtype-account-fka into 
lp:openobject-addons.

Requested reviews:
  Amit Patel (OpenERP) (apa-tiny)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-subtype-account-fka/+merge/135087

Hello Sir,

 - Add Subtypes in account

Thanks,
FKA
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-subtype-account-fka/+merge/135087
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-subtype-account-fka.
=== modified file 'account/account_invoice.py'
--- account/account_invoice.py	2012-11-15 12:38:51 +0000
+++ account/account_invoice.py	2012-11-20 09:12:27 +0000
@@ -1060,7 +1060,7 @@
                 if obj_inv.type in ('out_invoice', 'out_refund'):
                     ctx = self.get_log_context(cr, uid, context=ctx)
                 message = _("Invoice  '%s' is validated.") % name
-                self.message_post(cr, uid, [inv_id], body=message, context=context)
+                self.message_post(cr, uid, [inv_id], body=message, subtype="account.mt_invoice_validated", context=context)
         return True
 
     def action_cancel(self, cr, uid, ids, *args):

=== modified file 'account/data/account_data.xml'
--- account/data/account_data.xml	2012-10-19 05:14:38 +0000
+++ account/data/account_data.xml	2012-11-20 09:12:27 +0000
@@ -563,11 +563,16 @@
 
         <!-- mail: subtypes -->
         <record id="mt_invoice_new" model="mail.message.subtype">
-            <field name="name">created</field>
-            <field name="res_model">account.invoice</field>
+            <field name="name">Created</field>
+            <field name="res_model">account.invoice</field>
+        </record>
+        <record id="mt_invoice_validated" model="mail.message.subtype">
+            <field name="name">Validated</field>
+            <field name="res_model">account.invoice</field>
+            <field name="default" eval="False"/>
         </record>
         <record id="mt_invoice_paid" model="mail.message.subtype">
-            <field name="name">paid</field>
+            <field name="name">Paid</field>
             <field name="res_model">account.invoice</field>
         </record>
     </data>

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : openerp-dev-gtk@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to