Merge lp:~openerp-dev/openobject-addons/7.0-opw-596732DashboardActionDomainEvaluation-msh into lp:openobject-addons/7.0
Status: | Needs review |
---|---|
Proposed branch: | lp:~openerp-dev/openobject-addons/7.0-opw-596732DashboardActionDomainEvaluation-msh |
Merge into: | lp:openobject-addons/7.0 |
Diff against target: |
73 lines (+29/-5) 1 file modified
board/static/src/js/dashboard.js (+29/-5) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-addons/7.0-opw-596732DashboardActionDomainEvaluation-msh |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mohammed Shekha(Open ERP) (community) | Disapprove | ||
Naresh(OpenERP) | Pending | ||
Martin Trigaux (OpenERP) | Pending | ||
Review via email: mp+215357@code.launchpad.net |
Description of the change
Hello,
Fixed the issue of add to dashboard and evaluated domain, while adding dashboard we should add row domain as it is and should evaluate it when dashboard action is loaded otherwise dynamic domain value like context.today etc will not work, instead evaluated date is applied and dashboard will not give proper result.
Demo:- Open any tree view which has Filter based on date/relative_
To test this issue I added a filter in search view of Opportuity something like,
<filter icon="terp-
Reason: While Adding view into dashbaord, evaluated domain and context stored in the dashboard action, domain and context should be stored as it is and when action is loaded at that time action domain and context should be evaluated.
Solution: Added a domain as it is without evaluating it while Adding view into dashboard and evaluated that domain while dashboard actions are loading, added a toJSON method in instance.
Thanks.
Unmerged revisions
- 9974. By Mohammed Shekha(Open ERP)
-
[FIX]Re-fixed the issue of add to dashboard and evaluated domain, while adding dashboard we should add row domain as it is and should evaluate it when dashboard action is loaded otherwise dynamic domain value like context.today etc will not work, instead evaluated date is applied and dashboard will not give proper result.