summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorqmo-odoo <qmo@odoo.com>2019-07-30 11:29:30 +0000
committerqmo-odoo <qmo@odoo.com>2019-07-31 06:01:39 +0000
commitd3291207efb524306cd129c7c8d1db90c49f09c5 (patch)
treee4b098c0831cfa8ab4655f0e1af75aa2b3c4830b /addons/web/static/src/js/fields/basic_fields.js
parent0d2be38333d8fe5a4cbef4161ac92cac00e47eb1 (diff)
[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>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions