[FIX] base_action_rule: define patched methods inside a function to fix their closure.
Merge branch '8.0' of https://github.com/odoo/odoo into 8.0-linux64