diff options
| author | Martin Geubelle <mge@odoo.com> | 2017-04-25 16:03:52 +0200 |
|---|---|---|
| committer | Martin Geubelle <mge@odoo.com> | 2017-04-27 16:56:47 +0200 |
| commit | 5ec62a0b31a5c8a03dfd527500189e469bc9c752 (patch) | |
| tree | 8b217c24c69cfe7f46743b0827ba72767c384a5d /addons/mrp/static/src/xml/mrp.xml | |
| parent | 67d7cbd06bbffaba6687dda9d4c883529d645e56 (diff) | |
[FIX] mrp: reintroduce pdf_viewer field widget
This field widget has been adapted to the new views.
This commit also introduces some tests.
Diffstat (limited to 'addons/mrp/static/src/xml/mrp.xml')
| -rw-r--r-- | addons/mrp/static/src/xml/mrp.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mrp/static/src/xml/mrp.xml b/addons/mrp/static/src/xml/mrp.xml index 7f86a6a20dd..98e0ea126ed 100644 --- a/addons/mrp/static/src/xml/mrp.xml +++ b/addons/mrp/static/src/xml/mrp.xml @@ -2,7 +2,7 @@ <templates id="template" xml:space="preserve"> <t t-name="FieldPdfViewer"> <div class="o_form_field_pdfviewer"> - <div t-if="!widget.get('effective_readonly')" class="o_form_pdf_controls mt8"> + <div t-if="widget.mode !== 'readonly'" class="o_form_pdf_controls mt8"> <span class="o_form_binary_progress">Uploading...</span> <button type="button" class="btn btn-sm btn-primary o_select_file_button" title="Select">Upload your file</button> <button class="btn btn-sm btn-default fa fa-pencil o_select_file_button" title="Select" type="button"></button> |
