diff --git a/addons/crm/crm_view.xml b/addons/crm/crm_view.xml index 843dc966085..19a030921fb 100644 --- a/addons/crm/crm_view.xml +++ b/addons/crm/crm_view.xml @@ -63,7 +63,7 @@ crm.case.section form - + @@ -94,10 +94,23 @@ + + crm.case.categ.tree + crm.case.categ + tree + + + + + + + + + crm.case.categ form - + @@ -175,10 +188,21 @@ + + crm.case.rule.tree + crm.case.rule + tree + + + + + + + crm.case.rule form - + @@ -326,7 +350,7 @@ crm.case form - + @@ -385,8 +409,8 @@ crm.case.history form - form,tree - + tree,form + @@ -489,7 +513,7 @@ tree,form - + '+body['body'].replace('\n','\n> '), - 'email_last': body['body'] + 'email_last': body['body'], + 'history_line': [(0, 0, {'description': body['body'], 'email': msg['From']})], } # handle email body commands (ex: Set-State: Draft) @@ -211,8 +212,8 @@ class email_parser(object): self.rpc('crm.case', act, [id]) body2 = '\n'.join(map(lambda l: '> '+l, (body or '').split('\n'))) data = { - 'description': body2, 'email_last': body, + 'history_line': [(0, 0, {'description': body, 'email': msg['From']})], } self.rpc('crm.case', 'write', [id], data) return id