~openerp-dev/openerp-web/saas-3-fixes-tde

« back to all changes in this revision

Viewing changes to addons/web/static/src/xml/base.xml

  • Committer: Thibault Delavallée
  • Date: 2014-05-05 14:51:38 UTC
  • Revision ID: tde@openerp.com-20140505145138-x9iwzp74ha2q0bp2
[FIX] web: view_form: fixed effective_readonly behavior of the
binary multi files widget. The option to add an attachment should
be available only in edit mode.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1336
1336
<t t-name="FieldBinaryFileUploader">
1337
1337
    <div t-att-style="widget.node.attrs.style" t-attf-class="oe_fileupload #{widget.node.attrs.class ? widget.node.attrs.class :''}">
1338
1338
        <div class="oe_placeholder_files"/>
1339
 
        <div class="oe_add" t-if="!widget.get('effective_readonly')">
 
1339
        <div class="oe_add">
1340
1340
            <!-- uploader of file -->
1341
1341
            <button class="oe_attach"><span class="oe_e">'</span></button> 
1342
1342
            <span class='oe_attach_label'><t t-esc="widget.string"/></span>