summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js
diff options
context:
space:
mode:
authornie <nie@odoo.com>2021-02-23 09:04:24 +0000
committernie <nie@odoo.com>2021-02-23 10:23:57 +0000
commit9c5f2c8b18770c3810a9d657970d44f3cf9e6d15 (patch)
treeafc731ffd33c35bd81dfe30565d0a6ff4ae95bf7 /addons/web_editor/static/src/js
parente0ae3c6270467985a4d56c902ef109ffc5513b13 (diff)
[FIX] uom: prevent deleting referenced UoM
Steps: - Install Inventory - Make sure Units of Measure are activated in the settings - Go to Inventory > Configuration > Units of Measure > UoM - Delete m³ - Go to Products > Products - Click any product Bug: Traceback here: https://github.com/odoo/odoo/blob/5324f7a6aa757ff6a728258ea1877ded4a6f86cd/addons/product/models/product_template.py#L315 ValueError: External ID not found in the system: uom.product_uom_cubic_meter Explanation: Products refer to UoM since this commit: https://github.com/odoo/odoo/commit/2c079fcd107caec3a25e2a78d4d0e5af1d8237da Deleting a referenced UoM will most probably break things in the future. This commit prevents users from deleting UoM that are referenced by an external ID. opw:2457057 closes odoo/odoo#66656 Signed-off-by: backspac <backspac@users.noreply.github.com>
Diffstat (limited to 'addons/web_editor/static/src/js')
0 files changed, 0 insertions, 0 deletions