Commit Graph
18 Commits
Author SHA1 Message Date
Antony Lesuisse 71f710c671 [FIX] bank_statement_import_ofx: optional dependency warning
Should be a short warning only.
2015-01-28 01:10:41 +01:00
Antony Lesuisse 75fa30fc54 [FIX] base: ir_config_parameter increase database.uuid.private entropy
Use uuid4 instead of uuid1 to get 128 bits of entropy.

Rename database.uuid.private to the more meaningful database.secret as it
explains the usage instead of the technical details to generate it. And we
might switch to a longer string with more entropy in the future.

This string can be used to sign cookies or token with
sign(src) -> (src, hash(src + secret))
check(msg) -> msg[1] == hash(msg[0] + secret)
2015-01-28 00:32:51 +01:00
Jeremy Kersten 0a78a3d633 [IMP] website_crm_score: use private db uuid to hash lead_id in cookies 2015-01-27 18:20:51 +01:00
Jeremy Kersten 0c1cbd57ca [IMP] website_crm_score: improve usability + misc
Review kanban to have only create by default without the search view
Rename model leads_dry_run into crm_leads_dry_run
Fix bug when toggle the running field on kanban was done before save
Remove useless link Assign now and Dry Run
Add dry run action_server in team.user more context
2015-01-26 18:57:44 +01:00
Jeremy Kersten d7ea12c7ca [FIX] website_crm_score: remove default value for user_id, sql replace False by null value. 2015-01-21 14:42:41 +01:00
Jeremy Kersten d653380782 [FIX] website_crm_score: fix bug in salesteam kanban 'ownerDocument' + misc.
Fix kanban:
    Move invisible user_id field outside the kanban-box.
    Since jQuery migration (1.8 -> 1.11), the function append has not the same behavior.
    $([undefined]).append() will crash, so when Odoo whas trying to render the user_ids m2m field in kanban, that crashs.
    Anyway, moving the code outside this kanban-box, will avoid to render an invisible m2m_tag.

Misc:
    Escape html
    concat with %s
2015-01-21 13:26:05 +01:00
Jeremy Kersten ba294e2318 [REF] website_crm_score: migrate code to be compatible with master.
Courtesy Review : xmo, mat
2015-01-19 09:53:31 +01:00
Jeremy Kersten b8e7a5fd77 [FIX] website_crm_score: force commit, because too many bad gateway (too long). Remove unused field from read 2015-01-19 09:45:59 +01:00
Jeremy Kersten e4bbd010f0 [FIX] website_crm_score: Merge pageview and score as superuserid to allow non salemanager to merge some lead. 2015-01-19 09:45:59 +01:00
Jeremy Kersten ab4d4e17c5 [IMP] website_crm_score: don't send email with auto assignation + don't send mail for each pageview. Salesmen are spammed 2015-01-19 09:45:59 +01:00
Jeremy Kersten 511dce3a7d [FIX] website_crm_score: some improvements to make assign_date automatic
crm_lead:
        overwritte create and write from crm_lead to force assign_date to be computed according to the field user_id is updated.
        Else when the assignation was done manually, this field was not updated and so the lead not added in the instant pipe from the saleman (section_user)
    sales_team:
        Add context when assignation is done by cron to avoid to spam the sales. Notification of assignation will be only done via a log on the lead/opportunity.
        Don't force to write assign date since write of crm_lead is overwritted to do it
        Misc improve - check that leads exists before to make useless call to browse/write on nothing
2015-01-19 09:45:59 +01:00
Jeremy Kersten 1e71ed4305 [IMP] website_crm_score: hack to use request.host for cookies if in local mode (with port) 2015-01-19 09:45:59 +01:00
Jeremy Kersten 576933ff08 [IMP] website_crm_score: multi improvements
Move section_user before the use of this one in a many2many, else demo data are not installable because field id is never created in db. (same 'issue' that https://github.com/odoo/odoo/issues/2386)
    Add a cron to compute score each hours
    Add merge pageview and merge (clean) score when we merge opportunities via merge_opportunities/merge_dependencies
    Score the lead after the assignation to salesteam. Because when we assign to salesteam, sometimes we call the method merge_opportunities which one delete old scores on this lead, all score rules needs to be recomputed since the fields have been updated. So we compute now the score not at starting, but between assignation to salesteam and salesman.
2015-01-19 09:45:59 +01:00
Jeremy Kersten 14efd71694 [FIX] website_crm_score: be more specific in the domain to select lead to assign to a salesteam. And autocommit after each merge/assign_sale_steam to avoid duplicate mail and too long cron 2015-01-19 09:45:58 +01:00
Jeremy Kersten 0e4f8b8856 [IMP] website_crm_score: fix kanban to display user_id from section (m2m user_ids). Add field min_for_assign in form view. 2015-01-19 09:45:58 +01:00
Jeremy Kersten b08cb60384 [IMP] website_crm_score: add new field to specify the minimum score that a lead need to be allocated. Merge duplicated lead before to assign them to a salesman 2015-01-19 09:45:58 +01:00
Jeremy Kersten 9ba31b513e [FIX] website_crm_score: check that endpoint is set before to use routing to avoid a traceback when session is expired 2015-01-19 09:45:58 +01:00
Jeremy Kersten 53c20649ab [IMP] website_crm_score: new module 2015-01-19 09:45:58 +01:00