This commit is contained in:
oscar alvarez 2022-10-11 17:42:15 -05:00
parent 656a4382a3
commit 81f2572b9b

View file

@ -949,6 +949,7 @@ class FolioGuest(ModelSQL, ModelView):
subdivision = v.pop('subdivision', None)
city = v.pop('city', None)
v['type_person'] = 'persona_natural'
_ = v.pop('tags')
if not parties:
v['contact_mechanisms'] = [
('create', [
@ -964,9 +965,7 @@ class FolioGuest(ModelSQL, ModelView):
'city_code': city,
}])
]
print(' vvvvvvvvvvv ...', v)
# FIXME add tags to party
_ = v.pop('tags')
# FIXME add tags to party and remoce this lines
party, = Party.create([v])
else:
Party.write(parties, v)