mirror of
https://github.com/NaN-tic/tryton-upgrades.git
synced 2023-12-14 03:32:55 +01:00
In migration_properties.py, do not crash if value is None.
This commit is contained in:
parent
7bbe179d3d
commit
774a293e25
|
@ -132,7 +132,8 @@ with Transaction().start(dbname, 0, context=context):
|
|||
value = get_property_value(field, company.id, default=False)
|
||||
if not value:
|
||||
continue
|
||||
setattr(partyConfig, mapping[field], int(value))
|
||||
if not value is None:
|
||||
setattr(partyConfig, mapping[field], int(value))
|
||||
partyConfig.save()
|
||||
Transaction().commit()
|
||||
|
||||
|
|
Loading…
Reference in a new issue