Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

Commit

Permalink
[UPD] update post init hook
Browse files Browse the repository at this point in the history
  • Loading branch information
nhatnm0612 committed Dec 8, 2023
1 parent f55332c commit 28bcbe1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions spp_registrant_import/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
def post_init_hook(cr, registry):
env = api.Environment(cr, SUPERUSER_ID, {})
contact_model = env.ref("base.model_res_partner")
registrant_id_field = env.ref(
"spp_registrant_import.field_res_partner__spp_id"
)
registrant_id_field = env.ref("spp_registrant_import.field_res_partner__spp_id")
contact_import_match = env["spp.import.match"].search(
[("model_id", "=", contact_model.id)]
)
Expand Down

0 comments on commit 28bcbe1

Please sign in to comment.