Styles and options for list columns as for whole rows

Bug #1161386 reported by Daniel Hammerschmidt on 2013-03-28
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP R&D Web Team

Bug Description

In the view architecture for tree views the <tree>-tag may have the attributes "colors", "fonts" and "options". This is good to show e.g. the state of the whole business object e.g. if it is canceled or payed.

In some cases I want to format a single column on a specific condition. E.g. gray out the whole record if it is canceled and underline the name if the partner's name is not the company's name. Furthermore I want to style the background (and maybe more).

Thanks to the code design in view_list.js this is not to hard to implement. We need a new MixIn some copy'n'paste.

See attachment for details.

Btw.: In instance.web.list.Columns:init() I use _.omit() from underscore.js 1.4 which might be replaced by
  if (attrs.options !== undefined) { del attrs.options; }

Hello Daniel,

I was feeling like GTK-client behavior during check your Issue. It's good Implementation as per the usability point of view.

But this is not a bug but rather than it's your suggestion to Impalement this things.
So we can consider this is as your suggestion and considering it as a "Wishlist". and Let the team to take decision on it.

Thanks for the reporting!

Changed in openerp-web:
status: New → Confirmed
importance: Undecided → Wishlist
assignee: nobody → OpenERP R&D Web Team (openerp-dev-web)
Daniel Hammerschmidt (redneck) wrote :

Hello Amit,

I pushed two branches for this issue. The first with the main changes, which depends on underscore 1.4 (not contained) but has a comment for older versions (i.e. 1.3.1). The second branch contains underscore.js 1.4.4 and may be merged into the first.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers