when user MARK AS DONE or DONE & SCHEDULE NEXT a Schedule Activity i want to create a record in a custom model (table) through functions in mail.activity.
function name is action_done and action_done_schedule_next, if it success then required record should be created with below mentioned attributes from mail.activity. i want it because when a user marked activity as DONE, Odoo delete from activity and i want to check it, if its DONE then create next default sheduled activity. (if you have a better idea, please advise)
the fields required from mail.activity are: (please add fields which required necessarily for activity marked as DONE)
id, res_id, res_model, summary, write_date
my custom model (table) 'mail_activity_done' contains fields:
ma_id, ma_res_id, ma_res_model, ma_summary, ma_write_date
all types of DONE activity will be recorded here for later use. please help.
regards