Commit 40b47ded authored by Jérome Perrin's avatar Jérome Perrin

accounting: use MovementHistoryListBrain.mirror_section_title directly

This compatibibility script was guessing the side, but this is exposed
in brain
parent c1dfe5d8
Pipeline #27788 failed with stage
in 0 seconds
"""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