diff --git a/connector_magento/models/sale_order/importer.py b/connector_magento/models/sale_order/importer.py index 0225a2b7e..d73a94760 100644 --- a/connector_magento/models/sale_order/importer.py +++ b/connector_magento/models/sale_order/importer.py @@ -220,7 +220,9 @@ def _add_store_credit_line(self, map_record, values): amount = float(record['customer_balance_amount']) if amount == 0.0: return values - line_builder = self.component(usage='order.line.builder.magento.store_credit') + line_builder = self.component( + usage='order.line.builder.magento.store_credit' + ) line_builder.price_unit = amount line = (0, 0, line_builder.get_line()) values['order_line'].append(line) @@ -233,7 +235,9 @@ def _add_rewards_line(self, map_record, values): amount = float(record['reward_currency_amount']) if amount == 0.0: return values - line_builder = self.component(usage='order.line.builder.magento.rewards') + line_builder = self.component( + usage='order.line.builder.magento.rewards' + ) line_builder.price_unit = amount line = (0, 0, line_builder.get_line()) values['order_line'].append(line)