diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-07-31 19:11:33 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-07-31 19:11:33 +0200 |
| commit | 96de6756ab9794ad30da7965ccb723e3c44cd343 (patch) | |
| tree | 06d691681744758e383188184ff72117437d6d67 /addons | |
| parent | 11a0dd58a7c6f874388f06d2ece33cb1237f79d1 (diff) | |
| parent | 42e5b322af166c62f82f713087cb3c2a877965fe (diff) | |
[MERGE] forward port branch saas-15 up to 42e5b322af1
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/im_livechat/static/src/js/im_livechat.js | 2 | ||||
| -rw-r--r-- | addons/website_sale/models/website.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/addons/im_livechat/static/src/js/im_livechat.js b/addons/im_livechat/static/src/js/im_livechat.js index e9cc424f2a2..7de6629f24e 100644 --- a/addons/im_livechat/static/src/js/im_livechat.js +++ b/addons/im_livechat/static/src/js/im_livechat.js @@ -315,7 +315,7 @@ var Feedback = Widget.extend({ // only display textearea if bad smiley selected var close_chat = false; - if (this.rating === 0) { + if (this.rating === 1) { this.$('.o_livechat_rating_reason').show(); } else { this.$('.o_livechat_rating_reason').hide(); diff --git a/addons/website_sale/models/website.py b/addons/website_sale/models/website.py index da843a838f3..ad214efa38e 100644 --- a/addons/website_sale/models/website.py +++ b/addons/website_sale/models/website.py @@ -60,8 +60,8 @@ class Website(models.Model): if not pricelists: # no pricelist for this country, or no GeoIP pricelists |= all_pl.filtered(lambda pl: not show_visible or pl.selectable or pl.id in (current_pl, order_pl)) - else: - pricelists |= all_pl.filtered(lambda pl: not show_visible and pl.sudo().code) + if not show_visible and not country_code: + pricelists |= all_pl.filtered(lambda pl: pl.sudo().code) # This method is cached, must not return records! See also #8795 return pricelists.ids |
