Commit efc71453 authored by Jérome Perrin's avatar Jérome Perrin Committed by Kazuhiko Shiozaki

accounting: use MovementHistoryListBrain.mirror_section_title directly

This compatibibility script was guessing the side, but this is exposed
in brain
parent 696331ba
"""Retrieve the title of the mirror section
"""Retrieve the title of the mirror section ( deprecated compatibility script )
"""
if brain.mirror_section_uid:
movement = brain.getObject()
if brain.mirror_section_uid == movement.getDestinationSectionUid():
return movement.getDestinationSectionTitle()
return movement.getSourceSectionTitle()
return brain.mirror_section_title
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment