Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Have a review of all action (email, quotation, phone call, order) did by the employees per day

By
Selverine
on 4/6/15, 5:39 AM 427 views

Hi all,


I would like to know if it is possible to have a review about all action did by the employees.

Example of action: Email sent, Phone call with the client, new order, new quotation...

The purpose it is to know easily and fast what employees did during the day.


Thank you,


Selverine


there is the big brother PRISME US programs ;)

Cyril Gaspard (GEM)
on 4/6/15, 6:15 AM
2

Cyril Gaspard (GEM)

--Cyril Gaspard (GEM)--
4136
| 5 6 8
Paris, France
--Cyril Gaspard (GEM)--

Forum contributor since 2008

Cyril Gaspard (GEM)
On 4/6/15, 8:22 AM

Hi,

you can use notifications (add a notification when a new record for the object is created) at the bottom wall of an object , or associated to a field , what you have by example at the bottom of sale order form (log llist of created records, actions), button at the bottom right "Following" which list subtypes to check (all subtypes at menu settings/technical/email/subtypes), add user which can see notifications with button add user (all followers at menu settings/technical/email/followers), All notifications are stored in menu settings/technical/email/message, you can override search to add group by and filters you need.

But all objects have not notification available.


to have notification to add for an object :

inherit some necessary models with to your class:

_inherit = ['mail.thread', 'ir.needaction_mixin']


to display in form view, add at the end of xml definition of the form (between end of balise sheet and form) you can add a group if you do not want users see it:


</sheet>

<div class="oe_chatter">

<field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/>

<field name="message_ids" widget="mail_thread"/>

</div>

</form>


to associate a subtype to a field, use _track, example:


_track = {

     'state': {

         'sale.mt_order_confirmed': lambda self, cr, uid, obj, ctx=None: obj.state in ['manual'],

         'sale.mt_order_sent': lambda self, cr, uid, obj, ctx=None: obj.state in ['sent']

         },

}

I believe it exists an attibute to add in a field definition in view, but can't remember it name ...


OR :

use module smile_log :

https://github.com/Smile-SA/odoo_addons

add menu settings/tecnichal/Logging

add in your python file :


import logging


override functions create, write, unlink for your class and add:

logger = SmileLogger(dbname, model_name, res_id, uid)

logger.info(your_message) # will create a log in db with a unique pid per logger


add group by and filters you need in search view


bye


Sorry to answer right now...I just saw it now...:-(. I will use notification. It looks the best idea ;-). I asked to be able to use PRIME US but they didn't want to give me the code...I don't know why :-)

Selverine
on 6/3/15, 9:26 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 4/6/15, 5:39 AM
Seen: 427 times
Last updated: 6/3/15, 9:24 AM