Vidhin Mehta (OpenERP) has proposed merging
lp:~openerp-dev/openerp-web/trunk-bug-877995-vme into lp:openerp-web.
Requested reviews:
OpenERP R&D Web Team (openerp-dev-web)
Related bugs:
Bug #877995 in OpenERP Web: "Tree button in BOM Structure screen is not
working"
https://bugs.launchpad.net/openerp-web/+bug/877995
For more details, see:
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-bug-877995-vme/+merge/83140
Hello,
Fixed code for "Tree button in BOM Structure screen is not working"
issue, when
first field is invisible.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-bug-877995-vme/+merge/83140
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openerp-web/trunk-bug-877995-vme.
=== modified file 'addons/web/static/src/xml/base.xml'
--- addons/web/static/src/xml/base.xml 2011-11-23 10:05:42 +0000
+++ addons/web/static/src/xml/base.xml 2011-11-23 11:25:28 +0000
@@ -534,16 +534,17 @@
t-att-id="'treerow_' + record.id"
t-att-data-id="record.id" t-att-data-level="level + 1">
<t t-set="children" t-value="record[children_field]"/>
- <t t-set="has_children" t-value="children and children.length"/>
+ <t t-set="class" t-value="children and children.length ? 'treeview-tr' : 'treeview-td'"/>
<td t-foreach="fields_view" t-as="field"
t-if="!field.attrs.modifiers.tree_invisible"
t-att-data-id="record.id"
t-att-style="color_for(record) + (!field_index ? 'background-position: ' + 19*level + 'px; padding-left: ' + 19*level + 'px;' : '')"
- t-att-class="!field_index and has_children ? 'treeview-tr' : 'treeview-td'">
+ t-att-class="class">
<span t-if="!field.attrs.modifiers.invisible">
<t t-esc="render(record[field.attrs.name], fields[field.attrs.name])" />
</span>
+ <t t-set="class" t-value="'treeview-td'"/>
</td>
</tr>
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp