Merge lp:~openerp-dev/openobject-server/7.0-opw-603382-ado into lp:openobject-server/7.0
Proposed by
Amit Dodiya (OpenERP)
Status: | Needs review |
---|---|
Proposed branch: | lp:~openerp-dev/openobject-server/7.0-opw-603382-ado |
Merge into: | lp:openobject-server/7.0 |
Diff against target: |
38 lines (+20/-1) 1 file modified
openerp/addons/base/ir/ir_ui_menu.py (+20/-1) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-server/7.0-opw-603382-ado |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Amit Dodiya (OpenERP) (community) | Needs Resubmitting | ||
Olivier Dony (Odoo) | Needs Fixing | ||
Naresh(OpenERP) | Pending | ||
Review via email: mp+203296@code.launchpad.net |
Description of the change
Hello,
[FIX] ir_ui_menu: while adding domain value using 'time.strftime(
Steps to reproduce:
1). Goto: Setting-> Technical-> Action-> Window Action
2). Now search for 'Quotation' you will find some result, now open the action which has tree view ref. added
3). add one condition on existing domain like 'date_order'
Regards,
Amit
To post a comment you must log in.
Unmerged revisions
- 5215. By Amit Dodiya (OpenERP)
-
[FIX] ir_ui_menu: while adding domain value using python time in domain of window action it gives traceback
This is not a complete fix. If you want to support most of the custom action domains that are supported on the client-side, you need to provide the same evaluation context (look at the way contexts and domains are evaluated on the client-side). You will need datetime.datetime, relativedelta, timedelta, etc.
In any case it would be a good idea to put a try/except around this eval, and fallback to having an empty `dom` if the eval fails. At least this will avoid breaking the need_action system too easily.
Thanks!