diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-03-19 14:09:52 +0100 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-03-19 14:09:52 +0100 |
| commit | 993c99a41449e508554c4e33342ef484020d8c31 (patch) | |
| tree | b4a52a22c4804b0b38a474dd60f25e866ddc1574 /addons/web/static/src/xml | |
| parent | e9ff845347f177096ca05f3387b1174a41f4e52e (diff) | |
[imp] made reference readonly-able
bzr revid: nicolas.vanhoren@openerp.com-20120319130952-k1921f9za3duezyn
Diffstat (limited to 'addons/web/static/src/xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index a7c8d427440..5d8aa5c704b 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1057,7 +1057,7 @@ </table> </t> <t t-name="FieldMany2One_readonly"> - <a href="#" class="oe_form_uri"/> + <a href="#" class="oe_form_uri"/> </t> <t t-name="FieldMany2One.context_menu"> <ul> @@ -1074,14 +1074,19 @@ </ul> </t> <t t-name="FieldReference"> - <table t-attf-class="oe_form_field_#{widget.type}" border="0" cellpadding="0" cellspacing="0" class="oe_frame oe_forms"> - <tr> - <td t-attf-class="oe_form_frame_cell oe_form_selection oe_form_view_reference_selection"> - </td> - <td t-attf-class="oe_form_frame_cell oe_form_many2one oe_form_view_reference_m2o" nowrap="true" style="display: none"> - </td> - </tr> - </table> + <t t-if="!widget.get('effective_readonly')"> + <table t-attf-class="oe_form_field_#{widget.type}" border="0" cellpadding="0" cellspacing="0" class="oe_frame oe_forms"> + <tr> + <td t-attf-class="oe_form_frame_cell oe_form_selection oe_form_view_reference_selection"> + </td> + <td t-attf-class="oe_form_frame_cell oe_form_many2one oe_form_view_reference_m2o" nowrap="true" style="display: none"> + </td> + </tr> + </table> + </t> + <t t-if="widget.get('effective_readonly')"> + <a href="#" class="oe_form_uri"/> + </t> </t> <t t-name="FieldBoolean"> <div t-attf-class="oe_form_field_#{widget.type}"> |
