From 5e3d7a9413895c594418268be558f0a60274a038 Mon Sep 17 00:00:00 2001 From: houssine Date: Tue, 26 Mar 2019 20:15:20 +0100 Subject: [PATCH] [PEP8] fix pep8 --- easy_my_coop/models/operation_request.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/easy_my_coop/models/operation_request.py b/easy_my_coop/models/operation_request.py index 852cdcb..771618f 100644 --- a/easy_my_coop/models/operation_request.py +++ b/easy_my_coop/models/operation_request.py @@ -187,7 +187,7 @@ class operation_request(models.Model): @api.multi def execute_operation(self): self.ensure_one() - + effective_date = self.get_date_now() sub_request = self.env['subscription.request'] @@ -199,9 +199,11 @@ class operation_request(models.Model): " before to be executed")) values = { - 'partner_id': rec.partner_id.id, 'quantity': rec.quantity, - 'share_product_id': rec.share_product_id.id, 'type': rec.operation_type, - 'share_unit_price': rec.share_unit_price, 'date': effective_date, + 'partner_id': rec.partner_id.id, 'quantity': rec.quantity, + 'share_product_id': rec.share_product_id.id, + 'type': rec.operation_type, + 'share_unit_price': rec.share_unit_price, + 'date': effective_date, } if rec.operation_type == 'sell_back':