(self)
return self.order_line.filtered(lambda x: not x._is_not_sellable_line() or x.product_id in free_reward_product)
Returns the sale order lines that are not reward lines.
            It will also return reward lines being free product lines.
Returns the sale order lines that are not reward lines.
            It will also return reward lines being free product lines.
Returns the sale order lines that are not reward lines . It will also return reward lines being free product lines .
def _get_paid_order_lines(self):
        """ Returns the sale order lines that are not reward lines.
            It will also return reward lines being free product lines. """
        free_reward_product = self.env['coupon.program'].search([('reward_type', '=', 'product')]).mapped('discount_line_product_id')
        return self.order_line.filtered(lambda x: not x._is_not_sellable_line() or x.product_id in free_reward_product)
def _get_paid_order_lines ( self ) : free_reward_product = self . env [ 'coupon.program' ] . search ( [ ( 'reward_type' , '=' , 'product' ) ] ) . mapped ( 'discount_line_product_id' ) return self . order_line . filtered ( lambda x : not x . _is_not_sellable_line ( ) or x . product_id in free_reward_product )