Merge lp://staging/~openerp-dev/openobject-client-web/6.0-opw-593396-msh into lp://staging/openobject-client-web
Status: | Needs review |
---|---|
Proposed branch: | lp://staging/~openerp-dev/openobject-client-web/6.0-opw-593396-msh |
Merge into: | lp://staging/openobject-client-web |
Diff against target: |
26 lines (+8/-1) 1 file modified
addons/view_graph/widgets/_graph.py (+8/-1) |
To merge this branch: | bzr merge lp://staging/~openerp-dev/openobject-client-web/6.0-opw-593396-msh |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Xavier ALT | Pending | ||
Review via email: mp+169107@code.staging.launchpad.net |
Description of the change
Hello,
Fixed the issue of month sorting on graph axis, if the field type is selection type then it should not be sorted alphabetically instead it should be displayed as it has been defined in code because selection field generally have ordered data like state, month etc. if there is state then it should be displayed as it is defined in the code, generally state defined in order of process which going to execute like draft, then confirm etc.
Demo:- Purchase -> Purchase Dashboard -> see the graph view x-axis has month, month comes in alphabetical order, it should be come in the order it is defined, also state field should also come in ther order it is defined(generally selection field have the data which is in particular order say for example state, it is defined in the code according to its execution sequence in process 1. draft, 2. confirm, 3. done).
So restrict alphabetical sorting on selection field for graph view axis.
Thanks.
Unmerged revisions
- 4914. By Mohammed Shekha<email address hidden>
-
[FIX]Fixed the issue of month sorting on graph axis, if the field type is selection type then it should not be sorted alphabetically instead it should be displayed as it has been defined in code because selection field generally have ordered data like state, month etc. if there is state then it should be displayed as it is defined in the code, generally state defined in order of process which going to execute like draft, then confirm etc.