Browse Source

fix pep8 E731

(do not assign a lambda, use a def)
pull/90/head
Alexandre Fayolle 10 years ago
parent
commit
6bac6d1259
  1. 5
      base_partner_merge/base_partner_merge.py

5
base_partner_merge/base_partner_merge.py

@ -388,8 +388,9 @@ class MergePartnerAutomatic(orm.TransientModel):
" merge several contacts linked to existing Journal "
"Items."))
call_it = lambda function: function(cr, uid, src_partners,
dst_partner, context=context)
def call_it(function):
function(cr, uid, src_partners,
dst_partner, context=context)
call_it(self._update_foreign_keys)
call_it(self._update_reference_fields)

Loading…
Cancel
Save