mirror of
https://bitbucket.org/presik/trytonpsk-hotel.git
synced 2023-12-14 07:52:52 +01:00
Fix
This commit is contained in:
parent
656a4382a3
commit
81f2572b9b
5
folio.py
5
folio.py
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue