diff options
| author | Xavier Morel <xmo@openerp.com> | 2011-11-23 10:33:13 +0100 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2011-11-23 10:33:13 +0100 |
| commit | d00008c994e9d9fca3e769ddadad139f52c28617 (patch) | |
| tree | 3a063b6c505cf248a01408991e9b5b4251693c76 /addons/web/static/src/xml/base.xml | |
| parent | 1ca5b10918ff2c2bc81a4cad616bd6fcea81eef9 (diff) | |
[FIX] if necessary, add padding when rendering a given row in an editable list.
otherwise there are columns missing, and the list looks broken
lp bug: https://launchpad.net/bugs/893055 fixed
bzr revid: xmo@openerp.com-20111123093313-8qair3pai8ms4ch7
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index fb7ccdf7d8e..aceaec1951e 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1369,6 +1369,18 @@ <button type="button" class="oe_formopenpopup-form-save">Save</button> <button type="button" class="oe_formopenpopup-form-close">Cancel</button> </t> +<t t-extend="ListView.row"> + <!-- adds front & back padding to row being rendered after edition, if + necessary (if not selectable add front padding and if not deletable + add back padding), otherwise the row being added is missing columns + --> + <t t-jquery="> :first" t-operation="before"> + <td t-if="edited and !options.selectable" class="oe-listview-padding"/> + </t> + <t t-jquery="> :last" t-operation="after"> + <td t-if="edited and !options.deletable" class="oe-listview-padding"/> + </t> +</t> <t t-name="ListView.row.frame" t-extend="WidgetFrame"> <t t-jquery="tr"> $(document.createElement('t')) |
