qsm-odoo bddac4b602 [FIX] base: allow assets names to start by another assets name
Before this commit, if an assets was named 'assets_hello_world' and
another one was named 'assets_hello' and that the first one was included
in the DOM before the second one, trying to load the first one would
result in a 404.

Indeed, this is what would have happened:

1) Render the `t-call-assets="assets_hello_world"` directive ->
   compute the assets bundle then return a script with an url reaching
   that bundle. Do this after having deleted the previous bundle
   computation if any.

2) Render the `t-call-assets="assets_hello"` directive ->
   compute the assets bundle then return a script with an url reaching
   that bundle. Do this after having deleted the previous bundle
   computation if any.

The problem is about "deleting the previous bundle computation" which
was done... by deleting all attachments starting by the bundle name.
This commit solves that by deleting the exact matches.

Part of https://github.com/odoo/odoo/pull/32181
task-1961045
2019-06-04 07:57:20 +00:00
2019-03-20 14:59:50 +00:00
…
2018-10-09 13:44:38 +00:00
…
2015-09-08 17:58:38 +02:00
2019-03-13 15:10:02 +00:00

Build Status Tech Doc Help Nightly Builds

Odoo

Odoo is a suite of web based open source business apps.

The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, Purchase Management, ...

Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.

Getting started with Odoo

For a standard installation please follow the Setup instructions from the documentation.

Then follow the developer tutorials

S
Description
No description provided
Readme LGPL-3.0
3.4 GiB
Languages
Python 49.6%
JavaScript 47.8%
SCSS 2%
CSS 0.3%
HTML 0.2%