Files
odoo_source/addons/crm/security/ir.model.access.csv
T
David BeguinandThibault Delavallée 5f551d235c [REF] (sale_)crm: remove crm.partner.binding mixin
PURPOSE

This refactoring commit removes the crm.partner.binding mixin. Indeed it
defines a mixin for unnecessary fields, generally either redefined in
inheriting models, either not used at all. It also holds an utility method
we moved directly on crm.lead model.

SPECIFICATIONS

Code move

  * move _find_matching_partner to crm.lead model;
  * move action field into inheriting models, except crm.lead.convert2ticket
    that does not use it;
  * move partner_id to inheriting models;
  * remove crm.partner.binding model and inheritance;

Improve behavior

  * correctly store lead and partner many2one fields on all inheriting
    models. It allows to support a default_lead_id instead of always
    relying on active_model / active_id, making the wizards more generic;
  * update default_get accordingly in various inheriting models in order to
    correctly compute lead / partner values;

LINKS

Part of Task ID 2056759 (remove crm.partner.binding mixin)
Part of Task ID 2088565 (crm onchange -> compute)
Community PR odoo/odoo#44970
Enterprise PR odoo/enterprise#8307
Upgrade PR odoo/upgrade#750

Related: odoo/enterprise#8307
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Co-authored-by: David Beguin <dbe@odoo.com>
Co-authored-by: Thibault Delavallée <tde@odoo.com>
2020-02-13 15:29:40 +00:00

3.3 KiB

1idnamemodel_id:idgroup_id:idperm_readperm_writeperm_createperm_unlink
2access_crm_lead_managercrm.lead.managermodel_crm_leadsales_team.group_sale_manager1111
3access_crm_leadcrm.leadmodel_crm_leadsales_team.group_sale_salesman1110
4access_crm_stagecrm.stagemodel_crm_stage1000
5access_crm_stage_managercrm.stagemodel_crm_stagesales_team.group_sale_manager1111
6access_res_partner_managerres.partner.crm.managerbase.model_res_partnersales_team.group_sale_manager1000
7access_res_partner_category_managerres.partner.category.crm.managerbase.model_res_partner_categorysales_team.group_sale_manager1000
8access_res_partnerres.partner.crm.userbase.model_res_partnersales_team.group_sale_salesman1110
9access_res_partner_categoryres.partner.category.crm.userbase.model_res_partner_categorysales_team.group_sale_salesman1110
10access_crm_lead_partner_managercrm.lead.partner.managermodel_crm_leadbase.group_partner_manager1000
11access_crm_lead_tagcrm_lead_tagmodel_crm_lead_tagbase.group_user1000
12access_crm_lead_tag_salesmancrm_lead_tag salesmanmodel_crm_lead_tagsales_team.group_sale_salesman1110
13access_crm_lead_tag_managercrm_lead_tag managermodel_crm_lead_tagsales_team.group_sale_manager1111
14access_crm_lost_reason_managercrm.lost.reason.managermodel_crm_lost_reasonsales_team.group_sale_manager1111
15access_crm_lost_reason_salesmancrm.lost.reason.salesmanmodel_crm_lost_reasonsales_team.group_sale_salesman1000
16access_crm_lost_reason_usercrm.lost.reason.usermodel_crm_lost_reasonbase.group_user1000
17access_crm_activity_report_usercrm.activity.report.usermodel_crm_activity_reportbase.group_user1000
18access_calendar_event_managercalendar.event.managercalendar.model_calendar_eventsales_team.group_sale_manager1111
19access_calendar_eventcalendar.eventcalendar.model_calendar_eventsales_team.group_sale_salesman1110
20access_calendar_event_type_sale_managercalendar.event.type.managercalendar.model_calendar_event_typesales_team.group_sale_manager1110
21access_calendar_event_type_sale_usercalendar.event.type.usercalendar.model_calendar_event_typebase.group_user1000
22access_calendar_event_type_sale_salesmancalendar.event.type.salesmancalendar.model_calendar_event_typesales_team.group_sale_salesman1000
23access_mail_activity_type_sale_managermail.activity.type.sale.managermail.model_mail_activity_typesales_team.group_sale_manager1111
24access_crm_lead_scoring_frequencyaccess_crm_lead_scoring_frequencymodel_crm_lead_scoring_frequencysales_team.group_sale_salesman1000
25access_crm_lead_scoring_frequency_fieldaccess_crm_lead_scoring_frequency_fieldmodel_crm_lead_scoring_frequency_fieldsales_team.group_sale_salesman1000
26access_crm_lead_lostaccess.crm.lead.lostmodel_crm_lead_lostsales_team.group_sale_salesman1110
27access_crm_lead2opportunity_partneraccess.crm.lead2opportunity.partnermodel_crm_lead2opportunity_partnersales_team.group_sale_salesman1110
28access_crm_lead2opportunity_partner_massaccess.crm.lead2opportunity.partner.massmodel_crm_lead2opportunity_partner_masssales_team.group_sale_salesman1110
29access_crm_merge_opportunityaccess.crm.merge.opportunitymodel_crm_merge_opportunitysales_team.group_sale_salesman1110