mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP] switch_property_menu arranged alphabetically
Sort the properties selection menu, alphabetically and not by ID.
This commit is contained in:
committed by
Darío Lodeiros
parent
a5c2ee2039
commit
d342073ef9
@@ -51,6 +51,7 @@ odoo.define("web.SwitchPmsMenu", function (require) {
|
||||
});
|
||||
this.user_pms_properties =
|
||||
session.user_pms_properties.allowed_pms_properties;
|
||||
this.user_pms_properties.sort(function(a,b){return a[1] > b[1] ? 1 : a[1] < b[1] ?-1 :0});
|
||||
this.current_pms_property = this.allowed_pms_property_ids[0];
|
||||
this.current_pms_property_name = _.find(
|
||||
session.user_pms_properties.allowed_pms_properties,
|
||||
|
||||
Reference in New Issue
Block a user