Merge lp:~elbati/openobject-addons/7.0_fix_action_rule_processing into lp:openobject-addons/7.0
Proposed by
Lorenzo Battistini
Status: | Needs review |
---|---|
Proposed branch: | lp:~elbati/openobject-addons/7.0_fix_action_rule_processing |
Merge into: | lp:openobject-addons/7.0 |
Diff against target: |
13 lines (+2/-1) 1 file modified
base_action_rule/base_action_rule.py (+2/-1) |
To merge this branch: | bzr merge lp:~elbati/openobject-addons/7.0_fix_action_rule_processing |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Lorenzo Battistini (community) | Abstain | ||
Leonardo Pistone (community) | Abstain | ||
Alexandre Fayolle - camptocamp (community) | Abstain | ||
OpenERP Core Team | Pending | ||
Review via email: mp+169191@code.launchpad.net |
To post a comment you must log in.
Unmerged revisions
- 9193. By Lorenzo Battistini
-
[FIX] rule processing time
I admire the way you did use the ternary operator but wouldn't it be more readable that way?
if last_run and (last_run <= action_dt < now)
or not last_run and (action_dt < now):
I think using it in a comparison make things a bit confusing
Or maybe just add indentation to the second line to keep clear it is still the comparison.