-
- Downloads
[REF] sales_team: Clean _get_default_team
This commit changes the method _get_default_team_id so that it removes
the xmlid reference to the default team. Instead, we will now use
the team sequence (with default team's sequence being set as 1)
and falling back to the next team with the highest sequence if the
default team got deleted.
Therefore, teams will now be ordered by sequence instead of name,
allowing the users to reorder their teams as they see fit
This commit also removes useless sudo when searching teams
Task: #1962182
PR: #32372
wip
Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
Showing
- addons/crm/models/crm_lead.py 7 additions, 3 deletionsaddons/crm/models/crm_lead.py
- addons/sales_team/data/sales_team_data.xml 3 additions, 2 deletionsaddons/sales_team/data/sales_team_data.xml
- addons/sales_team/models/crm_team.py 11 additions, 17 deletionsaddons/sales_team/models/crm_team.py
- addons/sales_team/tests/test_default_team.py 7 additions, 2 deletionsaddons/sales_team/tests/test_default_team.py
- addons/sales_team/views/crm_team_views.xml 1 addition, 0 deletionsaddons/sales_team/views/crm_team_views.xml
Loading
Please register or sign in to comment