asset: rekursion behoben, erlaubt aktion nach update
This commit is contained in:
parent
ac0bced963
commit
94169fb416
2 changed files with 11 additions and 2 deletions
|
@ -24,8 +24,15 @@ class UpdateSoureWizard(Wizard):
|
|||
context = Transaction().context
|
||||
|
||||
assets = Asset.browse(context.get('active_ids', []))
|
||||
to_run_activities = []
|
||||
for asset in assets:
|
||||
OnlineSource.update_rate(asset)
|
||||
if OnlineSource.update_rate(asset):
|
||||
to_run_activities.append(asset)
|
||||
|
||||
if len(to_run_activities) > 0:
|
||||
Asset.after_update_actions(to_run_activities)
|
||||
|
||||
return 'end'
|
||||
|
||||
# UpdateSoureWizard
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue