[DOC] mail: added a comment about _track structure.
bzr revid: tde@openerp.com-20121219093844-8p97xhnq4i7yqn4l
This commit is contained in:
parent
e1be2b071a
commit
69f53147d9
|
@ -73,6 +73,22 @@ class mail_thread(osv.AbstractModel):
|
||||||
_name = 'mail.thread'
|
_name = 'mail.thread'
|
||||||
_description = 'Email Thread'
|
_description = 'Email Thread'
|
||||||
_mail_flat_thread = True
|
_mail_flat_thread = True
|
||||||
|
|
||||||
|
# Automatic logging system if mail installed
|
||||||
|
# _track = {
|
||||||
|
# 'field': {
|
||||||
|
# 'module.subtype_xml': lambda self, cr, uid, obj, context=None: obj.state == done,
|
||||||
|
# 'module.subtype_xml2': lambda self, cr, uid, obj, context=None: obj.state != done,
|
||||||
|
# },
|
||||||
|
# 'field2': {
|
||||||
|
# ...
|
||||||
|
# },
|
||||||
|
# }
|
||||||
|
# where
|
||||||
|
# :param string field: field name
|
||||||
|
# :param module.subtype_xml: xml_id of a mail.message.subtype (i.e. mail.mt_comment)
|
||||||
|
# :param obj: is a browse_record
|
||||||
|
# :param function lambda: returns whether the tracking should record using this subtype
|
||||||
_track = {}
|
_track = {}
|
||||||
|
|
||||||
_TRACK_TEMPLATE = """
|
_TRACK_TEMPLATE = """
|
||||||
|
|
Loading…
Reference in New Issue