Skip to content

Commit

Permalink
[FIX]purchase_request_to_rfq: Fix default_get on wizard
Browse files Browse the repository at this point in the history
  • Loading branch information
zakiuu authored and LoisRForgeFlow committed May 31, 2017
1 parent ae6b2cf commit e553a2f
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -87,9 +87,8 @@ def default_get(self, fields):
res = super(PurchaseRequestLineMakePurchaseOrder, self).default_get(
fields)
request_line_obj = self.env['purchase.request.line']
request_line_ids = self.env.context['active_ids'] or []
active_model = self.env.context['active_model']

request_line_ids = self.env.context.get('active_ids', False)
active_model = self.env.context.get('active_model', False)
if not request_line_ids:
return res
assert active_model == 'purchase.request.line', \
Expand Down

0 comments on commit e553a2f

Please sign in to comment.