summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
diff options
context:
space:
mode:
authorGoffin Simon <sig@odoo.com>2018-03-01 16:37:59 +0100
committerGoffin Simon <sig@odoo.com>2018-03-05 14:40:28 +0100
commitb771dd8a5cb9fdc37b9ed3e071c00ac9404d9074 (patch)
tree50f2d87d0cb0025ae173828823c41b425fb6aa09 /addons/web/static/src/xml
parent7c708bc004adc6b3cfcc4c0c8c26e701e7b387d0 (diff)
[FIX] web: Impossible to delete a line in a tree view
When creating a record in a form view of model A, and adding a line in an inside tree view of model B(with a One2Many from A to B), it was impossible to delete a wrong line even if the record has not been saved because the user had no right to delete a record on model B. opw:1819099
Diffstat (limited to 'addons/web/static/src/xml')
-rw-r--r--addons/web/static/src/xml/base.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index d76dd44f469..76230befea5 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -381,7 +381,8 @@
t-att-data-field="column.id"
><t t-raw="render_cell(record, column)"/></td>
</t>
- <td t-if="options.deletable" class='o_list_record_delete'>
+ <!-- DO NOT FORWARDPORT, ONLY FOR SAAS-15 -->
+ <td t-if="options.deletable || typeof record.attributes.id !== 'number'" class='o_list_record_delete'>
<span name="delete" class="fa fa-trash-o"/>
</td>
</tr>