Skip to content

Commit

Permalink
Prefer attribute assignment over setattr
Browse files Browse the repository at this point in the history
  • Loading branch information
lasley committed Nov 18, 2016
1 parent f00256e commit a5323a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api_foreach/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@


def _patch_api(*arg, **kwargs):
setattr(odoo.api, 'foreach', foreach)
odoo.api.foreach = foreach

0 comments on commit a5323a6

Please sign in to comment.