[FIX] prevent drop when no record id is found

This commit is contained in:
Adrià Gil Sorribes
2020-03-18 15:32:30 +01:00
parent f35b49ac57
commit bb1fd8703a
6 changed files with 127 additions and 87 deletions

View File

@@ -1,14 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<template>
<t t-name="web_drop_target.drop_overlay">
<div class="o_drag_over">
<div class="o_drag_over_content">
<div>
<i class="fa fa-file-o fa-5x" aria-hidden="true"></i>
<i class="fa fa-file-o fa-5x" aria-hidden="true" />
</div>
<div>
<h2>Drop your files here</h2>
<t t-if="id">
<h2>Drop your files here</h2>
</t>
<t t-else="">
<h2>Please save the record before dropping a file</h2>
</t>
</div>
</div>
</div>