Commit 3b54ed75 authored by Jérome Perrin's avatar Jérome Perrin Committed by Arnaud Fontaine

mrp: pylint py3

parent ed1868f3
...@@ -163,7 +163,7 @@ class TransformationRuleMovementGenerator(MovementGeneratorMixin): ...@@ -163,7 +163,7 @@ class TransformationRuleMovementGenerator(MovementGeneratorMixin):
# movement with an industrial_phase (other properties like reference # movement with an industrial_phase (other properties like reference
# starting with "pr/" is possible). The drawback with such filter is that # starting with "pr/" is possible). The drawback with such filter is that
# Same Total Quantity check must be disabled. # Same Total Quantity check must be disabled.
if 1: if 1: # pylint:disable=using-constant-test
cr_quantity = - parent_movement.getQuantity() cr_quantity = - parent_movement.getQuantity()
def newIntermediateMovement(reference_prefix, industrial_phase, **kw): def newIntermediateMovement(reference_prefix, industrial_phase, **kw):
movement = newMovement(reference_prefix + phase, kw) movement = newMovement(reference_prefix + phase, kw)
......
...@@ -2,7 +2,7 @@ simulation_method = getattr(delivery, 'getSimulationState', None) ...@@ -2,7 +2,7 @@ simulation_method = getattr(delivery, 'getSimulationState', None)
if simulation_method is None: if simulation_method is None:
return '#D1E8FF' return '#D1E8FF'
simulation_state = simulation_method() simulation_state = simulation_method() # pylint:disable=not-callable
color_dict = { color_dict = {
'draft': '#a7d7ae', 'draft': '#a7d7ae',
......
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