Hello,

A small update on my previous comment: to simplify code, I added a method in 
crm_base: case_get_note_msg_prefix(self, cr, uid, id, context=None). This 
method returns a prefix for a record. Example: %s has been opened, %s is the 
prefix. By default, an empty string is returned. If the inheriting class uses 
default messages, it must not redefine the case_XX_send_note methods, but only 
redefine the case_get_note_msg_prefix method. That way, all default messages 
will be correct. I updated crm_lead as an example.

Of course, this does apply only when using default messages such as "%s has 
been opened/reset/canceled"; when precise messages are required, nothing 
changes.

Best regards,

Thibault.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-social-crm-bth/+merge/96754
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-social-tde.

_______________________________________________
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