summaryrefslogtreecommitdiff
path: root/addons/board/static/src
diff options
context:
space:
mode:
authorFabien Meghazi <fme@openerp.com>2013-02-21 23:13:14 +0100
committerFabien Meghazi <fme@openerp.com>2013-02-21 23:13:14 +0100
commit864543d0b8ad0d0cc60ab93bef2995be071f01ad (patch)
tree4a545f54a1cb3d7d9eff5bf66288752e0d53e2fa /addons/board/static/src
parent73b99d09323eac64b9e8318efd40804db699d895 (diff)
[FIX] IE9: traceback in Reporting when changing type of view
lp bug: https://launchpad.net/bugs/1091715 fixed bzr revid: fme@openerp.com-20130221221314-0n1q4k2c373yzrc3
Diffstat (limited to 'addons/board/static/src')
-rw-r--r--addons/board/static/src/js/dashboard.js4
-rw-r--r--addons/board/static/src/xml/board.xml2
2 files changed, 3 insertions, 3 deletions
diff --git a/addons/board/static/src/js/dashboard.js b/addons/board/static/src/js/dashboard.js
index 7e0557fc197..bd9625a4fa8 100644
--- a/addons/board/static/src/js/dashboard.js
+++ b/addons/board/static/src/js/dashboard.js
@@ -303,9 +303,9 @@ instance.web.form.DashBoard = instance.web.form.FormWidget.extend({
instance.web.form.DashBoardLegacy = instance.web.form.DashBoard.extend({
renderElement: function() {
if (this.node.tag == 'hpaned') {
- this.node.attrs.style = '2-1';
+ this.node.attrs.layout = '2-1';
} else if (this.node.tag == 'vpaned') {
- this.node.attrs.style = '1';
+ this.node.attrs.layout = '1';
}
this.node.tag = 'board';
_.each(this.node.children, function(child) {
diff --git a/addons/board/static/src/xml/board.xml b/addons/board/static/src/xml/board.xml
index 03ede793036..9e1f15562a3 100644
--- a/addons/board/static/src/xml/board.xml
+++ b/addons/board/static/src/xml/board.xml
@@ -10,7 +10,7 @@
<span> Change Layout </span>
</button>
</div>
- <table t-att-data-layout="node.attrs.style" t-attf-class="oe_dashboard oe_dashboard_layout_#{node.attrs.style}" cellspacing="0" cellpadding="0" border="0">
+ <table t-att-data-layout="node.attrs.layout" t-attf-class="oe_dashboard oe_dashboard_layout_#{node.attrs.layout}" cellspacing="0" cellpadding="0" border="0">
<tr>
<td t-foreach="node.children" t-as="column" t-if="column.tag == 'column'"
t-att-id="view.element_id + '_column_' + column_index" t-attf-class="oe_dashboard_column index_#{column_index}">