[IMP] survey: invisible field survey_id if empty

bzr revid: chm@openerp.com-20130306141135-o34g9dc4qf2eeghx
This commit is contained in:
Christophe Matthieu
2013-03-06 15:11:35 +01:00
parent d27b31ab37
commit 5fb7d840ae
2 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -80,7 +80,6 @@
.openerp .oe_form .oe_survey_answer .matrix_of_choices_only_multi_ans label {
min-width: 240px;
}
.openerp .oe_popup_form .oe_form_sheet.oe_survey,
.openerp .oe_popup_form .oe_form_sheetbg.oe_survey {
.openerp .oe_popup_form .oe_form_sheet.oe_survey {
padding-top: 0;
}
+2 -2
View File
@@ -190,7 +190,7 @@
<field name="arch" type="xml">
<form string="Survey Page" version="7.0">
<sheet class="oe_survey">
<group col="2" invisible="context.get('edit')">
<group col="2" invisible="context.get('edit')" attrs="{'invisible': [('survey_id','!=',None)]}">
<field name="survey_id"/>
</group>
<label for="title" class="oe_edit_only"/>
@@ -287,7 +287,7 @@
<field name="in_visible_menu_choice" invisible="1"/>
<field name="in_visible_answer_type" invisible="1"/>
<group colspan="4" col="1">
<group col="2" invisible="context.get('edit')">
<group col="2" invisible="context.get('edit')" attrs="{'invisible': [('page_id','!=',None)]}">
<field name="tot_resp"/>
<field name="survey_id" readonly="1"/>
<field name="page_id" on_change="on_change_page_id(page_id)"/>