diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-12-05 14:21:11 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-12-05 14:21:11 +0100 |
| commit | e9c2dcd28dd6e65a3d71300612a9b7d14d6731d6 (patch) | |
| tree | 68bd6be1000704a9bae357182579ae7d984d0392 /addons | |
| parent | 2a86e9245c91d6564257aad4ed69673576f10918 (diff) | |
| parent | dd7ee15fb84e60734497884fb0306a701e38e247 (diff) | |
[MERGE] forward port branch 10.0 up to dd7ee15fb84
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/auth_oauth/data/auth_oauth_data.xml | 2 | ||||
| -rw-r--r-- | addons/point_of_sale/static/src/js/db.js | 2 | ||||
| -rw-r--r-- | addons/sales_team/models/crm_team.py | 2 | ||||
| -rw-r--r-- | addons/web/static/src/js/views/search_view.js | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/addons/auth_oauth/data/auth_oauth_data.xml b/addons/auth_oauth/data/auth_oauth_data.xml index 1b1ff532ae4..8417c9c4b2d 100644 --- a/addons/auth_oauth/data/auth_oauth_data.xml +++ b/addons/auth_oauth/data/auth_oauth_data.xml @@ -16,7 +16,7 @@ <field name="auth_endpoint">https://www.facebook.com/dialog/oauth</field> <field name="scope">public_profile,email</field> <field name="validation_endpoint">https://graph.facebook.com/me</field> - <field name="data_endpoint"></field> + <field name="data_endpoint">https://graph.facebook.com/me?fields=id,name,email</field> <field name="css_class">fa fa-facebook-square</field> <field name="body">Log in with facebook</field> </record> diff --git a/addons/point_of_sale/static/src/js/db.js b/addons/point_of_sale/static/src/js/db.js index b70b3517bf2..f777dc27324 100644 --- a/addons/point_of_sale/static/src/js/db.js +++ b/addons/point_of_sale/static/src/js/db.js @@ -301,7 +301,7 @@ var PosDB = core.Class.extend({ search_partner: function(query){ try { query = query.replace(/[\[\]\(\)\+\*\?\.\-\!\&\^\$\|\~\_\{\}\:\,\\\/]/g,'.'); - query = query.replace(' ','.+'); + query = query.replace(/ /g,'.+'); var re = RegExp("([0-9]+):.*?"+query,"gi"); }catch(e){ return []; diff --git a/addons/sales_team/models/crm_team.py b/addons/sales_team/models/crm_team.py index c4cb8b74301..53ae77db20d 100644 --- a/addons/sales_team/models/crm_team.py +++ b/addons/sales_team/models/crm_team.py @@ -24,7 +24,7 @@ class CrmTeam(models.Model): def _get_default_team_id(self, user_id=None): if not user_id: user_id = self.env.uid - company_id = self.sudo(user_id).company_id.id + company_id = self.sudo(user_id).env.user.company_id.id team_id = self.env['crm.team'].sudo().search([ '|', ('user_id', '=', user_id), ('member_ids', '=', user_id), '|', ('company_id', '=', False), ('company_id', 'child_of', [company_id]) diff --git a/addons/web/static/src/js/views/search_view.js b/addons/web/static/src/js/views/search_view.js index 65dbb4557e7..d11af68c107 100644 --- a/addons/web/static/src/js/views/search_view.js +++ b/addons/web/static/src/js/views/search_view.js @@ -337,7 +337,7 @@ var SearchView = View.extend({ }, set_default_filters: function () { var self = this, - default_custom_filter = this.$buttons && this.favorite_menu.get_default_filter(); + default_custom_filter = this.$buttons && this.favorite_menu && this.favorite_menu.get_default_filter(); if (!self.options.disable_custom_filters && default_custom_filter) { return this.favorite_menu.toggle_filter(default_custom_filter, true); } |
