Commit 3ef639f6 authored by Jérome Perrin's avatar Jérome Perrin

simplify ColourMovementGroup


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20558 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c549080c
......@@ -398,17 +398,6 @@ class PathMovementGroup(RootMovementGroup):
allow_class(PathMovementGroup)
class ColourMovementGroup(RootMovementGroup):
""" Group movements that have the same color category."""
def __init__(self, movement, **kw):
RootMovementGroup.__init__(self, movement=movement, **kw)
self.colour = movement.getColour()
def test(self, movement):
return movement.getColour() == self.colour
allow_class(ColourMovementGroup)
class SectionPathMovementGroup(RootMovementGroup):
""" Groups movement that have the same source_section and
destination_section."""
......@@ -1197,5 +1186,9 @@ allow_class(QuantityUnitMovementGroup)
class PaymentModeMovementGroup(PropertyMovementGroup):
""" Group movements that have the same payment mode."""
_property = 'payment_mode'
allow_class(PaymentModeMovementGroup)
class ColourMovementGroup(RootMovementGroup):
""" Group movements that have the same colour category."""
_property = 'colour'
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