Commit ea4516e4 authored by Yusei Tahara's avatar Yusei Tahara

Fix wrong indentation. Unfortunately, the first level indentation

uses four spaces.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32468 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 62ea99db
...@@ -68,19 +68,19 @@ class InvoiceRule(DeliveryRule): ...@@ -68,19 +68,19 @@ class InvoiceRule(DeliveryRule):
self.getPortalTaxMovementTypeList() self.getPortalTaxMovementTypeList()
DeliveryRule.expand(self, applied_rule, **kw) DeliveryRule.expand(self, applied_rule, **kw)
def _getInputMovementList(self, applied_rule): def _getInputMovementList(self, applied_rule):
"""Return list of movements from delivery""" """Return list of movements from delivery"""
delivery = applied_rule.getDefaultCausalityValue() delivery = applied_rule.getDefaultCausalityValue()
movement_list = [] movement_list = []
delivery_movement_type_list = self.getPortalInvoiceMovementTypeList() + \ delivery_movement_type_list = self.getPortalInvoiceMovementTypeList() + \
self.getPortalTaxMovementTypeList() self.getPortalTaxMovementTypeList()
if delivery is not None: if delivery is not None:
existing_movement_list = applied_rule.objectValues() existing_movement_list = applied_rule.objectValues()
for movement in delivery.getMovementList( for movement in delivery.getMovementList(
portal_type=delivery_movement_type_list): portal_type=delivery_movement_type_list):
simulation_movement = self._getDeliveryRelatedSimulationMovement( simulation_movement = self._getDeliveryRelatedSimulationMovement(
movement) movement)
if simulation_movement is None or \ if simulation_movement is None or \
simulation_movement in existing_movement_list: simulation_movement in existing_movement_list:
movement_list.append(movement) movement_list.append(movement)
return movement_list return movement_list
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