[UPD] Update fields layout

This commit is contained in:
Pablo
2019-03-28 16:57:02 +01:00
parent c2922f6cfa
commit 3d34ab2f2c

View File

@@ -7,27 +7,18 @@
<field name="arch" type="xml">
<xpath expr="//form/group[last()]" position="after">
<!-- Availability Fields -->
<group col="3" colspan="3" attrs="{'invisible':[('section', '!=', 'avail')]}">
<table class="oe_form_group">
<thead>
<th width="12%"></th>
<th></th>
</thead>
<tbody>
<tr class="oe_form_group_row">
<td class="oe_form_group_cell oe_form_group_cell_label"><field name="change_max_avail" /> <strong> Max. Avail.</strong></td>
<td class="oe_form_group_cell" colspan="3"><field name="max_avail" attrs="{'readonly':[('change_max_avail', '=', False)]}" /></td>
</tr>
<tr class="oe_form_group_row">
<td class="oe_form_group_cell oe_form_group_cell_label"><field name="change_quota" /> <strong> Quota</strong></td>
<td class="oe_form_group_cell" colspan="3"><field name="quota" attrs="{'readonly':[('change_quota', '=', False)]}" /></td>
</tr>
<tr class="oe_form_group_row">
<td class="oe_form_group_cell oe_form_group_cell_label"><field name="change_no_ota" /> <strong> No OTA</strong></td>
<td class="oe_form_group_cell"><field name="no_ota" attrs="{'readonly':[('change_no_ota', '=', False)]}" /></td>
</tr>
</tbody>
</table>
<group col="8" colspan="8" attrs="{'invisible':[('section', '!=', 'avail')]}">
<field name="change_max_avail" string=""/>
<field name="max_avail"
attrs="{'readonly':[('change_max_avail', '=', False)]}" />
<field name="change_quota" string=""/>
<field name="quota"
attrs="{'readonly':[('change_quota', '=', False)]}" />
<field name="change_no_ota" string=""/>
<field name="no_ota"
attrs="{'readonly':[('change_no_ota', '=', False)]}" />
</group>
</xpath>
</field>