~stock-logistic-core-editors/carriers-deliveries/7.0

« back to all changes in this revision

Viewing changes to delivery_carrier_label_postlogistics/postlogistics/web_service.py

  • Committer: Guewen Baconnier
  • Author(s): Yannick Vaucher
  • Date: 2014-04-25 13:43:56 UTC
  • mfrom: (26.2.1 7.0-fix-1296678)
  • Revision ID: guewen.baconnier@camptocamp.com-20140425134356-m5ktj5i9v5zviiln
[FIX] postlogistics warnings unwrapping

Show diffs side-by-side

added added

removed removed

Lines of Context:
385
385
                })
386
386
 
387
387
            if hasattr(item, 'Warnings') and item.Warnings:
388
 
                for warning in item.Warnings:
 
388
                for warning in item.Warnings.Warning:
389
389
                    message = '[%s] %s' % (warning.Code, warning.Message)
390
390
                    warning_messages.append(message)
391
391