summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic
diff options
context:
space:
mode:
authorRomain Derie <rde@odoo.com>2020-02-10 13:11:23 +0000
committerRomain Derie <rde@odoo.com>2020-02-12 07:53:51 +0000
commit968638aa1a158d24789ba6f0374436c74f807f2e (patch)
treeda36f2cd74145ef0f6db31339000ed45f27f9e2f /addons/web/static/src/js/views/basic
parenta0e2c8a7658161c1c96eb863f652bd4c926238b0 (diff)
[FIX] website: prevent undefined in publish toastr
d92f76592c19 introduced a toastr when publishing a record. It was designed for the topbar publishing toggle button, but some other templates ended up also using that feature. As those templates were missing `data-description` which contains the model business name, it would show `You've published your undefined`. This is only related to a very few places having a publish button inside the page. This commit fixed that by ensuring every publish button template have the necessary code. Also, a fallback is added in case tha `data-description` is missing somehow. task-2191735 closes odoo/odoo#45141 X-original-commit: 4ab6e36b739060eb16e97eac502fd087a072abf3 Signed-off-by: Romain Derie <rdeodoo@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions